developerWorks  >  Lotus  >  Forums & community  >  Lotus Expeditor Forum

Lotus Expeditor Forum

developerWorks




Why do I always get an excption when closing a perspective with an embedded browser?
John Ormerod 10:58 AM
Toolkit 6.1.2; 6.1.1 Windows XP


I have been meaning to ask this for abpout two years!! As it doesn't hurt, it's always been something on the 'to do' list. But, I'm fed up with it now, so here goes.

The embedded browser is configured with secondary-id and prefs set, then it is instantiated using layout.addStandaloneView(...). Normal stuff.

Whenever the containing perpective closes, I get the following stack trace (twice if there are two browsers in the same page!).

Any suggestions on how to stop it?

The only way I know, I discovered by chance, is to set enableBookmarks=true but, that's not a required setting

It looks as though it has something to do with the BookmarkManager.

2008/11/19 15:57:18.630 SEVERE ::class.method=com.ibm.rcp.ui.internal.browser.BrowserControl.disposePartControl() ::thread=main ::loggername=com.ibm.rcp.ui.internal.browser

java.lang.IllegalArgumentException
at org.eclipse.core.runtime.ListenerList.remove(ListenerList.java:155)
at com.ibm.rcp.ui.browser.bookmarks.BookmarkManager.removeFolderPropertyChangeListener(BookmarkManager.java:187)
at com.ibm.rcp.ui.internal.browser.BrowserControl.disposeActions(BrowserControl.java:1026)
at com.ibm.rcp.ui.internal.browser.BrowserControl.disposePartControl(BrowserControl.java:1325)
at com.ibm.rcp.ui.internal.browser.BrowserView$5.widgetDisposed(BrowserView.java:269)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:116)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
....

Regards, John

Go back