https://bugs.documentfoundation.org/show_bug.cgi?id=127625
Bug ID: 127625
Summary: Java application wait for MessageDispatcher thread
when using remote bridge
Product: LibreOffice
Version: 6.2.3.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: sdk
Assignee: [email protected]
Reporter: [email protected]
Created attachment 154264
--> https://bugs.documentfoundation.org/attachment.cgi?id=154264&action=edit
Test class
When I trying to write a simple Java application to connect to remote headless
LibreOffice server.
I use SDK from maven. I found some documentation
https://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Java/Getting_a_Service_Manager
and got com.sun.star.frame.XDesktop object, but next application doesn't stop.
In the debugger I got MessageDispatcher who waits for messages from the server:
SocketInputStream.socketRead0
SocketInputStream.socketRead:116
SocketInputStream.read:171
SocketInputStream.read:141
BufferedInputStream.fill:246
BufferedInputStream.read1:286
BufferedInputStream.read:345
Hidden Source Calls
SocketConnection.read:138
XConnectionInputStream_Adapter.read:48
DataInputStream.readInt:387
Hidden Source Calls
urp.readBlock:364
urp.readMessage:96
java_remote_bridge$MessageDispatcher.run:92
I've tried to call XDesktop::terminate() method in the end but as expected it
closed remote LibreOffice.
Are there other way to disconnect from the server and stop application?
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs