Hello,
I've read the FAQ about this, but I haven't found the cause of my problem. I used to have a local converter on port 2100 in the group remoteConverters, and that worked perfectly on Windows and Linux. But because this converter has to be started separately, we wanted to change this to an embedded converter. On my Windows Vista testmachine, this works, but when I try it out on the Linux server (CentOS 5.2) where my application using Docmosis needs to run, the converter won't start. I'm using Docmosis 2.0.
Here is the logging (it is quite long, sorry for that, but I hope that it clarifies my problem):
DEBUG 25 Nov 2009 09:01:24 com.docmosis.util.DMProperties - 0 system properties loaded.
INFO 25 Nov 2009 09:01:24 com.docmosis.SystemManager - Docmosis version [2.0.0_2772] initialising
DEBUG 25 Nov 2009 09:01:24 com.docmosis.util.DMProperties - 0 system properties loaded.
DEBUG 25 Nov 2009 09:01:24 com.docmosis.document.converter.pool.ConverterPool - GROUP:embeddedConverters
DEBUG 25 Nov 2009 09:01:24 com.docmosis.document.converter.pool.ConverterInstance - Executable:/opt/openoffice.org3/program/soffice
DEBUG 25 Nov 2009 09:01:24 com.docmosis.util.ClassLoaderUtilities - Adding OpenOffice libraries to classloader
DEBUG 25 Nov 2009 09:01:24 com.docmosis.util.ClassLoaderUtilities - Add:/opt/openoffice.org3/basis-link/program/classes/jut.jar as URL:file:////opt/openoffice.org3/basis3.0/program/classes/jut.jar fileExists: true
DEBUG 25 Nov 2009 09:01:24 com.docmosis.util.ClassLoaderUtilities - Add:/opt/openoffice.org3/basis-link/program/classes/juh.jar as URL:file:////opt/openoffice.org3/basis3.0/program/classes/juh.jar fileExists: false
DEBUG 25 Nov 2009 09:01:24 com.docmosis.util.ClassLoaderUtilities - cannot find:/opt/openoffice.org3/basis-link/program/classes/juh.jar
DEBUG 25 Nov 2009 09:01:24 com.docmosis.util.ClassLoaderUtilities - Add:/opt/openoffice.org3/basis-link/ure-link/share/java/juh.jar as URL:file:////opt/openoffice.org3/ure/share/java/juh.jar fileExists: true
DEBUG 25 Nov 2009 09:01:24 com.docmosis.util.ClassLoaderUtilities - Add:/opt/openoffice.org3/basis-link/program/classes/jurt.jar as URL:file:////opt/openoffice.org3/basis3.0/program/classes/jurt.jar fileExists: false
DEBUG 25 Nov 2009 09:01:24 com.docmosis.util.ClassLoaderUtilities - cannot find:/opt/openoffice.org3/basis-link/program/classes/jurt.jar
DEBUG 25 Nov 2009 09:01:24 com.docmosis.util.ClassLoaderUtilities - Add:/opt/openoffice.org3/basis-link/ure-link/share/java/jurt.jar as URL:file:////opt/openoffice.org3/ure/share/java/jurt.jar fileExists: true
DEBUG 25 Nov 2009 09:01:24 com.docmosis.util.ClassLoaderUtilities - Add:/opt/openoffice.org3/basis-link/program/classes/ridl.jar as URL:file:////opt/openoffice.org3/basis3.0/program/classes/ridl.jar fileExists: false
DEBUG 25 Nov 2009 09:01:24 com.docmosis.util.ClassLoaderUtilities - cannot find:/opt/openoffice.org3/basis-link/program/classes/ridl.jar
DEBUG 25 Nov 2009 09:01:24 com.docmosis.util.ClassLoaderUtilities - Add:/opt/openoffice.org3/basis-link/ure-link/share/java/ridl.jar as URL:file:////opt/openoffice.org3/ure/share/java/ridl.jar fileExists: true
DEBUG 25 Nov 2009 09:01:24 com.docmosis.util.ClassLoaderUtilities - Add:/opt/openoffice.org3/basis-link/program/classes/unoil.jar as URL:file:////opt/openoffice.org3/basis3.0/program/classes/unoil.jar fileExists: true
DEBUG 25 Nov 2009 09:01:24 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - Candidate library:/opt/openoffice.org3/basis-link/ure-link/lib/libjpipe.so exists? true
DEBUG 25 Nov 2009 09:01:24 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - Candidate library:/opt/openoffice.org3/program/liblibjpipe.so.so exists? false
DEBUG 25 Nov 2009 09:01:24 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - 1 libraries loaded.
DEBUG 25 Nov 2009 09:01:24 com.docmosis.util.ClassLoaderUtilities - Adding OpenOffice libraries to classloader
DEBUG 25 Nov 2009 09:01:24 com.docmosis.util.ClassLoaderUtilities - Open Office Libraries are already loaded.
DEBUG 25 Nov 2009 09:01:24 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - ------------------
DEBUG 25 Nov 2009 09:01:24 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - /opt/openoffice.org3/program/soffice -accept=pipe,name=pipe_0389871549560443491;urp; -norestore -nologo -nolockcheck -nodefault -nofirststartwizard -env:UserInstallation=file:////tmp/docmosis/pipe_0389871549560443491 -minimized -invisible -headless
DEBUG 25 Nov 2009 09:01:24 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - ------------------
DEBUG 25 Nov 2009 09:01:24 com.docmosis.converter.openoffice.BootstrapOpenOfficeConnection - Connecting to a running office ...
DEBUG 25 Nov 2009 09:01:24 com.docmosis.converter.openoffice.BootstrapOpenOfficeConnection - office shutdown gracefully completed
WARN 25 Nov 2009 09:01:25 com.docmosis.document.converter.pool.ConverterInstance - Unable to instantiate class:com.docmosis.converter.openoffice.LocalOpenOfficeConverter:com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Ljava/lang/String;)I using path soffice
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.docmosis.document.converter.pool.ConverterInstance.initialize(line:125)
at com.docmosis.document.converter.pool.ConverterPool.loadXMLConfig(line:563)
at com.docmosis.document.converter.pool.ConverterPool.(line:108)
at com.docmosis.document.converter.pool.ConverterPool.initialise(line:68)
at com.docmosis.SystemManager.initConverterPool(line:107)
at com.docmosis.SystemManager.initialise(line:47)
at be.abc.xxx.docmosis.MyReportGenerator.initialise(MyReportGenerator.java:49)
at be.abc.xxx.docmosis.MyReportGenerator.(MyReportGenerator.java:36)
at be.abc.xxx.docmosis.MyReportGenerator.(MyReportGenerator.java:31)
at be.abc.xxx.MyResource.generateReportForPerson(MyResource.java:223)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.restlet.ext.jaxrs.internal.wrappers.AbstractMethodWrapper.internalInvoke(AbstractMethodWrapper.java:168)
at org.restlet.ext.jaxrs.internal.wrappers.ResourceMethod.invoke(ResourceMethod.java:291)
at org.restlet.ext.jaxrs.JaxRsRestlet.invokeMethod(JaxRsRestlet.java:654)
at org.restlet.ext.jaxrs.JaxRsRestlet.handle(JaxRsRestlet.java:398)
at org.kauriproject.routing.impl.components.KauriJaxRsRestlet.handle(KauriJaxRsRestlet.java:143)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.kauriproject.routing.impl.components.SequenceRouter.handle(SequenceRouter.java:74)
at org.kauriproject.routing.impl.routing.KauriRouter.handle(KauriRouter.java:62)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.kauriproject.security.infrastructure.SecurityFilter.doHandle(SecurityFilter.java:155)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.kauriproject.representation.build.impl.RepresentationFilterFactory$RepresentationFilter.doHandle(RepresentationFilterFactory.java:71)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.kauriproject.runtime.module.restservice.WrapperRestlet.handle(WrapperRestlet.java:41)
at org.kauriproject.runtime.module.restservice.RestserviceShield.handle(RestserviceShield.java:47)
at org.kauriproject.runtime.module.restservice.RestserviceFacet$RestserviceRouter.handle(RestserviceFacet.java:104)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:153)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:71)
at org.restlet.Application.handle(Application.java:397)
at org.kauriproject.runtime.module.restservice.RestserviceFacet$IntraApplicationRestserviceProxy.handle(RestserviceFacet.java:117)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.routing.Router.handle(Router.java:504)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.routing.Router.handle(Router.java:504)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:153)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
at org.restlet.Component.handle(Component.java:399)
at org.kauriproject.runtime.module.restservice.RestserviceManager$KauriComponent.superHandle(RestserviceManager.java:80)
at org.kauriproject.runtime.module.restservice.RestserviceManager$KauriComponent$1.handle(RestserviceManager.java:64)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.kauriproject.i18n.locale_assignment.LocaleAssignmentFilter.doHandle(LocaleAssignmentFilter.java:88)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.kauriproject.i18n.impl.I18nFilterFactory$I18nFilter.doHandle(I18nFilterFactory.java:42)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.kauriproject.runtime.module.restservice.RestserviceManager$KauriComponent.handle(RestserviceManager.java:73)
at org.restlet.Server.handle(Server.java:350)
at org.restlet.engine.ServerHelper.handle(ServerHelper.java:71)
at org.restlet.engine.http.HttpServerHelper.handle(HttpServerHelper.java:149)
at org.restlet.ext.jetty.JettyServerHelper$WrappedServer.handle(JettyServerHelper.java:184)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
Caused by: java.lang.UnsatisfiedLinkError: com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Ljava/lang/String;)I
at com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Native Method)
at com.sun.star.lib.connections.pipe.PipeConnection.(PipeConnection.java:132)
at com.sun.star.lib.connections.pipe.pipeConnector.connect(pipeConnector.java:140)
at com.sun.star.comp.connections.Connector.connect(Connector.java:141)
at com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlResolver.java:128)
at com.docmosis.converter.openoffice.BootstrapOpenOfficeConnection.initialise(line:136)
at com.docmosis.converter.openoffice.BootstrapOpenOfficeConnection.(line:102)
at com.docmosis.converter.openoffice.BootstrapOpenOfficeConnection.(line:78)
at com.docmosis.converter.openoffice.LocalOpenOfficeConverter.getBootstrapConnection(line:148)
at com.docmosis.converter.openoffice.LocalOpenOfficeConverter.getNewConnection(line:129)
at com.docmosis.converter.openoffice.LocalOpenOfficeConverter.establishConnection(line:115)
at com.docmosis.converter.openoffice.LocalOpenOfficeConverter.(line:68)
... 86 more
INFO 25 Nov 2009 09:01:25 com.docmosis.util.license.AbstractFeatureSetBase - Docmosis licence details: expires=, maximum parallel converters=1, throttle=high
DEBUG 25 Nov 2009 09:01:25 com.docmosis.util.pipeline.impl.DataWorkerPool - Creating a new data worker instance of type: com.docmosis.converter.openoffice.OpenOfficeConversionWorker
DEBUG 25 Nov 2009 09:01:25 com.docmosis.util.pipeline.impl.DataWorkerPool - Creating a new data worker instance of type: com.docmosis.converter.openoffice.OpenOfficeConversionWorker
DEBUG 25 Nov 2009 09:01:25 com.docmosis.util.pipeline.impl.DataWorkerPool - Creating a new data worker instance of type: com.docmosis.template.population.openoffice.ODFExplodedTemplatePopulator
DEBUG 25 Nov 2009 09:01:25 com.docmosis.util.pipeline.impl.DataWorkerPool - Creating a new data worker instance of type: com.docmosis.template.population.openoffice.ODFExplodedTemplatePopulator
DEBUG 25 Nov 2009 09:01:25 com.docmosis.template.store.CachingTemplateStore - Template store cache enabled
INFO 25 Nov 2009 09:01:25 com.docmosis.SystemManager - Docmosis initialised in 385 ms
DEBUG 25 Nov 2009 09:01:25 com.docmosis.template.store.CachingTemplateStore - Cached Template:MyTemplate.odt bytes:101582 Cache size now: 101582
DEBUG 25 Nov 2009 09:01:25 com.docmosis.template.population.ReflectiveCollectionDataProvider - #Reflective call# calling getDataProviderCount("x") on delegate:ArrayList@23707222
DEBUG 25 Nov 2009 09:01:25 com.docmosis.template.population.ReflectiveListDataProvider - #Reflective call# calling getDataProvider("x", 0) on delegate:ArrayList@23707222
DEBUG 25 Nov 2009 09:01:25 com.docmosis.template.population.ReflectiveDataProvider - #Reflective call# calling getDataProviderCount("contracten") on delegate:WerknemersFiche@28118488
.................. (here it executse a whole bunch of reflective calls)
DEBUG 25 Nov 2009 09:01:25 com.docmosis.template.population.openoffice.ODFExplodedTemplatePopulator - content population took:125
DEBUG 25 Nov 2009 09:01:25 com.docmosis.template.population.openoffice.ODFExplodedTemplatePopulator - style population took:1
WARN 25 Nov 2009 09:01:25 com.docmosis.document.converter.pool.ConverterPoolGroup - No functioning converters present for group:embeddedConverters. Awaiting one to come online.
WARN 25 Nov 2009 09:01:30 com.docmosis.document.converter.pool.ConverterPoolGroup - Waiting longer than configured warning period (5000 ms) to get a converter from group: embeddedConverters. You might consider adding more converters to the pool.
DEBUG 25 Nov 2009 09:01:40 com.docmosis.document.converter.pool.ConverterInstance - Executable:/opt/openoffice.org3/program/soffice
DEBUG 25 Nov 2009 09:01:40 com.docmosis.util.ClassLoaderUtilities - Adding OpenOffice libraries to classloader
DEBUG 25 Nov 2009 09:01:40 com.docmosis.util.ClassLoaderUtilities - Open Office Libraries are already loaded.
DEBUG 25 Nov 2009 09:01:40 com.docmosis.util.ClassLoaderUtilities - Adding OpenOffice libraries to classloader
DEBUG 25 Nov 2009 09:01:40 com.docmosis.util.ClassLoaderUtilities - Open Office Libraries are already loaded.
DEBUG 25 Nov 2009 09:01:40 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - ------------------
DEBUG 25 Nov 2009 09:01:40 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - /opt/openoffice.org3/program/soffice -accept=pipe,name=pipe_9169782761073750062;urp; -norestore -nologo -nolockcheck -nodefault -nofirststartwizard -env:UserInstallation=file:////tmp/docmosis/pipe_9169782761073750062 -minimized -invisible -headless
DEBUG 25 Nov 2009 09:01:40 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - ------------------
DEBUG 25 Nov 2009 09:01:40 com.docmosis.converter.openoffice.BootstrapOpenOfficeConnection - Connecting to a running office ...
DEBUG 25 Nov 2009 09:01:40 com.docmosis.converter.openoffice.BootstrapOpenOfficeConnection - office shutdown gracefully completed
DEBUG 25 Nov 2009 09:01:55 com.docmosis.document.converter.pool.ConverterInstance - Executable:/opt/openoffice.org3/program/soffice
DEBUG 25 Nov 2009 09:01:55 com.docmosis.util.ClassLoaderUtilities - Adding OpenOffice libraries to classloader
DEBUG 25 Nov 2009 09:01:55 com.docmosis.util.ClassLoaderUtilities - Open Office Libraries are already loaded.
DEBUG 25 Nov 2009 09:01:55 com.docmosis.util.ClassLoaderUtilities - Adding OpenOffice libraries to classloader
DEBUG 25 Nov 2009 09:01:55 com.docmosis.util.ClassLoaderUtilities - Open Office Libraries are already loaded.
DEBUG 25 Nov 2009 09:01:55 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - ------------------
DEBUG 25 Nov 2009 09:01:55 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - /opt/openoffice.org3/program/soffice -accept=pipe,name=pipe_4650156100749964498;urp; -norestore -nologo -nolockcheck -nodefault -nofirststartwizard -env:UserInstallation=file:////tmp/docmosis/pipe_4650156100749964498 -minimized -invisible -headless
DEBUG 25 Nov 2009 09:01:55 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - ------------------
DEBUG 25 Nov 2009 09:01:55 com.docmosis.converter.openoffice.BootstrapOpenOfficeConnection - Connecting to a running office ...
DEBUG 25 Nov 2009 09:01:55 com.docmosis.converter.openoffice.BootstrapOpenOfficeConnection - office shutdown gracefully completed
DEBUG 25 Nov 2009 09:02:10 com.docmosis.document.converter.pool.ConverterInstance - Executable:/opt/openoffice.org3/program/soffice
DEBUG 25 Nov 2009 09:02:10 com.docmosis.util.ClassLoaderUtilities - Adding OpenOffice libraries to classloader
DEBUG 25 Nov 2009 09:02:10 com.docmosis.util.ClassLoaderUtilities - Open Office Libraries are already loaded.
DEBUG 25 Nov 2009 09:02:10 com.docmosis.util.ClassLoaderUtilities - Adding OpenOffice libraries to classloader
DEBUG 25 Nov 2009 09:02:10 com.docmosis.util.ClassLoaderUtilities - Open Office Libraries are already loaded.
DEBUG 25 Nov 2009 09:02:10 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - ------------------
DEBUG 25 Nov 2009 09:02:10 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - /opt/openoffice.org3/program/soffice -accept=pipe,name=pipe_7750085459225275768;urp; -norestore -nologo -nolockcheck -nodefault -nofirststartwizard -env:UserInstallation=file:////tmp/docmosis/pipe_7750085459225275768 -minimized -invisible -headless
DEBUG 25 Nov 2009 09:02:10 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - ------------------
DEBUG 25 Nov 2009 09:02:10 com.docmosis.converter.openoffice.BootstrapOpenOfficeConnection - Connecting to a running office ...
DEBUG 25 Nov 2009 09:02:10 com.docmosis.converter.openoffice.BootstrapOpenOfficeConnection - office shutdown gracefully completed
DEBUG 25 Nov 2009 09:02:26 com.docmosis.document.converter.pool.ConverterInstance - Executable:/opt/openoffice.org3/program/soffice
DEBUG 25 Nov 2009 09:02:26 com.docmosis.util.ClassLoaderUtilities - Adding OpenOffice libraries to classloader
DEBUG 25 Nov 2009 09:02:26 com.docmosis.util.ClassLoaderUtilities - Open Office Libraries are already loaded.
DEBUG 25 Nov 2009 09:02:26 com.docmosis.util.ClassLoaderUtilities - Adding OpenOffice libraries to classloader
DEBUG 25 Nov 2009 09:02:26 com.docmosis.util.ClassLoaderUtilities - Open Office Libraries are already loaded.
DEBUG 25 Nov 2009 09:02:26 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - ------------------
DEBUG 25 Nov 2009 09:02:26 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - /opt/openoffice.org3/program/soffice -accept=pipe,name=pipe_4125885888722736848;urp; -norestore -nologo -nolockcheck -nodefault -nofirststartwizard -env:UserInstallation=file:////tmp/docmosis/pipe_4125885888722736848 -minimized -invisible -headless
DEBUG 25 Nov 2009 09:02:26 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - ------------------
DEBUG 25 Nov 2009 09:02:26 com.docmosis.converter.openoffice.BootstrapOpenOfficeConnection - Connecting to a running office ...
DEBUG 25 Nov 2009 09:02:26 com.docmosis.converter.openoffice.BootstrapOpenOfficeConnection - office shutdown gracefully completed
ERROR 25 Nov 2009 09:02:26 com.docmosis.document.DocumentProcessor - Populator:IOException
java.io.IOException: Pipe closed
at java.io.PipedInputStream.checkStateForReceive(Unknown Source)
at java.io.PipedInputStream.awaitSpace(Unknown Source)
at java.io.PipedInputStream.receive(Unknown Source)
at java.io.PipedOutputStream.write(Unknown Source)
at java.util.zip.ZipOutputStream.write(Unknown Source)
at com.docmosis.template.population.openoffice.ODFExplodedTemplatePopulator.processODF(line:226)
at com.docmosis.template.population.openoffice.ODFExplodedTemplatePopulator.processTask(line:80)
at com.docmosis.util.pipeline.impl.AbstractDataWorker.run(line:98)
at java.lang.Thread.run(Unknown Source)
ERROR 25 Nov 2009 09:02:26 be.abc.xxx.docmosis.MyReportGenerator - Task failed:Conversion Failed
ERROR 25 Nov 2009 09:02:26 be.abc.xxx.MyResource - null
DEBUG 25 Nov 2009 09:02:41 com.docmosis.document.converter.pool.ConverterInstance - Executable:/opt/openoffice.org3/program/soffice
DEBUG 25 Nov 2009 09:02:41 com.docmosis.util.ClassLoaderUtilities - Adding OpenOffice libraries to classloader
DEBUG 25 Nov 2009 09:02:41 com.docmosis.util.ClassLoaderUtilities - Open Office Libraries are already loaded.
DEBUG 25 Nov 2009 09:02:41 com.docmosis.util.ClassLoaderUtilities - Adding OpenOffice libraries to classloader
DEBUG 25 Nov 2009 09:02:41 com.docmosis.util.ClassLoaderUtilities - Open Office Libraries are already loaded.
DEBUG 25 Nov 2009 09:02:41 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - ------------------
DEBUG 25 Nov 2009 09:02:41 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - /opt/openoffice.org3/program/soffice -accept=pipe,name=pipe_2177231757774846434;urp; -norestore -nologo -nolockcheck -nodefault -nofirststartwizard -env:UserInstallation=file:////tmp/docmosis/pipe_2177231757774846434 -minimized -invisible -headless
DEBUG 25 Nov 2009 09:02:41 com.docmosis.converter.openoffice.OpenOfficeServerLauncher - ------------------
DEBUG 25 Nov 2009 09:02:41 com.docmosis.converter.openoffice.BootstrapOpenOfficeConnection - Connecting to a running office ...
DEBUG 25 Nov 2009 09:02:41 com.docmosis.converter.openoffice.BootstrapOpenOfficeConnection - office shutdown gracefully completed
And then he keeps doing the last part endlessly.
What could be the problem?
Thanks in advance!
Trying to start graphical mode?
By looking at it again, we discovered that OpenOffice is trying to call gconfd, which is part of the graphical interface, but that won't work as our Linux server is started in non-graphical mode.
I tried to start OpenOffice manually by executing the exact command that was written to the log file:
/opt/openoffice.org3/program/soffice -accept=pipe,name=pipe_4125885888722736848;urp; -norestore -nologo -nolockcheck -nodefault -nofirststartwizard -env:UserInstallation=file:////tmp/docmosis/pipe_4125885888722736848 -minimized -invisible -headless
OpenOffice managed to start, but when Control+C was pressed to stop the process, I got the following error:
-bash: urp: command not found
-bash: -norestore: command not found
This implies that all the parameters after the semicolon ; are not sent to the soffice command, which is probably why it is trying to start in graphical mode! By putting the parameters containing semicolons between quotes, I didn't get the error anymore:
/opt/openoffice.org3/program/soffice "-accept=pipe,name=pipe_4125885888722736848;urp;" -norestore -nologo -nolockcheck -nodefault -nofirststartwizard -env:UserInstallation=file:////tmp/docmosis/pipe_4125885888722736848 -minimized -invisible -headless
I think the lack of quotes in the command parameters causes my embedded converter startup to fail, but is there a way I can somehow add these quotes to the command?
I tried to add docmosis.converter.launch.args to the docmosis.properties file, but it only adds the parameters I configured instead of replacing them.
Could someone confirm the problem I'm having is indeed caused by the lack of quotes in the command?
Startup Issues
Hello HoSpiTaL_gHoSt.
Good work with the diagnostics. The problem is not caused by the lack of quotes - what you see there is simply the debug logging of Docmosis to help with diagnostics not the command line being run. You turning that debug line into a command to run is not valid because it is not a precise mapping. Your addition of the quotes is correct and equates to Docmosis' use of Runtime.exec(String[] cmdArgs) with one array element for each parameter. How did you come to the conclusion that gconfd was being called? And more importantly is it being called when you're running from inside your Jetty container or only when you run your standalone call (/opt/openoffice.org3/program/soffice..) ?
The key to the problem is the line
"Caused by: java.lang.UnsatisfiedLinkError: com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Ljava/lang/String;)I"
The code running in the container simply can't find the createJNI() function. Can you try adding the following:
1. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/openoffice.org/ure/lib:/opt/openoffice.org3/program:/opt/openoffice.org/basis3.0/program before starting Jetty
2. add /opt/openoffice.org/ure/lib:/opt/openoffice.org3/program:/opt/openoffice.org/basis3.0/program to java.library.path when launching jetty (eg -Djava.library.path=...)
?
Not solved
Thanks for the update, but the problem is still not solved :(. Would it help to add those directories to the PATH variable? We already tried to reinstall OpenOffice... I'll try some more later, but I already wanted to give some feedback.
*EDIT* To answer your first question, our system administrator noticed that gconfd was called by looking in /var/log/messages. I think (but I'm not sure) that this only happens when OpenOffice is started by Docmosis and not when it's started separately.
Problem Reproducible
Hello HoSpiTaL_gHoSt.
We can reproduce the problem. The launching of openoffice is working fine, but the attempt to connect to it fails due to the UnsatisfiedLinkError. We'll let you know when we have a resolution. In the mean time, you will need to use the remote converter configuration (rather than embedded converters) which work fine.
Ok
Ok, thanks a lot for all the help :)