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 17491 - Multiple instances of UpdateNode
Summary: Multiple instances of UpdateNode
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P4 blocker (vote)
Assignee: akemr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-09 17:11 UTC by Jaromir Uhrik
Modified: 2003-06-30 13:50 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 Jaromir Uhrik 2001-11-09 17:11:20 UTC
[dev build #200111090100; jdk1.4]
When I start the UC wizard and connect to the UC server then in the ide.log 
appears the code below (I used the switch -J-Dnetbeans.debug.exceptions=true to 
have the warning in more readable form).

Fri Nov 09 16:54:19 CET 2001: java.lang.Throwable: Warning: multiple instances o
f shared class org.netbeans.modules.autoupdate.UpdateNode$1 created.
Nested annotation: First instance created here
java.lang.IllegalStateException: Warning: multiple instances of shared class org
.netbeans.modules.autoupdate.UpdateNode$1 created.
[catch] at org.openide.util.SharedClassObject.<init>(SharedClassObject.java:183)

        at org.openide.util.actions.SystemAction.<init>(SystemAction.java:54)
        at org.openide.util.actions.CallableSystemAction.<init>(CallableSystemAc
tion.java:25)
        at org.netbeans.modules.autoupdate.UpdateNode$1.<init>(UpdateNode.java:9
3)
        at org.netbeans.modules.autoupdate.UpdateNode$Module.<init>(UpdateNode.j
ava:84)
        at org.netbeans.modules.autoupdate.UpdateNode$Children.createNodes(Updat
eNode.java:215)
        at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1820)
        at org.openide.nodes.ChildrenArray.nodesFor(ChildrenArray.java:125)
        at org.openide.nodes.Children$Info.nodes(Children.java:929)
        at org.openide.nodes.Children.justComputeNodes(Children.java:440)
        at org.openide.nodes.ChildrenArray.nodes(ChildrenArray.java:69)
        at org.openide.nodes.Children.computeNodes(Children.java:355)
        at org.openide.nodes.Children.getNodes(Children.java:284)
        at org.openide.explorer.view.VisualizerNode$1.run(VisualizerNode.java:14
3)
        at org.openide.util.Mutex.readAccess(Mutex.java:176)
        at org.openide.explorer.view.VisualizerNode.getChildren(VisualizerNode.j
ava:141)
        at org.openide.explorer.view.VisualizerNode.getChildCount(VisualizerNode
.java:181)
        at javax.swing.tree.DefaultTreeModel.getChildCount(DefaultTreeModel.java
:171)
        at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(Varia
bleHeightLayoutCache.java:1464)
        at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(Varia
bleHeightLayoutCache.java:1273)
        at javax.swing.tree.VariableHeightLayoutCache.ensurePathIsExpanded(Varia
bleHeightLayoutCache.java:969)
        at javax.swing.tree.VariableHeightLayoutCache.setExpandedState(VariableH
eightLayoutCache.java:167)
        at javax.swing.plaf.basic.BasicTreeUI.updateExpandedDescendants(BasicTre
eUI.java:1497)
        at javax.swing.plaf.basic.BasicTreeUI$TreeExpansionHandler.treeExpanded(
BasicTreeUI.java:2315)
        at javax.swing.JTree.fireTreeExpanded(JTree.java:2241)
        at javax.swing.JTree.setExpandedState(JTree.java:3012)
        at javax.swing.JTree.expandPath(JTree.java:1747)
        at javax.swing.JTree.expandRow(JTree.java:1762)
        at org.openide.explorer.view.TreeView.expandAll(TreeView.java:448)
        at org.netbeans.modules.autoupdate.UpdatePanel$ExplorerView.expandAll(Up
datePanel.java:691)
        at org.netbeans.modules.autoupdate.UpdatePanel.refreshNodes(UpdatePanel.
java:1045)
        at org.netbeans.modules.autoupdate.UpdatePanel.access$1000(UpdatePanel.j
ava:49)
        at org.netbeans.modules.autoupdate.UpdatePanel$12.run(UpdatePanel.java:6
49)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:181)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:446)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:193)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:147)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:141)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:133)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:101)

