org.artofsolving.jodconverter.office.OfficeException: failed to start and connect

3,099 views
Skip to first unread message

gounthar

unread,
Oct 28, 2009, 11:46:55 AM10/28/09
to JODConverter
Hi,

I tried to install a new server with jodconverter snapshot (revision
152) on a Linux box (2.6.16.29-xenU #1 SMP Thu Nov 23 17:52:34 CET
2006 i686 pentium4 i386 GNU/Linux).
Well, it has been a looooooong time since I got that kind of problem,
but I now have this message at startup:
"org.artofsolving.jodconverter.office.OfficeException: failed to start
and connect".
The full stacktrace is at the end of the message.
I get a "started process; pid = 16639" message, but I just can't find
the process.
I have a strace log if this ever can help somebody understand my
problem.

Can anyone help?

Kind regards,

Bruno Verachten

org.artofsolving.jodconverter.office.OfficeException: failed to start
and connect
at
org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait
(ManagedOfficeProcess.java:62)
at
org.artofsolving.jodconverter.office.PooledOfficeManager.start
(PooledOfficeManager.java:102)
at
org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.start
(ProcessPoolOfficeManager.java:59)
at net.atos.wl.fwk.converter.OOoEnvironment.getConverterPool
(OOoEnvironment.java:207)
at net.atos.wl.fwk.converter.OfficeConverter.<init>
(OfficeConverter.java:474)
at net.atos.wl.fwk.converter.OfficeConverter.newInstance
(OfficeConverter.java:576)
at
net.atos.wl.fwk.converter.webservice.ConverterPortTypeImpl.<clinit>
(ConverterPortTypeImpl.java:67)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0
(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:
494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.apache.catalina.core.StandardContext.listenerStart
(StandardContext.java:3678)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:4187)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1013)
at org.apache.catalina.core.StandardHost.start
(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start
(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start
(StandardServer.java:745)
at org.apache.catalina.startup.Catalina.start(Catalina.java:
551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:
294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:
432)
Caused by: java.util.concurrent.ExecutionException:
org.artofsolving.jodconverter.office.OfficeException: could not
establish connection
at java.util.concurrent.FutureTask$Sync.innerGet
(FutureTask.java:205)
at java.util.concurrent.FutureTask.get(FutureTask.java:80)
at
org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait
(ManagedOfficeProcess.java:60)
... 27 more
Caused by: org.artofsolving.jodconverter.office.OfficeException: could
not establish connection
at
org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect
(ManagedOfficeProcess.java:128)
at
org.artofsolving.jodconverter.office.ManagedOfficeProcess.access$000
(ManagedOfficeProcess.java:32)
at org.artofsolving.jodconverter.office.ManagedOfficeProcess
$1.run(ManagedOfficeProcess.java:56)
at java.util.concurrent.Executors$RunnableAdapter.call
(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun
(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask
(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.artofsolving.jodconverter.office.RetryTimeoutException:
java.net.ConnectException: connection failed:
'socket,host=127.0.0.1,port=8100,tcpNoDelay=1';
java.net.ConnectException: Connection refused
at org.artofsolving.jodconverter.office.Retryable.execute
(Retryable.java:48)
at org.artofsolving.jodconverter.office.Retryable.execute
(Retryable.java:31)
at
org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect
(ManagedOfficeProcess.java:118)
... 8 more
Caused by: java.net.ConnectException: connection failed:
'socket,host=127.0.0.1,port=8100,tcpNoDelay=1';
java.net.ConnectException: Connection refused
at
org.artofsolving.jodconverter.office.OfficeConnection.connect
(OfficeConnection.java:101)
at org.artofsolving.jodconverter.office.ManagedOfficeProcess
$6.attempt(ManagedOfficeProcess.java:121)
at org.artofsolving.jodconverter.office.Retryable.execute
(Retryable.java:41)
... 10 more

Mirko Nasato

unread,
Oct 28, 2009, 2:11:57 PM10/28/09
to jodcon...@googlegroups.com
Hi Bruno,

The inner exception is RetryTimeoutException, which means the OOo
process has been started, but the Java app couldn't connect to it
within the timeout (30 seconds).

Either your machine is very slow, or OOo is not starting up properly
for some other reason. Try starting it manually and see if there's
anything strange - like sometimes OOo gets stuck in "javaldx" trying
to find a JVM.

Kind regards

Mirko

2009/10/28 gounthar <goun...@gmail.com>:

Verachten Bruno

unread,
Oct 29, 2009, 6:58:23 AM10/29/09
to jodcon...@googlegroups.com
Hi Mirko,

> The inner exception is RetryTimeoutException, which means the OOo
> process has been started, but the Java app couldn't connect to it
> within the timeout (30 seconds).

Well, I can't see the process by the end of these 30 seconds.

> Either your machine is very slow, or OOo is not starting up properly
> for some other reason. Try starting it manually and see if there's
> anything strange - like sometimes OOo gets stuck in "javaldx" trying
> to find a JVM.

Well, OOo doesn't seem to get stuck, as it exits very quickly when I
start it manually.
Maybe does something lack in my OOo installation...

Kind regards,
--
Bruno Verachten

Mirko Nasato

unread,
Oct 29, 2009, 7:49:43 AM10/29/09
to jodcon...@googlegroups.com
2009/10/29 Verachten Bruno <goun...@gmail.com>:

>> Either your machine is very slow, or OOo is not starting up properly
>> for some other reason. Try starting it manually and see if there's
>> anything strange - like sometimes OOo gets stuck in "javaldx" trying
>> to find a JVM.
> Well, OOo doesn't seem to get stuck, as it exits very quickly when I
> start it manually.
> Maybe does something lack in my OOo installation...
>
Yes could be. In any case if you start OOo manually with e.g.
-headless "-accept=socket,port=2002" then you can check that 1) the
process is running; 2) netstat shows it's listening on port 2002.

Kind regards

Mirko

Verachten Bruno

unread,
Oct 29, 2009, 10:10:19 AM10/29/09
to jodcon...@googlegroups.com
Mirko,

>> Maybe does something lack in my OOo installation...
> Yes could be. In any case if you start OOo manually with e.g.
> -headless "-accept=socket,port=2002" then you can check that 1) the
> process is running; 2) netstat shows it's listening on port 2002.

The process exists as soon as I start it. :-/

Best regards,
--
Bruno Verachten

Mirko Nasato

unread,
Oct 30, 2009, 9:13:05 AM10/30/09
to jodcon...@googlegroups.com
Hi Bruno,

2009/10/29 Verachten Bruno <goun...@gmail.com>:


>
>>> Maybe does something lack in my OOo installation...
>> Yes could be. In any case if you start OOo manually with e.g.
>> -headless "-accept=socket,port=2002" then you can check that 1) the
>> process is running; 2) netstat shows it's listening on port 2002.
> The process exists as soon as I start it. :-/
>

Well then clearly there's something wrong with your OOo installation.
I don't know anything about your system so I can't make a guess. Is it
the latest OOo from download.openoffice.org?

Kind regards

Mirko

Verachten Bruno

unread,
Oct 30, 2009, 1:04:36 PM10/30/09
to jodcon...@googlegroups.com
Howdy Mirko,

> Well then clearly there's something wrong with your OOo installation.
> I don't know anything about your system so I can't make a guess. Is it
> the latest OOo from download.openoffice.org?

No, it wasn't. :-( We now have the official release, and it works.
Sorry to have made you loose some time.

Reply all
Reply to author
Forward
0 new messages