加载Java xlsx文件的属性时出错。 [错误] \ uxxxx编码格式错误

时间:2018-07-09 07:48:53

标签: java properties xlsx

有人可以帮忙吗?

        input = new FileInputStream(this.tmpFullFileName);
        // load a properties file
        prop.load(input);

当我尝试加载xlsx文件属性时。

[ERROR] Malformed \uxxxx encoding.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:121)
at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)

1 个答案:

答案 0 :(得分:0)

尝试使用“ \”代替文件目标,而是尝试编辑为“ /”。