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.

Thu May 13, 2021 9:53 am

Hi Team,

We are using spire for updating the data in a document using java. We are using loadFromFile method first to load data into Document class instance from a .doc file. Then we are updating the value in the document class using document.replace method. It is working perfectly for single user. But when we run performance test with more than one concurrent user sometime it is throwing error while calling loadFromFile method. Here is the error

com.spire.doc.package.sprinB: Text node cannot appear in this state ...

Observation this is occurring when two word documents content gets loaded into a document class instance at the same time. Document API is not synchronous? Can you anyone suggest a solution for this please.

Thanks,
Gomathi

gomathips
 
Posts: 2
Joined: Wed May 12, 2021 2:40 pm

Thu May 13, 2021 10:34 am

Hello Gomathi,

Thanks for your inquiry.
To help us investigate your issue more quickly and accurately, please provide your full test code and some example files which can reproduce your issue. You could send them to us via email(support@e-iceblue.com). Thanks in advance.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Thu May 13, 2021 12:07 pm

Hi Brian,

Shared the requested details over email.

thanks.

gomathips
 
Posts: 2
Joined: Wed May 12, 2021 2:40 pm

Fri May 14, 2021 9:57 am

Hello,

Thanks for your sharing via email.

I first created a normal java project, and then use multiple threads to simulate concurrency testing, but I did not encounter any issues. Also, I created a web project and then used stress testing tools for concurrency testing, but didn’t reproduce your issue either.

How do you perform performance testing for multiple concurrent users? Could you please provide more detailed information to help us investigate further?

Besides, at present the latest version of our Spire.Doc is Spire.Doc for Java Version:4.5.1. If you are using an older version, we recommend you upgrade to the latest version and try again.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.Doc

cron