osdir.com
mailing list archive

Subject: DisposedException when connecting to OpenOffice - msg#00269

List: openoffice.devel.general

Date: Prev Next Index Thread: Prev Next Index
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

Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: Reasons why OpenOffice encounters error

Hi, well, what Java version do you use and do you get some kind of error message you can post? -Steffen mellannie rachelle reyes wrote: Good day sir/mam I just want to know what are the possible reasons that unexpected error will occur and OpenOffice will crash. I am trying to integrate an add-on (Filipino Grammar Checker) and whenever i try to test our code the error occurs. thank you very much!!! OS using: windows Procedure of integration: call a java class(where our code is)

Next Message by Date: click to view message preview

Chart: Integration Candidate 2 of the chart reimplementation available for download

Hi all chart users, A new developer snapshot of the new chart implementation is available for download on the chart website: http://graphics.openoffice.org/chart/chart.html This version now also contains the online help for the chart features. Many thanks to you for helping in this area :-) . So we are feature complete with respect to the old chart now. The problem of missing font antialiasing on Unix is solved also. I would like to encourage you to again help with testing thus we can assure to not introduce severe regression when replacing the old chart. Just download, extract and start. As this is a developer snapshot build it should not conflict with your normal OpenOffice.org version on your computer. Recently Fixed issues: http://graphics.openoffice.org/chart/recentlyfixed11.html Testable areas: all http://graphics.openoffice.org/chart/testableareas11.html Installation hints: http://graphics.openoffice.org/chart/readme11.html Be aware that the current download is not an official productive version but is only provided for testing and evaluation purposes. So please don't use it for regular work. Many thanks to all of you who already tested the previous versions! This really helps a lot. More eyes detect much more problems. Your help and feedback is very appreciated! Thanks a lot, Ingrid

Previous Message by Thread: click to view message preview

embedding BLOBs in ODT (and accessing them via UNO)

We have a custom OOo component and we'd like to store additional data inside a document that this component can access. So far we've encoded the data as text and then stored it in notes, but this is quite hackish. What we would like to do is to put an extra binary file into the ODT file (which after all is just a ZIP archive) and to read this file in our custom component. Does UNO have interfaces for accessing arbitrary data stored in the document's ODT file? Matthias

Next Message by Thread: click to view message preview

Re: DisposedException when connecting to OpenOffice

Jan Pavelka wrote: 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) Such an exception is often indicative of an soffice crash. (At a quick glance, your code and setup seems reasonable, so I have no idea why there would be an soffice crash, though.) -Stephan
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by