[Libreoffice-bugs] [Bug 127625] New: Java application wait for MessageDispatcher thread when using remote bridge
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Sep 18 15:04:48 UTC 2019
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: libreoffice-bugs at lists.freedesktop.org
Reporter: olegshtch at yandex.ru
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190918/ac408ed2/attachment.html>
More information about the Libreoffice-bugs
mailing list