Page 1 of 1

OpenOffice disconnected unexpectedly

Posted: Wed Apr 13, 2022 12:20 am
by dirkjo
Hello,
we have a Java application, which uses OpenOffice for migration Word documents into PDF files. This app gives now the message:

2022-04-08 01:07:54,406 SEVERE [com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection] (MessageDispatcher) disconnected unexpectedly
2022-04-08 01:07:54,409 ERROR [org.jboss.ejb.plugins.LogInterceptor] (http-185.15.247.198-443-4) RuntimeException in method: public abstract net.java.dev.strutsejb.dto.ResultDTO net.java.dev.strutsejb.ejb.StatelessFacade.execute(net.java.dev.strutsejb.EJBCommand) throws net.java.dev.strutsejb.AppLevelException:
com.artofsolving.jodconverter.openoffice.connection.OpenOfficeException: connection failed: socket,host=127.0.0.1,port=8100,tcpNoDelay=1
at com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection.connect(AbstractOpenOfficeConnection.java:81)
at com.piramide.elwis.cmd.utils.OpenOfficeConverterUtil.wordToPdf(Unknown Source)
at com.piramide.elwis.cmd.financemanager.InvoiceDocumentCmd.executeInStateless(Unknown Source)
at net.java.dev.strutsejb.ejb.StatelessFacadeBean.execute(StatelessFacadeBean.java:38)
at sun.reflect.GeneratedMethodAccessor423.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

What could be the reason for disconnecting?

Some information:
- CentOS 7.3
- starting OpenOffice via: /opt/openoffice.org3/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard > /dev/null 2>&1 &
- the same is working fine with the same applicatiion (ear) on another server
- the same is working fine on this server since years with a previous version of the app (same JDK, same OpenOffice instance, same JBoss version but other installation)

Re: OpenOffice disconnected unexpectedly

Posted: Wed Apr 13, 2022 8:11 am
by Hagar Delest
Hi and welcome to the forum!

Have you tried with LibreOffice? Its development is much more active, it may give better results.

Re: OpenOffice disconnected unexpectedly

Posted: Wed Apr 13, 2022 10:31 am
by John_Ha
Have you tried going back to an earlier restore point at a time you know it was working? If it then works it is a change made since then.
dirkjo wrote: - the same is working fine with the same application (ear) on another server
- the same is working fine on this server since years with a previous version of the app (same JDK, same OpenOffice instance, same JBoss version but other installation)
That suggests there is something different between the two systems. Try to identify the difference.

Re: OpenOffice disconnected unexpectedly

Posted: Wed Apr 13, 2022 12:09 pm
by dirkjo
No, we haven't tried LibreOffice yet.

I assume that the difference is in JBoss configuration. But I tried a lot to find differences and tested a lot and did many Jboss installations and configurations. But always with the same result. That's the reason I posted here in the hope to get a hint.