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 41610 - Exception occurs when remove default sample server
Summary: Exception occurs when remove default sample server
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-01 19:56 UTC by davisn
Modified: 2004-08-13 12:11 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 davisn 2004-04-01 19:56:50 UTC
Build used:
   Appserver: b57
   Netbean: RC1
   Plugin: 03/30

STEPS TO REPRODUCE:
1. Start Netbean IDE > AppServer
2. From J2EE 1.4 SDK Server node > select to
register the localhost:4858 sample 
server (use the localhost option when adding the
sample server)
3. Start the localhost:4858 sample server
4. Create a jdbc connection pool
5. Register the jdbc connection pool (named cp1)
NOTE:
   By default the connection pool cp1 should
register to localhost:4848 domain1 
server
6. Set default server to sample server
7. Register cp1
NOTE:
   The cp1 should now register to sample server
8. Remove (delete) the sample server
BUG:
     Unexpected Exception dialog comes up
     (ide.log file is attached)
--------------------------------------------------------------------------------
java.lang.IllegalArgumentException: Deassign from
wrong parent. Old: null 
Caller: org.openide.nodes.FilterNode$Children@8916fa
        at
org.openide.nodes.Node.deassignFrom(Node.java:270)
        at
org.openide.nodes.Children.notifyRemove(Children.java:753)
        at
org.openide.nodes.Children$Keys.notifyRemove(Children.java:1937)
        at
org.openide.nodes.Children.updateRemove(Children.java:712)
        at
org.openide.nodes.Children.setEntries(Children.java:666)
        at
org.openide.nodes.Children$3.run(Children.java:1878)
        at
org.openide.util.Mutex.postRequest(Mutex.java:877)
        at
org.openide.util.Mutex.postWriteRequest(Mutex.java:364)
        at
org.openide.nodes.Children$Keys.applyKeys(Children.java:1886)
        at
org.openide.nodes.Children$Keys.setKeys(Children.java:1868)
        at
org.openide.nodes.FilterNode$ChildrenAdapter.run(FilterNode.java:1246
)
        at
org.openide.nodes.FilterNode$Children.updateKeys(FilterNode.java:1201
)
        at
org.openide.nodes.FilterNode$Children.filterChildrenRemoved(FilterNod
e.java:1181)
        at
org.openide.nodes.FilterNode$ChildrenAdapter.childrenRemoved(FilterNo
de.java:1273)
        at
org.openide.nodes.Node.fireSubNodesChange(Node.java:858)
        at
org.openide.nodes.Node.setChildren(Node.java:375)
        at
org.netbeans.modules.j2ee.deployment.impl.ui.InstanceTargetXNode.hand
leRefresh(InstanceTargetXNode.java:160)
        at
org.netbeans.modules.j2ee.deployment.impl.ServerInstance.fireInstance
Refreshed(ServerInstance.java:658)
        at
org.netbeans.modules.j2ee.deployment.impl.ServerInstance.refresh(Serv
erInstance.java:120)
        at
org.netbeans.modules.j2ee.deployment.impl.ServerInstance._stop(Server
Instance.java:538)
        at
org.netbeans.modules.j2ee.deployment.impl.ServerInstance.stop(ServerI
nstance.java:363)
        at
org.netbeans.modules.j2ee.deployment.impl.ServerInstance.remove(Serve
rInstance.java:144)
        at
org.netbeans.modules.j2ee.deployment.impl.ui.actions.RemoveInstanceAc
tion.performAction(RemoveInstanceAction.java:51)
        at
org.openide.util.actions.NodeAction$3.run(NodeAction.java:440)
        at
org.openide.util.actions.CallableSystemAction.doPerformAction(Callabl
eSystemAction.java:116)
        at
org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(No
deAction.java:438)
        at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
86)
        at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
ctButton.java:1839)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:420)
        at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
)
        at
javax.swing.AbstractButton.doClick(AbstractButton.java:289)
        at
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
113)
        at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseRelease
d(BasicMenuItemUI.java:943)
        at
java.awt.Component.processMouseEvent(Component.java:5100)
        at
java.awt.Component.processEvent(Component.java:4897)
        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.LightweightDispatcher.retargetMouseEvent(Container.java:3483
)
        at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
        at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
        at
java.awt.Container.dispatchEventImpl(Container.java:1613)
        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(EventDispatchTh
read.java:201)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.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 Petr Jiricka 2004-04-02 07:41:50 UTC
Pavle, can you please evaluate?
Comment 2 Pavel Buzek 2004-04-02 19:30:05 UTC
I cannot reproduce the bug. I asked submitter for more info offline
(regarding S1AS) and I am waiting for response.

It is not clear the description what harm this bug causes (besides
showing an exception). From the log it looks like non-harmful, but it
hard to judge.

BTW: do not paste exception traces into comment, create an attachment.
Comment 3 davisn 2004-04-02 21:19:08 UTC
I can't reproduce this problem on the RC2 build either.
This bug was logged against the RC1 build.
Comment 4 Pavel Buzek 2004-04-05 16:15:49 UTC
Since it cannot be reproduced I am downgrading to P3. Keeping open
until QA or myself will be able to follow the scenario.
Comment 5 Pavel Buzek 2004-08-06 22:18:14 UTC
probably fixed in nodes, see also 40903 that shows a similar problem
(also not reproducible)