To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=74708 Issue #|74708 Summary|DisposedException when connecting to listening OpenOff |ice Component|framework Version|OOo 2.1 Platform|Sun URL| OS/Version|Solaris Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|scripting Assigned to|npower Reported by|janopavelka
------- Additional comments from [EMAIL PROTECTED] Tue Feb 20 20:50:16 +0000 2007 ------- 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,peerHost=localhost,peerPort=6000 at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.invoke(java_remote_bridge.java:237) at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.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 --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]