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 47131 - Modifying an option cause the IDE to throw a "Exception occurred in Request Processor"
Summary: Modifying an option cause the IDE to throw a "Exception occurred in Request P...
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: ikysil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-11 20:59 UTC by hferland
Modified: 2007-08-06 12:44 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 hferland 2004-08-11 20:59:02 UTC
The following exeption will occur either when 
closing the option dialog AND/OR when switching 
to another project.

After some time, the IDE becomes unusable.

Annotation: Exception occurred in Request 
Processor
java.lang.IllegalStateException: You cannot use SL
[/JspCompiler/org-netbeans-modules-web-
jspcompiler-settings-JspCompilerSettings in more 
than one AbstractLookup
	at 
org.openide.util.lookup.AbstractLookup$Pair.setInd
ex(AbstractLookup.java:510)
	at 
org.openide.util.lookup.InheritanceTree$Node.assig
nItem(InheritanceTree.java:938)
	at 
org.openide.util.lookup.InheritanceTree.add
(InheritanceTree.java:154)
	at 
org.openide.util.lookup.DelegatingStorage.add
(DelegatingStorage.java:75)
	at 
org.openide.util.lookup.AbstractLookup.setPairsAnd
CollectListeners(AbstractLookup.java:224)
	at 
org.openide.util.lookup.AbstractLookup.setPairs
(AbstractLookup.java:203)
	at 
org.openide.util.lookup.AbstractLookup$Content.set
Pairs(AbstractLookup.java:885)
	at 
org.openide.loaders.FolderLookup$ProxyLkp.update
(FolderLookup.java:336)
	at 
org.openide.loaders.FolderLookup.createInstance
(FolderLookup.java:170)
	at 
org.openide.loaders.FolderInstance.defaultProcessO
bjects(FolderInstance.java:704)
	at 
org.openide.loaders.FolderInstance.access$000
(FolderInstance.java:68)
	at 
org.openide.loaders.FolderInstance$2.run
(FolderInstance.java:591)
	at 
org.openide.loaders.FolderLookup.postCreationTask
(FolderLookup.java:234)
	at 
org.openide.loaders.FolderInstance.processObjects
(FolderInstance.java:589)
	at 
org.openide.loaders.FolderInstance$Listener.finish
ed(FolderInstance.java:864)
	at 
org.openide.loaders.FolderList.createObjects
(FolderList.java:636)
	at 
org.openide.loaders.FolderList.getObjects
(FolderList.java:504)
	at 
org.openide.loaders.FolderList.access$200
(FolderList.java:50)
	at 
org.openide.loaders.FolderList$ListTask.run
(FolderList.java:869)
	at org.openide.util.Task.run
(Task.java:136)
	at 
org.openide.util.RequestProcessor$Task.run
(RequestProcessor.java:330)
[catch] at 
org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:686)
Comment 1 hferland 2004-08-11 21:04:33 UTC
Last change tried is the External Compilation / Deprecation switched 
to ON.

After a few project switching (4) the following exception occurs:

java.lang.IllegalStateException: Duplicate pair in treePair1: SL
[/CompilerType/External Compilation pair2: SL[/CompilerType/External 
Compilation index1: -1 index2: -1 item1: 
org.netbeans.modules.java.JavaExternalCompilerType@5b843d item2: 
org.netbeans.modules.java.JavaExternalCompilerType@46d477 id1: 26f29f 
id2: 102c186
	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:369)
	at org.openide.util.lookup.ProxyLookup$R.allInstances
(ProxyLookup.java:320)
	at org.openide.util.lookup.ProxyLookup$R.computeResult
(ProxyLookup.java:369)
	at org.openide.util.lookup.ProxyLookup$R.allInstances
(ProxyLookup.java:320)
	at org.netbeans.core.Services.services(Services.java:279)
	at org.netbeans.beaninfo.editors.ServiceTypeEditor.updateTags
(ServiceTypeEditor.java:92)
	at org.netbeans.beaninfo.editors.ServiceTypeEditor.getTags
(ServiceTypeEditor.java:148)
	at 
org.openide.explorer.propertysheet.RendererFactory.getRenderer
(RendererFactory.java:138)
	at 
org.openide.explorer.propertysheet.SheetCellRenderer.getTableCellRende
rerComponent(SheetCellRenderer.java:100)
	at 
org.openide.explorer.propertysheet.BaseTable.prepareRenderer
(BaseTable.java:552)
	at 
org.openide.explorer.propertysheet.SheetTable.prepareRenderer
(SheetTable.java:409)
	at javax.swing.plaf.basic.BasicTableUI.paintCell
(BasicTableUI.java:1149)
	at javax.swing.plaf.basic.BasicTableUI.paintCells
(BasicTableUI.java:1051)
	at javax.swing.plaf.basic.BasicTableUI.paint
(BasicTableUI.java:974)
	at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
	at javax.swing.JComponent.paintComponent(JComponent.java:541)
	at 
org.openide.explorer.propertysheet.SheetTable.paintComponent
(SheetTable.java:320)
	at javax.swing.JComponent.paint(JComponent.java:808)
	at org.openide.explorer.propertysheet.BaseTable.paint
(BaseTable.java:613)
	at javax.swing.JComponent.paintChildren(JComponent.java:647)
	at javax.swing.JComponent.paint(JComponent.java:817)
	at javax.swing.JViewport.paint(JViewport.java:722)
	at javax.swing.JComponent.paintChildren(JComponent.java:647)
	at javax.swing.JComponent.paint(JComponent.java:817)
	at javax.swing.JComponent.paintChildren(JComponent.java:647)
	at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021)
	at javax.swing.JComponent.paint(JComponent.java:817)
	at javax.swing.JComponent.paintChildren(JComponent.java:647)
	at javax.swing.JComponent.paint(JComponent.java:817)
	at javax.swing.JComponent.paintChildren(JComponent.java:647)
	at javax.swing.JComponent.paint(JComponent.java:817)
	at javax.swing.JComponent.paintChildren(JComponent.java:647)
	at javax.swing.JComponent.paint(JComponent.java:817)
	at javax.swing.JComponent.paintChildren(JComponent.java:647)
	at javax.swing.JComponent.paint(JComponent.java:817)
	at javax.swing.JComponent.paintChildren(JComponent.java:647)
	at javax.swing.JComponent.paint(JComponent.java:817)
	at javax.swing.JComponent.paintChildren(JComponent.java:647)
	at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021)
	at javax.swing.JComponent.paint(JComponent.java:817)
	at javax.swing.JComponent.paintChildren(JComponent.java:647)
	at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021)
	at javax.swing.JComponent.paint(JComponent.java:817)
	at javax.swing.JComponent.paintWithOffscreenBuffer
