sivanthiinfowave / jodconverter

Automatically exported from code.google.com/p/jodconverter
0 stars 0 forks source link

Conversion fails after OpenOffice service is up for a prolonged amount time #106

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Steps that will reproduce the problem:
1. Run OpenOffice as a service with the following string:
soffice.exe -headless -nologo -norestore -nofirststartwizard 
-accept=socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager
2. Keep it running for several weeks and use JodConverter to convert xls->PDF 
(my applications runs a couple of hundreds of conversions per day, all of them 
successfully)
3. Eventually you will get this kind of exception:
Caused by: 
com.artofsolving.jodconverter.openoffice.connection.OpenOfficeException: 
conversion failed
at 
com.artofsolving.jodconverter.openoffice.converter.StreamOpenOfficeDocumentConve
rter.convertInternal(StreamOpenOfficeDocumentConverter.java:95)
at 
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentCon
verter.convert(AbstractOpenOfficeDocumentConverter.java:82)
Caused by: com.sun.star.task.ErrorCodeIOException: 
at 
com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job
.java:187)
at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:153)
at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:349)
at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:318)
at 
com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.jav
a:106)
at 
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_rem
ote_bridge.java:657)
at 
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFacto
ry.java:159)
at 
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactor
y.java:141)
at $Proxy69.storeToURL(Unknown Source)
at 
com.artofsolving.jodconverter.openoffice.converter.StreamOpenOfficeDocumentConve
rter.loadAndExport(StreamOpenOfficeDocumentConverter.java:122)
at 
com.artofsolving.jodconverter.openoffice.converter.StreamOpenOfficeDocumentConve
rter.convertInternal(StreamOpenOfficeDocumentConverter.java:90)

or

Caused by: 
com.artofsolving.jodconverter.openoffice.connection.OpenOfficeException: 
conversion failed: could not save output document; OOo errorCode: 3088 
at 
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.l
oadAndExport(OpenOfficeDocumentConverter.java:142) 
at 
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.c
onvertInternal(OpenOfficeDocumentConverter.java:120) 
at 
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentCon
verter.convert(AbstractOpenOfficeDocumentConverter.java:104) 
at 
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentCon
verter.convert(AbstractOpenOfficeDocumentConverter.java:74) 
at 
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentCon
verter.convert(AbstractOpenOfficeDocumentConverter.java:70) 
Caused by: com.sun.star.task.ErrorCodeIOException: 
at 
com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job
.java:187) 
at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:153) 
at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:349) 
at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:318) 
at 
com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.jav
a:106) 
at 
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_rem
ote_bridge.java:657) 
at 
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFacto
ry.java:159) 
at 
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactor
y.java:141) 
at $Proxy65.storeToURL(Unknown Source) 
at 
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.s
toreDocument(OpenOfficeDocumentConverter.java:156) 
at 
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.l
oadAndExport(OpenOfficeDocumentConverter.java:140) 

Once this error occurs, any attempt to convert another document will result in 
the same exception.

As you can see I tried using both StreamOpenOfficeDocumentConverter and 
OpenOfficeDocumentConverter classes. In both cases the OO service stops 
responding after sometime.

Environmental data:
- Windows Server Enterprise 2007 SP2 64 bit
- OpenOffice 3.3
- jodconverter 2.2.1
- jodconverter runs from inside a web application running on a Tomcat 6
- Tomcat and OO service are running on the same computer

Is this a OpenOffice service issue or a jodconverter issue?

Please note that I didn't have this issue when I used an older version of 
OpenOffice (I guess - 3.1 or 3.2), and I was running a 32 bit server.
Could it be that OpenOffice ha issues running under a 64 bit system? memory 
leaks?

Any feedback will be appreciated. Thanks.

Original issue reported on code.google.com by bitl...@gmail.com on 11 May 2012 at 3:20

GoogleCodeExporter commented 8 years ago
I have the same issue with you.
Environmental data:
- Windows Server Enterprise 2008 SP2 64 bit
- OpenOffice 3.4
- jodconverter 2.2.2
- jodconverter runs from inside a web application running on a Tomcat 6
- Tomcat and OO service are running on the same computer

XLS->PDF has the problem ,but doc->pdf no problem~

Original comment by orangere...@gmail.com on 12 Jun 2012 at 8:28