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 79979

Summary: 'Go To Source' from Navigator throws ClassCastException
Product: xml Reporter: Andrei Chistiakov <ca-nb>
Component: Schema ToolsAssignee: bhate <bhate>
Status: VERIFIED FIXED    
Severity: blocker CC: cwebster, htt, ivansidorkin, kozlov
Priority: P1    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description Andrei Chistiakov 2006-07-11 13:17:51 UTC
Reproduced in build 060710.

To reproduce the bug:

- open an XML schema;
- invoke 'Go To Source' on any schema component displayed in Navigator.

java.lang.ClassCastException: org.openide.nodes.FilterNode cannot be cast to
org.netbeans.modules.xml.schema.abe.nodes.ABEAbstractNode
	at
org.netbeans.modules.xml.schema.abe.action.ShowSourceAction1.performAction(ShowSourceAction1.java:93)
	at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:537)
	at
org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.actionPerformed(ActionsBridge.java:87)
	at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:80)
	at
org.netbeans.modules.openide.actions.ActionsBridgeImpl.invokeAction(ActionsBridgeImpl.java:30)
	at
org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.doRun(ActionsBridge.java:78)
	at org.netbeans.modules.openide.util.ActionsBridge$1.run(ActionsBridge.java:47)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Comment 1 bhate 2006-07-12 18:29:22 UTC
this issue is fixed
we will see goto source and goto schema from schema design navigator.
Comment 2 Andrei Chistiakov 2006-07-18 12:13:35 UTC
Verified in build 060717.