Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Fri Jun 07, 2024 10:33 am

Hello support team,

after having updated our Spire.Doc for Java application from 12.4.1 to 12.5.1 we experience exceptions on some development machines during the start of our web application.

Caused by: java.lang.IllegalStateException:
Unable to complete the scan for annotations for web application [/...] due to a StackOverflowError.
Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies.
The class hierarchy being processed was [com.spire.doc.packages.sprdyl->com.spire.doc.packages.sprqrl->com.spire.doc.packages.sprdyl]

And here is another exception (different development machine):
java.util.ServiceConfigurationError: javax.imageio.spi.ImageWriterSpi: com.spire.doc.packages.sprrlj not a subtype

After reverting version to 12.4.1 errors are gone and the web application starts successfully.

Any idea what's the reason for this error(s)?

Kind regards,
Marcus

mgattinger
 
Posts: 33
Joined: Fri May 21, 2021 9:03 am

Tue Jun 11, 2024 2:37 am

Hello,

Thanks for your inquiry.
I simulated a simple web project, but did not encounter the issue you mentioned. To help us investigate more accurately, could you please provide us with a simplified project that can reproduce your problem? You can upload it here as an attachment or send it to this email: support@e-iceblue.com. Thanks in advance.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 451
Joined: Mon Dec 27, 2021 2:23 am

Tue Jun 18, 2024 1:15 pm

Greetings,

after cleaned up the local Maven repository and downloaded all dependencies of our web application again the error has disappeared.
No idea what's happenend here. However, I'm glad we don't have to downgrade to the previous used version Spire.Doc for Java.

Regards,
Marcus

mgattinger
 
Posts: 33
Joined: Fri May 21, 2021 9:03 am

Wed Jun 19, 2024 2:19 am

Hello,

Thanks for your feedback.
I'm glad to hear that you solved your issue. Based on your description, we speculate that some cache mechanism may have caused the version switch to fail, which then caused your issue. In any case, if you encounter any problems with our products in the future, please contact us in time and we will handle it in time.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 451
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.Doc