Hi,
I encountered a problem today while executing my code several times.
I'm connecting to an remote OOServer which is started in invisible and
headless mode. From a GUI application the user can execute a printing
job to create an openoffice(writer) document filled with the data he
selected.
The code for this works fine, at least most of the time. Now and then I
get the following error ( *** is manually inserted for privacy reasons):
java.io.IOException: com.sun.star.io.IOException: EOF reached -
socket,host=openoffice,port=8100,localHost=***,localPort=39629,peerHost=openoffice,peerPort=8100
com.sun.star.lang.DisposedException: java.io.IOException:
com.sun.star.io.IOException: EOF reached -
socket,host=openoffice,port=8100,localHost=***,localPort=39629,peerHost=openoffice,peerPort=8100
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java:176)
The server crashed and has to be restarted to try again. After executing
the EXACT same code right after a crash, I sometimes get the "ASCII
Filter Options"-Dialog which is used when OO doesn't know how to open
the file. Otherwise I get the same error again. After that I wait a
couple minutes and try again and all works well again. At least for a
couple of times till I get the mentioned error again.
I googled the problem and found that others encountered an equal problem
sometimes and one claimed, that after disposing the document, he got rid
of his error. I tried that , but it didn't solve my problem :/ .
My closing operation for documents is:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]