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 176595 - [68cat] ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
Summary: [68cat] ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConf...
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-11 13:51 UTC by gholmer
Modified: 2009-11-13 06:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 64660


Attachments
stacktrace (5.37 KB, text/plain)
2009-11-11 13:51 UTC, gholmer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gholmer 2009-11-11 13:51:53 UTC
Build: NetBeans IDE Dev (Build 200911091156)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.28-16-generic, i386

User Comments:
gholmer: Appeared during a compile with an XHTML file open in the editor.  After this exception appears, all the tags in the XHTML file are marked as errors (red squiggly line), and the error dialog continues to come up about once a second until NetBeans is restarted.



Stacktrace: 
java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
        at org.apache.xerces.parsers.DOMParser.<init>(DOMParser.java:0)
        at org.apache.xerces.parsers.DOMParser.<init>(DOMParser.java:0)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(DocumentBuilderImpl.java:0)
        at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:0)
        at com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.createDocument(SAX2DOM.java:326)
        at com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.<init>(SAX2DOM.java:85)
Comment 1 gholmer 2009-11-11 13:51:57 UTC
Created attachment 90846 [details]
stacktrace
Comment 2 Marek Fukala 2009-11-13 03:45:51 UTC
I cannot reproduce this issue since there is another one blocking me - Issue #176771. I'll evaluate this one once I manage to fix the second.
Comment 3 Marek Fukala 2009-11-13 05:18:49 UTC
The blocking issue #176771 has been fixed, but I cannot reproduce the issue reported here. 

Is that always reproducible? On what project type? What libraries do you have? Did you somehow fiddled with the project configuration? If you can reproduce, could you please attach the project here or send it directly to me if confidential?

Closing the issue as worksforme, please reopen once you have the answers. 

Thanks.
Comment 4 gholmer 2009-11-13 06:17:39 UTC
I have not seen it again.  I am thinking it may be a side effect of having replaced org-netbeans-modules-web-jsf-editor.jar during testing for 176255 (which I later reverted).