Apache OpenOffice (AOO) Bugzilla – Issue 87894
Unable to connect to Socket launched from command line
Last modified: 2008-11-26 13:03:06 UTC
When trying to start OpenOffice 2.4.0 with the following command: program\soffice.exe -accept=socket,host=localhost,port=2002;urp; OpenOffice opens but is unreachable using the hello_world.py example found at http://udk.openoffice.org/python/python-bridge.html. The following message is returned: ctx = resolver.resolve( "uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" ) __main__.com.sun.star.connection.NoConnectException: Connector : couldn't connect to socket (WSANOTINITIALISED, WSAStartup() has not been called) Using previously released versions of OpenOffice (OOo 2.3x) and running the same command line and script generates no errors. The above behavior was exhibited on two different machines a 2003 Windows Server and a Windows XP professional workstation.
I have the same error on OOo 2.4.0 Win XP with same hello_world, but doubtfully is priority 1.
Confirmed: reverting from 2.4.0 to 2.3.1 on Win XP solves the problem.
It's not even P2 (no crash, no data loss, most users not affected at all) -> P3 ab->as: I don't know if this is an Office startup or a Python binding related problem. In any case it's not my issue as Python is a Sun external project. Please have a look and assign to (still?) Joerg Budischewski if it's no Office problem.
P3, next try
Workaround is to use pipe instead of socket: http://www.oooforum.org/forum/viewtopic.phtml?p=280746#280746
Can this be targeted for 2.4.1? I raised this on the releases mailing list but I received no reply.
This issue seems to have been resolved (or rather default functionality has changed) by http://www.openoffice.org/issues/show_bug.cgi?id=86692. Can someone confirm?
as->sb: Any changes inside that area ?
. *** This issue has been marked as a duplicate of 95028 ***
.