Christian Andersson wrote:
Hi there, I'm trying to upgrade my javacode that integrates with openoffice from using openoffice 1.1.3/4 to using openoffice 2.0 (so that when 2.0 comes out we are already finished)
I've been downloading openoffice 1.9.95 and installed it.


my system is configured as follows

mandrake 10.1 with kde 3.3.1 using x.org
java 1.4.2_04
openoffice 1.9.95

I've set it up so that it listens to the correct port using this xml snippet in the Setup.xcu file
<prop oor:name="ooSetupConnectionURL" oor:type="xs:string">
<value>socket,host=localhost,port=8100;urp;StarOffice.ServiceManager</value>


</prop>

so far so good, starting up OOo I can see that the port is open and ready for usage.

now trying to get openoffice to open a document from the disc using my javacode fails... (this works perfectly in 1.1.3/4)

what happens is the following.. as soon as i call the loadComponentFromURL function of the XComponentLoader interface, openoffice crashes, sometimes it hangs a bit before crashing (10 secs, 1 minute, several minutes)

in java I get this exception
com.sun.star.lang.DisposedException: com.sun.star.io.IOException: EOF reached - socket,host=localhost,port=8100,localHost=rincewind,localPort=37093,peerHost=localhost,peerPort=8100


at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.invoke(java_remote_bridge.java:282)

at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java:170)

com.sun.star.lang.DisposedException: com.sun.star.io.IOException: EOF reached - socket,host=localhost,port=8100,localHost=rincewind,localPort=37093,peerHost=localhost,peerPort=8100

at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.invoke(java_remote_bridge.java:282)

at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java:170)

Those exceptions just mean that your Java program has lost its connection to soffice, since soffice has crashed. You need to debug the soffice process to find out what the problem is.


starting the openoffice instance from the shell turns out to give me this message in the shell when openoffice crashed..
Xlib: unexpected async reply (sequence 0x4112)!
Xlib: sequence lost (0x14112 > 0x4495) in reply type 0x0!

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to