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?
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
I have ensured SELinux is off, just in case it is holding connections
for some short time period.