I’ve got an application that launches an instance of swriter which is being launched via Java’s Runtime.getRuntime().exec(String[] s)
, the command being exec’d in the String[]
is:
C:\Program Files (x86)\LibreOffice4.0\swriter -env:UserInstallation=file:///C:/Users/user/AppData/Roaming/LibreOffice/4/MyData -norestore -nolockcheck -nofirststartwizard -accept=socket,host=localhost,port=5678;urp;
Starting this way in OO3.4.1 and LO3.6 under Win7 would allow me to use the XUnoUrlResolver()
to create a new instance by the URL string:
uno:socket,host=localhost,port=5678,tcpNoDelay=1;urp;StarOffice.ServiceManager
When this code tries to start a new instance it reports an IOException EOF Reached:
Exception in thread "AWT-EventQueue-0" com.sun.star.lang.DisposedException: java.io.IOException: com.sun.star.io.IOException: EOF reached - socket,host=localhost,port=5678,tcpNoDelay=1,localHost=127.0.0.1,localPort=58831,peerHost=localhost,peerPort=5678
at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java:171)
I’ve checked that the port (5678) is not blocked in the firewall (created an inbound rule to allow it always) and I’ve verified that the running instance that should provide the UNO interfaces is listening on port 5678 using netstat -a.
So, this appears to be a regression in LibreO 4, given that this all worked in prior releases (on Win7/XP at least) or something about the URL formatting/content required for UNO has changed in LibreO 4.
Anybody got any ideas on what I’ve got wrong or ways to troubleshoot this back to an indictable element in LibreO so the devs have a prayer of fixing it?
Thanks!