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.
Build: NetBeans IDE Dev (Build 200810170201) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Windows XP, 5.1, x86 Stacktrace: java.lang.ClassCastException: org.netbeans.api.java.lexer.JavaTokenId cannot be cast to org.netbeans.api.xml.lexer.XMLTokenId
Created attachment 72127 [details] stacktrace
Build: NetBeans IDE Dev (Build 200810170201) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.ClassCastException: org.netbeans.api.java.lexer.JavaTokenId cannot be cast to org.netbeans.api.xml.lexer.XMLTokenId at org.netbeans.modules.xml.xdm.nodes.XMLSyntaxParser.parse(XMLSyntaxParser.java:85) at org.netbeans.modules.xml.xdm.XDMModel.prepareSync(XDMModel.java:167) at org.netbeans.modules.xml.xdm.XDMModel.sync(XDMModel.java:156) at org.netbeans.modules.xml.xdm.xam.XDMAccess.sync(XDMAccess.java:126) at org.netbeans.modules.xml.xam.AbstractModel.sync(AbstractModel.java:259) at org.netbeans.modules.xml.xam.AbstractModelFactory.getModel(AbstractModelFactory.java:137)
Created attachment 72130 [details] stacktrace
This is a very interesting bug. Not sure why should it get a JavaTokenId while dealing with XML/Schema/WSDL files. Is there a way to reproduce this issue? Please describe in detail.
steps: 1) Create the sample StockQuoteService 2) Right click the stock service ws file and select add operation 3) In add operation dialog box click import xml schema 4) In add schema dialog click the add button 5) In the Select schema bean tree dialog expand the tree and double click stock service.java ws file and press ok using Dev Build 200810170201
If you select a java file instead of a schema document, then this is bound to happen. The import dialog should fix this problem. Assigning to websvc...
Build: NetBeans IDE 6.5 RC2 (Build 200810270001) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.ClassCastException: org.netbeans.api.java.lexer.JavaTokenId cannot be cast to org.netbeans.api.xml.lexer.XMLTokenId at org.netbeans.modules.xml.xdm.nodes.XMLSyntaxParser.parse(XMLSyntaxParser.java:85) at org.netbeans.modules.xml.xdm.XDMModel.prepareSync(XDMModel.java:167) at org.netbeans.modules.xml.xdm.XDMModel.sync(XDMModel.java:156) at org.netbeans.modules.xml.xdm.xam.XDMAccess.sync(XDMAccess.java:126) at org.netbeans.modules.xml.xam.AbstractModel.sync(AbstractModel.java:259) at org.netbeans.modules.xml.xam.AbstractModelFactory.getModel(AbstractModelFactory.java:137)
Created attachment 72974 [details] stacktrace
We plan to remove Add WS Operation dialog for 7.0. See the comment added to issue 150551.
Fixed. See the issue 122687.