- Code: Select all
java.lang.Exception: class com.spire.office.packages.sprlvD: The file name is too long. The fully qualified file name must be less than 260 characters and the directory name must be less than 248 characters
com.spire.doc.Document.spr (Unknown Source)
com.spire.doc.Document.loadFromFile(Unknown Source)
com.spire.doc.Document.spr (Unknown Source)
com.spire.doc.Document.loadFromFile(Unknown Source)
com.qnap.qsirch.spire.WordConverter.convert(WordConverter.java:17)
com.qnap.qsirch.spire.Executor.call(Executor.java:30)
com.qnap.qsirch.spire.Executor.call(Executor.java:7)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.lang.Thread.run(Thread.java:821)
Is there any way to solve this problem without adjust my PC setting?
I found I can create a symbolic link to long path file, and use the path of link as input string to feed LoadFromFile method, but it just works if there is no non-ascii character in the physical path of long path file.
If there is non-ascii character in the physical path, I will get exception like below.
- Code: Select all
java.lang.Exception: "C:\Users\User\symlink-to-non-ascii-word.dot" is not exits.
at com.spire.doc.Document.spr (Unknown Source)
at com.spire.doc.Document.loadFromFile(Unknown Source)
at com.qnap.qsirch.spire.WordConverter.convert(WordConverter.java:17)
at com.qnap.qsirch.spire.Executor.call(Executor.java:30)
at com.qnap.qsirch.spire.Executor.call(Executor.java:7)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:821)
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0