This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 50210 - Illegal state exception initializing Swing Browser
Summary: Illegal state exception initializing Swing Browser
Status: CLOSED DUPLICATE of bug 48590
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-11 08:57 UTC by msmith
Modified: 2008-12-22 16:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log file containing the exceptions (271.28 KB, patch)
2004-10-11 08:58 UTC, msmith
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description msmith 2004-10-11 08:57:24 UTC
Starting a couple of days ago I can no longer
access the javadoc browser. I get this exception
when I try to to use it:

Annotation: Exception during initialization of
HTML browser module
java.lang.IllegalStateException: Duplicate pair in
treePair1: SL[/Browsers/SwingBrowser pair2:
SL[/Browsers/SwingBrowser index1: 6 index2: 6
item1: org.netbeans.core.ui.SwingBrowser@d8eece
item2: org.netbeans.core.ui.SwingBrowser@d8eece
id1: 262c5c id2: 2a5032
	at
org.openide.util.lookup.ALPairComparator.compare(ALPairComparator.java:52)
	at java.util.TreeMap.compare(TreeMap.java:1085)
	at java.util.TreeMap.put(TreeMap.java:463)
	at java.util.TreeSet.add(TreeSet.java:209)
	at
org.openide.util.lookup.AbstractLookup$R.initItems(AbstractLookup.java:788)
	at
org.openide.util.lookup.AbstractLookup$R.allItemsWithoutBeforeLookup(AbstractLookup.java:749)
	at
org.openide.util.lookup.AbstractLookup$R.allInstances(AbstractLookup.java:691)
	at
org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:378)
	at
org.openide.util.lookup.ProxyLookup$R.allInstances(ProxyLookup.java:329)
	at
org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:378)
	at
org.openide.util.lookup.ProxyLookup$R.allInstances(ProxyLookup.java:329)
	at
org.openide.awt.HtmlBrowser.findComponent(HtmlBrowser.java:226)
	at
org.openide.awt.HtmlBrowser.<init>(HtmlBrowser.java:173)
	at
org.openide.awt.HtmlBrowser.<init>(HtmlBrowser.java:155)
	at
org.netbeans.modules.javadoc.search.IndexSearch.<init>(IndexSearch.java:172)
	at
org.netbeans.modules.javadoc.search.IndexSearch.getDefault(IndexSearch.java:612)
	at
org.netbeans.modules.javadoc.search.SearchDocAction.performAction(SearchDocAction.java:58)
	at
org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:78)
	at
org.openide.util.actions.CallableSystemAction.doPerformAction(CallableSystemAction.java:116)
	at
org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:76)
	at
org.openide.windows.TopComponent.processKeyBinding(TopComponent.java:690)
	at
javax.swing.JComponent.processKeyBindings(JComponent.java:2484)
	at
javax.swing.JComponent.processKeyEvent(JComponent.java:2401)
	at
java.awt.Component.processEvent(Component.java:4909)
	at
java.awt.Container.processEvent(Container.java:1569)
	at
java.awt.Component.dispatchEventImpl(Component.java:3615)
	at
java.awt.Container.dispatchEventImpl(Container.java:1627)
	at
java.awt.Component.dispatchEvent(Component.java:3477)
	at
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1713)
	at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:627)
	at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:831)
	at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:741)
	at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:592)
	at
java.awt.Component.dispatchEventImpl(Component.java:3506)
	at
java.awt.Container.dispatchEventImpl(Container.java:1627)
	at
java.awt.Window.dispatchEventImpl(Window.java:1606)
	at
java.awt.Component.dispatchEvent(Component.java:3477)
[catch] at
java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

It seems to have been provoked by a new exception
class I added to my project. I've had some
problems with 4.0 creating classes and moving them
to a new package so it's possibly related to this.

Martin
Comment 1 msmith 2004-10-11 08:58:49 UTC
Created attachment 18185 [details]
messages.log file containing the exceptions
Comment 2 Jan Pokorsky 2004-10-11 09:42:53 UTC
Some issue with the Swing Browser registered in the lookup. Reassining
to the SB provider for evaluation.
Comment 3 Jaroslav Tulach 2004-10-13 15:33:54 UTC

*** This issue has been marked as a duplicate of 48590 ***
Comment 4 Tomas Danek 2005-08-01 09:58:08 UTC
verified as duplicate