(JComponent.java:4787)
	at javax.swing.JComponent.paintDoubleBuffered
(JComponent.java:4740)
	at javax.swing.JComponent._paintImmediately
(JComponent.java:4685)
	at javax.swing.JComponent.paintImmediately
(JComponent.java:4488)
	at javax.swing.RepaintManager.paintDirtyRegions
(RepaintManager.java:410)
[catch] at 
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run
(SystemEventQueueUtilities.java:117)
	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)
Comment 2 hferland 2004-08-11 21:07:01 UTC
Once the java.lang.IllegalStateException: Duplicate pair in 
treePair1: SL
[/CompilerType/External Compilation pair2: SL[/CompilerType/External 
Compilation index1: -1 index2: -1 item1: 

has occured, the IDE is unusable. Even switching to a project without 
modification to Options, even closing and restarting the IDE.
Comment 3 hferland 2004-08-11 21:24:32 UTC
By unusable I mean that the exception is displayed in a infinite loop.
Comment 4 pfelenda 2004-08-12 11:17:48 UTC
Reassigning to web module ...
Comment 5 Petr Jiricka 2004-08-12 14:26:06 UTC
Reassigning to Illya. Adding the NO40 keyword - this issue does not
affect the NB 4.0 release.
Comment 6 mabrown 2004-10-06 17:24:33 UTC
I am receiving a similar exception on startup. Exception
(IllegalStateException) is the same, specifics differ from the one
already reported.
Here's the truncated version of mine...
java.lang.IllegalStateException: Duplicate pair in treePair1:
SL[/Browsers/SwingBrowser pair2: SL[/Browsers/SwingBrowser index1: 6 i
ndex2: 6 item1: org.netbeans.core.ui.SwingBrowser@1fb7565 item2:
org.netbeans.core.ui.SwingBrowser@1fb7565 id1: 189d7eb id2: 1d83cf4

In my case, using Alt-F1 to access specific javadocs is unaffected;
however, Shift-F1 to bring up the javadoc search fails with a trio of
exceptions (the IllegalStateException appears again, then an NPE).
Here's the truncated text of the second ISE:
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@6c08b2 item2:
org.netbeans.core.ui.SwingBrowser@6c08b2 id1: 1422d0b id2: af17c7

Here's the truncated text of the NPE:
java.lang.NullPointerException
	at org.openide.awt.HtmlBrowser.<init>(HtmlBrowser.java:205)
	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)

If I open the Options window and go to System/System Settings, I
receive the same ISE twice. The Web Browser property reads "Duplicate
pair in treePair1: SL[/Browse..." and is in blue text rather than the
black text of the rest of the properties.
If I click on or in the Web Browser property, I receive the ISE
continuously until I click on the Options window's "Close" button or
click on another property.

I set the Web Browser property to "Swing HTML Browser" almost
immediately after installing 4.0B2 and had made no changes to any
options today, though I had been in the Options dialog earlier in the
day (again, I made no changes, just surfed around).

Software specifics: Windows 2000, Java version 1.4.2_04-b05, NB4.0 Beta 2

Unless there's a better workaround than "delete your NB userdir and
start from scratch", I'd say this definitely merits the P1 priority it
was given and *should* affect the release of a production 4.0. Also,
I'm not familiar with NB source, but this would seem to be a more
widespread problem than a web/jspcompiler problem since I'm not doing
web/JSP development at all.
Comment 8 mabrown 2004-10-06 20:40:32 UTC
My apologies. I wasn't searching through closed/fixed issues when I
was looking for a previous report of my problem or I'd have found it
(and the workaround).
Comment 9 Martin Grebac 2005-01-10 16:05:21 UTC
This doesn't happen in 4.0, 4.1.
Comment 10 Dan Kolar 2007-08-06 12:44:59 UTC
v