Hello Everyone - We are using Docmosis-java version 4.7.5 in our production system along with LibreOffice 24.2.0.3 version. Earlier, we were using the 6.2.8.2 version and we upgraded to 24.2.0.3 in September in our Production systems. The reason for upgrade was a customer-reported defect w.r.t. content block variables not coming up in the generation document for version 6.2.8.2, which was working fine in 24.2.0.3.
However, when we upgraded to 24.2.0.3 version, we started observing lots of java.io.EOFException. As per our high level observation, LibreOffice crashes at this point and docmosis has to wait until it comes back up (We even ruled out the issue with the Document generation template being used since we see success in some cases with the same template). Due to this, we have observed that the docmosis service instances (each VM instance hosts a single Docmosis service instance) gets stuck and unable to respond to the upstream service. Below is the stack of this error:
com.docmosis.util.pipeline.TaskException: Conversion Failed: Unable to convert document on production-docmosis-5.prd.internal:2100
at com.docmosis.converter.openoffice.OpenOfficeConversionWorker.processTask(line:83)
at com.docmosis.util.pipeline.impl.AbstractDataWorker.run(line:134)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: com.docmosis.document.converter.ConversionServiceFailureException: Unable to convert document on production-docmosis-5.prd.internal:2100
at com.docmosis.document.converter.RemoteConverterGateway.convert(line:145)
at com.docmosis.document.converter.RemoteConverterGateway.convert(line:76)
at com.docmosis.document.converter.pool.ConverterInstance.convert(line:227)
at com.docmosis.converter.openoffice.OpenOfficeConversionWorker.processTask(line:59)
… 2 more
Caused by: java.io.EOFException
at java.base/java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:3214)
at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1684)
at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:509)
at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:467)
at com.docmosis.document.converter.RemoteConverterGateway.convert(line:115)
… 5 more
We already had a discussion on this with the Docmosis team, and they did not mention any compatibility issues with this LibreOffice version. However, to resolve this production issue, I am looking for below information from experts here.
- Does LibreOffice have any issues with Docmosis that Docmosis team was unable to identify?
- This issue is observed in the pre-prod environment and not in production. Is there any performance issues with this version of LibreOffice which is fixed in later versions since Production has more load compared to pre-prod?
- Is there any tuning that we can do to fix this issue?
- Any other recommendations?
I am looking for immediate help here as this issue is impacting our customers and we are getting multiple incidents because of this.