Hi,
there is a bug concerning the termination of the bean (60473). What you
could to is to modify the OOoBean code yourself.
You could for example add a function to OOoBean that removes the event
listener (private class EventListener in
com/sun/star/comp/beans/OOoBean.java).
after calling this method, you could call XDesktop.terminate. Currently
the event lister is notified and throws a TerminationVetoException.
Thats why the listener must be removed before.
This may work for your case.
Joachim
[EMAIL PROTECTED] wrote:
Hi everybody,
I'm using the OOoBean and would like to terminate correctly the OOo I've
started. I used the code of the Developer's Guide example
(http://api.openoffice.org/source/browse/api/odk/examples/DevelopersGuide/OfficeBean/OOoBeanViewer.java)
and I get the exception pasted at the end of the mail and still have my
OOo process. Does anyone have an idea of how to fix this ?
Thanks for your help
Cedric
-----------------------%< Exception %<----------------------
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.checkDisposed(java_remote_bridge.java:913)
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:828)
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:809)
at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:159)
at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:141)
at $Proxy5.terminate(Unknown Source)
at OOoFacade$1.windowClosing(OOoFacade.java:46)
at java.awt.Window.processWindowEvent(Window.java:1190)
at java.awt.Window.processEvent(Window.java:1148)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]