Fri Nov 09 16:54:19 CET 2001: java.lang.Throwable: First instance created here
java.lang.Throwable: First instance created here
[catch] at org.openide.util.SharedClassObject.<init>(SharedClassObject.java:169)

        at org.openide.util.actions.SystemAction.<init>(SystemAction.java:54)
        at org.openide.util.actions.CallableSystemAction.<init>(CallableSystemAc
tion.java:25)
        at org.netbeans.modules.autoupdate.UpdateNode$1.<init>(UpdateNode.java:9
3)
        at org.netbeans.modules.autoupdate.UpdateNode$Module.<init>(UpdateNode.j
ava:84)
        at org.netbeans.modules.autoupdate.UpdateNode$Children.createNodes(Updat
eNode.java:215)
        at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1820)
        at org.openide.nodes.ChildrenArray.nodesFor(ChildrenArray.java:125)
        at org.openide.nodes.Children$Info.nodes(Children.java:929)
        at org.openide.nodes.Children.justComputeNodes(Children.java:440)
        at org.openide.nodes.ChildrenArray.nodes(ChildrenArray.java:69)
        at org.openide.nodes.Children.computeNodes(Children.java:355)
        at org.openide.nodes.Children.getNodes(Children.java:284)
        at org.openide.explorer.view.VisualizerNode$1.run(VisualizerNode.java:14
3)
        at org.openide.util.Mutex.readAccess(Mutex.java:176)
        at org.openide.explorer.view.VisualizerNode.getChildren(VisualizerNode.j
ava:141)
        at org.openide.explorer.view.VisualizerNode.getChildCount(VisualizerNode
.java:181)
        at javax.swing.tree.DefaultTreeModel.getChildCount(DefaultTreeModel.java
:171)
        at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(Varia
bleHeightLayoutCache.java:1464)
        at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(Varia
bleHeightLayoutCache.java:1273)
        at javax.swing.tree.VariableHeightLayoutCache.ensurePathIsExpanded(Varia
bleHeightLayoutCache.java:969)
        at javax.swing.tree.VariableHeightLayoutCache.setExpandedState(VariableH
eightLayoutCache.java:167)
        at javax.swing.plaf.basic.BasicTreeUI.updateExpandedDescendants(BasicTre
eUI.java:1497)
        at javax.swing.plaf.basic.BasicTreeUI$TreeExpansionHandler.treeExpanded(
BasicTreeUI.java:2315)
        at javax.swing.JTree.fireTreeExpanded(JTree.java:2241)
        at javax.swing.JTree.setExpandedState(JTree.java:3012)
        at javax.swing.JTree.expandPath(JTree.java:1747)
        at javax.swing.JTree.expandRow(JTree.java:1762)
        at org.openide.explorer.view.TreeView.expandAll(TreeView.java:448)
        at org.netbeans.modules.autoupdate.UpdatePanel$ExplorerView.expandAll(Up
datePanel.java:691)
        at org.netbeans.modules.autoupdate.UpdatePanel.refreshNodes(UpdatePanel.
java:1045)
        at org.netbeans.modules.autoupdate.UpdatePanel.access$1000(UpdatePanel.j
ava:49)
        at org.netbeans.modules.autoupdate.UpdatePanel$12.run(UpdatePanel.java:6
49)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:181)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:446)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:193)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:147)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:141)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:133)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:101)
Comment 1 akemr 2001-11-13 09:07:38 UTC
Fixed in main trunk.
Comment 2 Jaromir Uhrik 2001-11-23 14:56:07 UTC
Verified in #200111230645.
Comment 3 Quality Engineering 2003-06-30 13:50:46 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.