2009/3/8 Asiri Rathnayake <asiri.ra...@gmail.com>:
>
> I have a remote virtual host into which I deploy my development
> artifacts from time to time. While OfficeManager starts perfectly ok
> on my local machine, it gives me the following exception when deployed
> on the remote virtual host:
>
> <dump>
> ...
> Caused by: net.sf.jodconverter.util.RetryTimeoutException:
> java.net.ConnectException: connection failed:
> 'socket,host=127.0.0.1,port=8100'; java.net.ConnectException:
> Connection refused
> ...
> </dump>
>
JODConverter started the OOo process but couldn't connect to it. The
most likely cause is that you're starting OOo for the first time for
that user so OOo is trying to display the registration wizard. If
that's the case, you can either copy your local OOo profile
(~/.openoffice.org/3) to your remote machine, or check out the latest
trunk that starts OOo with -nofirststartwizard by default.
>
> Also, tracking down the above exception revealed me a possible bug in
> jodconverter 3.0-beta-1, consider the following code in
> ManagedOfficeProcess:
>
> <code>
> private void doStartProcessAndConnect() throws OfficeException {
> ...
> }
> </code>
>
> Here, if the connection attempt fails there would be an unused office
> process running on the computer. I think this can easily be fixed by
> terminating the office process (if it's running) within the outer
> catch block.
>
Well my thinking was that if an exception occurs then somebody will
have to go and manually fix things anyway. But you're right, we should
try and kill the OOo process.
Cheers
Mirko
> ...
> Caused by: net.sf.jodconverter.util.RetryTimeoutException:> ...
> java.net.ConnectException: connection failed:
> 'socket,host=127.0.0.1,port=8100'; java.net.ConnectException:
> Connection refused
> </dump>
>
JODConverter started the OOo process but couldn't connect to it. The
most likely cause is that you're starting OOo for the first time for
that user so OOo is trying to display the registration wizard. If
that's the case, you can either copy your local OOo profile
(~/.openoffice.org/3) to your remote machine, or check out the latest
trunk that starts OOo with -nofirststartwizard by default.