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 59285 - java.lang.RuntimeException: DOM graph creation failed when two realms defined at the same level
Summary: java.lang.RuntimeException: DOM graph creation failed when two realms defined...
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-26 13:15 UTC by jlaskowski
Modified: 2006-04-18 16: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 jlaskowski 2005-05-26 13:15:18 UTC
1/ Edit server.xml of an instance defined in the Servers view in the Runtime.
2/ Uncommend any commented realm so that there're two consecutive, top-level
realms, which is against the server.xml structure rules.
3/ Whenever you do anything with the instance, IDE will pop up a window with the
following exception. It should rather inform a user about the real cause of the
exception - something like two realms (or elements) at the same level in
server.xml and eventually show the place(s).

java.lang.RuntimeException: DOM graph creation failed:
org.netbeans.modules.schema2beans.Schema2BeansRuntimeException: Property "Realm"
already bound to a DOM node.
	at org.netbeans.modules.tomcat5.config.Server.createGraph(Server.java:465)
	at org.netbeans.modules.tomcat5.config.Server.createGraph(Server.java:449)
	at
org.netbeans.modules.tomcat5.TomcatManagerConfig.getServerElement(TomcatManagerConfig.java:97)
	at
org.netbeans.modules.tomcat5.TomcatManagerConfig.getEngineElement(TomcatManagerConfig.java:110)
	at
org.netbeans.modules.tomcat5.TomcatManagerConfig.getHostElement(TomcatManagerConfig.java:125)
	at
org.netbeans.modules.tomcat5.TomcatManagerConfig.refresh(TomcatManagerConfig.java:54)
	at
org.netbeans.modules.tomcat5.TomcatManagerConfig.<init>(TomcatManagerConfig.java:44)
	at org.netbeans.modules.tomcat5.TomcatManager.<init>(TomcatManager.java:250)
	at
org.netbeans.modules.tomcat5.TomcatFactory55.getDeploymentManager(TomcatFactory55.java:76)
	at
org.netbeans.modules.j2ee.deployment.impl.Server.getDeploymentManager(Server.java:154)
	at
org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getDeploymentManager(ServerInstance.java:138)
	at
org.netbeans.modules.j2ee.deployment.impl.ui.RegistryNodeProvider$2.lookup(RegistryNodeProvider.java:98)
	at
org.netbeans.modules.tomcat5.nodes.TomcatInstanceNode.getDeploymentManager(TomcatInstanceNode.java:222)
	at
org.netbeans.modules.tomcat5.nodes.TomcatInstanceNode.getTomcatManager(TomcatInstanceNode.java:121)
	at
org.netbeans.modules.tomcat5.nodes.TomcatInstanceNode.getActions(TomcatInstanceNode.java:208)
	at
org.netbeans.modules.j2ee.deployment.impl.ui.FilterXNode.getActions(FilterXNode.java:71)
	at
org.netbeans.modules.j2ee.deployment.impl.ui.InstanceTargetXNode.getActions(InstanceTargetXNode.java:165)
	at org.openide.nodes.FilterNode.getActions(FilterNode.java:678)
	at org.openide.nodes.NodeOp.findActions(NodeOp.java:107)
	at org.openide.explorer.view.TreeView.createPopup(TreeView.java:861)
	at org.openide.explorer.view.TreeView$PopupAdapter.showPopup(TreeView.java:1272)
	at org.openide.awt.MouseUtils$PopupMouseAdapter.maybePopup(MouseUtils.java:152)
	at org.openide.awt.MouseUtils$PopupMouseAdapter.mouseReleased(MouseUtils.java:147)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
	at java.awt.Component.processMouseEvent(Component.java:5488)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
	at java.awt.Component.processEvent(Component.java:5253)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Sherold Dev 2005-05-26 13:32:13 UTC
TM -> 4.2.
Comment 2 Jaroslav Pospisil 2006-03-13 13:46:43 UTC
TM 5.0->TBD
Comment 3 Sherold Dev 2006-04-18 16:11:22 UTC
Fixed when fixing issue 74745.