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 52309 - Illegal State Exception when starting or trying to setup an external browser
Summary: Illegal State Exception when starting or trying to setup an external browser
Status: CLOSED DUPLICATE of bug 48590
Alias: None
Product: ide
Classification: Unclassified
Component: Extbrowser (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-12 10:10 UTC by gkakaron
Modified: 2005-07-13 15:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gkakaron 2004-12-12 10:10:09 UTC
It used to work fine. I was starting mozilla with
no problems. Suddenly, not sure how but I think it
had something to do with closing the IDE and
trying to start it almost immediately, it stopped
working.
Now every time I'm trying to start the external
browser (e.g. Whenever I redeploy a web
application, right-click an HTML, JSP and select
Run File and so on) or when I try to setup an
external browser from Tools->Setup Wizard menu
(which shows no selected browsers), the same
exception raises:
The exception says:
A java.lang.IllegalStateException exception has
occurred.

The stack trace from the log file is this:

*********** Exception occurred ************ at
11:52 AM on Dec 12, 2004
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@1a6a354
item2: org.netbeans.core.ui.SwingBrowser@1a6a354
id1: 12cff6b id2: 134cd7b
	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)
[catch] at
org.openide.awt.HtmlBrowser.<init>(HtmlBrowser.java:173)
	at
org.netbeans.core.HtmlBrowserComponent.<init>(HtmlBrowserComponent.java:83)
	at
org.netbeans.core.NbTopManager$NbBrowser.<init>(NbTopManager.java:613)
	at
org.netbeans.core.NbTopManager$1.run(NbTopManager.java:328)
	at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
	at
java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
	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)
*********** Exception occurred ************ at
11:52 AM on Dec 12, 2004
java.lang.NullPointerException
	at
org.openide.awt.HtmlBrowser.<init>(HtmlBrowser.java:205)
	at
org.netbeans.core.HtmlBrowserComponent.<init>(HtmlBrowserComponent.java:83)
	at
org.netbeans.core.NbTopManager$NbBrowser.<init>(NbTopManager.java:613)
	at
org.netbeans.core.NbTopManager$1.run(NbTopManager.java:328)
	at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
	at
java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
[catch] 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)
Comment 1 zikmund 2004-12-13 09:19:27 UTC
It is already fixed in latest dev builds/Q-builds of 4.1 and in 4.0 RC1.

*** This issue has been marked as a duplicate of 48590 ***