• Eclipse freezes when opening a document
Replies:
1
Views:
34
Up one level
• Eclipse freezes when opening a document
Posted by
Yadis
at
2010-01-29 10:51:34
Hey Markus, I am so sorry to bother you again.
I now migrated my plugin from the development platform to a live platform and get some strange behaviour.
In my plugin I wrote my own OpenOffice Editor based on NOA which worked perfectly fine on the development machine. I then deployed the plugin to a different system to try it out.
When I try to open an OO document, sometimes (that is what makes me think there's something wrong) Eclipse completely freezes and I have to kill it and restart it, but sometimes it also works fine.
To me it looks like there is some kind of race condition somewhere.
Basically, I have noticed three different behaviours:
1) Everything works fine and the document is displayed as expected after a few seconds (~10% of the time) 2) Eclipse completely freezes and doesn't respond even after a waiting period of 10 minutes (~80% of the time) 3) Eclipse freezes for about one minute and then opens an empty editor with a log in the error log stating a connection reset (I will post the exact error message if I can reproduce it, it's very rare) I instantiate the editor with: HashMap configuration = new HashMap(); configuration.put(IOfficeApplication.APPLICATION_HOME_KEY, OPEN_OFFICE_ORG_PATH); configuration.put(IOfficeApplication.APPLICATION_TYPE_KEY, IOfficeApplication.LOCAL_APPLICATION); officeApplication = OfficeApplicationRuntime.getApplication(configuration); officeApplication.setConfiguration(configuration); officeApplication.activate(); panel = new Panel(new BorderLayout()); officeFrame = officeApplication.getDesktopService().constructNewOfficeFrame(panel);and close it with: IDesktopService desktopService = officeApplication.getDesktopService(); desktopService.terminate();Any hints would be appreciated, thanks. |
Yadis
Member
Posts:
8
|
• Re: Eclipse freezes when opening a document
Posted by
Yadis
at
2010-01-29 11:59:44
Here the detailed error message:
ag.ion.bion.officelayer.document.DocumentException: java.io.IOException: com.sun.star.io.IOException: java.net.SocketException: Connection reset
at ag.ion.bion.officelayer.internal.document.DocumentService.loadDocument(DocumentService.java:472)
at git.editor.OpenOfficeEditor.createPartControl(OpenOfficeEditor.java:180)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:662)
...
at
Caused by: com.sun.star.lang.DisposedException: java.io.IOException: com.sun.star.io.IOException: java.net.SocketException: Connection reset
at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java:171)
|
Yadis
Member
Posts:
8
|


