On Wednesday, 20 April 2005 14:44, Braun Brelin wrote:
> Hello all,
>
> I am running Open Office in headless mode as follows:
>
> soffice -headless -server -accept="socket,port=8100;urp;" -display
> :1
>
> The process starts up okay and seems to be running as evidenced by
> a ps.
>
> I've also got a java script that attempts to to connect to the
> headless instance in order to convert files from .sxw to .doc.
>
> However, I get the following thrown exception and stack trace:
>
> -------------------------------------------------------------------
>---------
> uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager
> need to start the open office server process
> com.sun.star.connection.NoConnectException:
> java.net.ConnectException: Connection refused
>         at
> com.sun.star.lib.connections.socket.socketConnector.connect(socketC
>onnector.java:194) at
> com.sun.star.comp.connections.Connector.connect(Connector.java:172)
>         at
> com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlR
>esolver.java:159) at
> OOStuff.ConvertToPs.<init>(ConvertToPs.java:113) at
> OOStuff.ConvertToPs.main(ConvertToPs.java:485)
> com.sun.star.connection.NoConnectException:
> java.net.ConnectException: Connection refused
>         at
> com.sun.star.lib.connections.socket.socketConnector.connect(socketC
>onnector.java:194) at
> com.sun.star.comp.connections.Connector.connect(Connector.java:172)
>         at
> com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlR
>esolver.java:159) at
> OOStuff.ConvertToPs.<init>(ConvertToPs.java:113) at
> OOStuff.ConvertToPs.main(ConvertToPs.java:485)
> -------------------------------------------------------------------
>-----------
>
> I don't even know how to start debugging this problem, must less
> fixing it. Can any one throw me a few pointers here?  I'm running
> OOo 1.1.4 on a Suse Linux 9.1 Professional Edition distribution.
>
> I've even wiped and re-installed the OO software from scratch,
> making sure that a JVM was installed and that it was the same one
> that the java program used.
>
> Any help appreciated,
>
> Braun Brelin

Braun,

Here's your problem:
> java.net.ConnectException: Connection refused
>         at
Either port 8100 isn't open, or your are being firewalled out, or 
similar.

I don't have all the relevant docs handy, so I might get some of this 
wrong. According to the Developers Guide pg 32 your command line 
should be:

soffice -headless -server "-accept=socket,port=8100;urp;" -display:1
                          ^
Note the different position of the opening double quotes. I'll admit 
that it looks wierd, but that what the docs say. 

Use "netstat -atn" to verify that port 8100 is open. I tried both 
commands on my machine and found that with the amended command, port 
8100 did open. With your original command, it didn't.

Also make sure that something else isn't already using port 8100 - 
netstat -atn with soffice not running will tell you.

Good luck
-- 
Alan McKinnon
[EMAIL PROTECTED]
+27 82 337 1935 (C)
+27 86 110 2411 (W)
+27 12 349 9277 (F)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to