Hello everybody, I'm using OpenOffice 2.1 on Solaris I'm trying to connect to listening OpenOffice with my application. I have a Xvfb started, so I use this command to start openoffice soffice -invisible -display :0 "-accept=socket,host=localhost,port=6000;urp;StarOfficeServiceManager"
When I try to bootstrap the OO with given code: OpenOfficeHost = "localhost"; OpenOfficePort = "6000"; String con = "socket,host="+OpenOfficeHost+",port="+OpenOfficePort; xRemoteContext = Bootstrap.createInitialComponentContext(null); XUnoUrlResolver urlResolver = UnoUrlResolver.create(xRemoteContext); Object initialObject = urlResolver.resolve( "uno:socket,host=" + OpenOfficeHost + ",port=" + OpenOfficePort + ";urp;StarOffice.ServiceManager"); xRemoteServiceManager = (XMultiComponentFactory) UnoRuntime.queryInterface(XMultiComponentFactory.class, initialObject); XPropertySet xProperySet = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, xRemoteServiceManager); Object oDefaultContext = xProperySet.getPropertyValue("DefaultContext"); xRemoteContext = (XComponentContext) UnoRuntime.queryInterface(XComponentContext.class, oDefaultContext); desktop = xRemoteServiceManager.createInstanceWithContext( "com.sun.star.frame.Desktop", xRemoteContext); I got the exception com.sun.star.lang.DisposedException: java.io.IOException: com.sun.star.io.IOException: EOF reached - socket,host=localhost,port=6000,localHost=localhost,localPort=35109,peer Host=localhost,peerPort=6000 at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispa tcher.invoke(java_remote_bridge.java:237) at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispa tcher.run(java_remote_bridge.java:144) at line Object initialObject = urlResolver.resolve( "uno:socket,host=" + OpenOfficeHost + ",port=" + OpenOfficePort + ";urp;StarOffice.ServiceManager"); Thanks for any help Jan Pavelka