Hanging on connection to the open office headless instance.

341 views
Skip to first unread message

Anthony Hildoer

unread,
Feb 16, 2010, 7:30:56 PM2/16/10
to JODConverter
I have looked at the FAQ, read everything I could on any web page that
has any information on this topic, and there is no mention of anyone
having this problem, so I resorted to posting.

Basically, when I run any of the scripts (java or python), the script
hangs for 30-60 seconds before doing anything. I modified the python
script and inserted some debug lines to determine where it is hanging.
I found the two lines it hangs on:

context = resolver.resolve("uno:socket,host=localhost,port=
%s;urp;StarOffice.ComponentContext" % port)

and

document = self.desktop.loadComponentFromURL(inputUrl, "_blank", 0,
self._toProperties(loadProperties))

I am running centos 5.4, stock. I installed OO ver 3.1.0 directly from
RPMs downloaded from openoffice.org. Simply extracted the RPMs, then
did rpm -i on all of them.

I start the headless instance of OO with:

/opt/openoffice.org3/program/soffice -headless -
accept="socket,host=localhost,port=8100;urp;" -nofirststartwizard

I have done the same things on two other test systems, and it works
flawlessly. But, on the production server it hangs. Can't figure it
out. Have tried listening on specific IP addresses, all addresses,
adding entries to /etc/hosts, etc. Nothing works to improve the
resolve time.

Any suggestions?

Friendlyguy

unread,
Feb 17, 2010, 8:59:00 AM2/17/10
to JODConverter
Hi

it's almost certainly a networking issue. Try playing around with the
"host=localhost" - try "host=127.0.0.1" or the IP address.

Also test the resolve speed using a socket by typing:
telnet localhost 8100
You should see something like this immediately:
`☺
°♦û'com.sun.star.bridge.XProtocolProperties§UrpProtocolProperties¶É↕(aYα,~M¿¿╒
§╓%3▒H╧

hope this helps
Brian Fenton

Anthony Hildoer

unread,
Feb 17, 2010, 10:22:05 AM2/17/10
to JODConverter
In the soffice command, I have tried localhost, 127.0.0.1,
0.0.0.0(listen on all interfaces) and my static IP. I have used telnet
to test them all, and it takes about 30-45 seconds until telnet
prints:
`ø'com.sun.star.bridge.XProtocolPropertiesUrpProtocolPropertiesuüCZ§

I have ensured SELinux is off, just in case it is holding connections
for some short time period.

Hong Xu

unread,
Aug 22, 2016, 3:50:55 AM8/22/16
to JODConverter, ahil...@gmail.com
how fix it,you know?
 

在 2010年2月17日星期三 UTC+8下午11:22:05,Anthony Hildoer写道:
Reply all
Reply to author
Forward
0 new messages