LibreOffice 4 UNO refuses connection to running swriter

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!

How long before it times out? 120 seconds?

The problem could be related with different JAR version usage.
Check if import JAR files used from your code are compatible with current LibreOffice UNO ones (or OpenOffice).
I think that there are some changes in “Uno Remote Protocol” into files:

Path\URE\java\jurt.jar ;

Path\URE\java\ridl.jar ;

Path\URE\java\unoloader.jar ;

Path\Basis\program\classes\unoil.jar ;

I hope it could be useful to you.

Can someone tell me where I can find these new JAR files?

I use Maven to retrieve these JAR files but I can’t find any new version. Currently I’m using version 3.2.1

These are my dependencies:

        <dependency>
			<groupId>org.openoffice</groupId>
			<artifactId>juh</artifactId>
			<version>${uno-release-version}</version>
		</dependency>
		<dependency>
			<groupId>org.openoffice</groupId>
			<artifactId>jurt</artifactId>
			<version>${uno-release-version}</version>
		</dependency>
		<dependency>
			<groupId>org.openoffice</groupId>
			<artifactId>ridl</artifactId>
			<version>${uno-release-version}</version>
		</dependency>
		<dependency>
			<groupId>org.openoffice</groupId>
			<artifactId>unoil</artifactId>
			<version>${uno-release-version}</version>
		</dependency>

They appear to be located under /opt/libreoffice4.1/ure/share/java/ i.e., in the LO install location in the ure/share/java/ directory.