Hello everyone,
I’m trying to evaluate the Java Aspose library but I got a problem during debugging time which slows down the implementation process.
It seams that during debugging time, calling the Aspose constructor
“new Document()” lets the entire application hang with high cpu usage.
Here the Stacktrace:
java.lang.Thread.State: RUNNABLE
at sun.security.provider.SHA2.lf_S(SHA2.java:146)
at sun.security.provider.SHA2.lf_sigma1(SHA2.java:164)
at sun.security.provider.SHA2.implCompress(SHA2.java:208)
at sun.security.provider.DigestBase.implCompressMultiBlock(DigestBase.java:140)
at sun.security.provider.DigestBase.engineUpdate(DigestBase.java:127)
at java.security.MessageDigest$Delegate.engineUpdate(MessageDigest.java:580)
at java.security.MessageDigest.update(MessageDigest.java:325)
at sun.security.util.ManifestEntryVerifier.update(ManifestEntryVerifier.java:172)
at java.util.jar.JarVerifier.update(JarVerifier.java:225)
at java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:479)
at sun.misc.Resource.getBytes(Resource.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:462)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(AccessController.java:-1)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
- locked <0x3278> (a java.lang.Object)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(ClassLoader.java:-1)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(AccessController.java:-1)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
- locked <0x2f1b> (a java.lang.Object)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
…
Aspose: Tried it with 15.12 and 16.3
JDK: 8 Update 45 (64 bit)
JRE: 8 Update 77
OS: Windows 7
Is there something I’m missing in my environment?
An answer to this question would be highly appreciated
Thank you
It is probably an issue with my installation and environment and not so much an issue with the aspose library itself.
The code which is so slow here, is actually the java class loader which tries to verify the jar file.
I didn’t find a command line option to disable the jar verification, but I could help my self with deleting the .RSA and .SF within the aspose jar.
It still would be nice to know how to speed up the debugging environment without going down to such extrem measures.
If anyone has any idea, an answer would be greatly appreciated.
Hi Bill,
Thanks for your inquiry. Please upgrade to Aspose.Words 16.4.0 and see how it goes on your end. Hope, this helps.
To ensure a timely and accurate response, please create a standalone simple Java application (source code without compilation errors) that helps us reproduce your problem on our end and attach it here for testing. As soon as you get this simple application ready, we’ll start investigation into your issue and provide you more information. Also, please attach your input Word document here for testing.
Best regards,