java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • The following exception is thrown then running Eclipse on the [http://mustang.dev.java.net/ Mustang] snapshot release. Since the Mustang is not released yet, I put this issue with low priority. However, it is likely that the issue will be reproducable on the release since it looks like that the Mustang is close to be released. Here is the stack trace (I've omitted part of the trace): {code} java.lang.ClassCastException: com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at org.springframework.ide.eclipse.core.io.xml.LineNumberPreservingDOMParser.<init>(LineNumberPreservingDOMParser.java:42) at org.springframework.ide.eclipse.beans.core.internal.parser.EventBeanDefinitionReader.loadBeanDefinitions(EventBeanDefinitionReader.java:110) at org.springframework.ide.eclipse.beans.core.internal.parser.EventBeanDefinitionRegistry.loadBeanDefinitions(EventBeanDefinitionRegistry.java:51) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.readConfig(BeansConfig.java:285) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.getBeans(BeansConfig.java:164) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.toString(BeansConfig.java:206) at org.springframework.ide.eclipse.beans.ui.model.ConfigNode.toString(ConfigNode.java:165) at java.lang.String.valueOf(String.java:2665) <<<skipped>>> {code}
    via by Imported,
  • The following exception is thrown then running Eclipse on the [http://mustang.dev.java.net/ Mustang] snapshot release. Since the Mustang is not released yet, I put this issue with low priority. However, it is likely that the issue will be reproducable on the release since it looks like that the Mustang is close to be released. Here is the stack trace (I've omitted part of the trace): {code} java.lang.ClassCastException: com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at org.springframework.ide.eclipse.core.io.xml.LineNumberPreservingDOMParser.<init>(LineNumberPreservingDOMParser.java:42) at org.springframework.ide.eclipse.beans.core.internal.parser.EventBeanDefinitionReader.loadBeanDefinitions(EventBeanDefinitionReader.java:110) at org.springframework.ide.eclipse.beans.core.internal.parser.EventBeanDefinitionRegistry.loadBeanDefinitions(EventBeanDefinitionRegistry.java:51) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.readConfig(BeansConfig.java:285) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.getBeans(BeansConfig.java:164) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.toString(BeansConfig.java:206) at org.springframework.ide.eclipse.beans.ui.model.ConfigNode.toString(ConfigNode.java:165) at java.lang.String.valueOf(String.java:2665) <<<skipped>>> {code}
    via by Imported,
  • Explicitly specify a DOM parser for mule
    via Stack Overflow by joesatch
    ,
  • WSAD problems with xerces/DOM
    via by brecki,
  • Re: Xerces / JPA and Geronimo
    via by Christian Svensson,
    • java.lang.ClassCastException: com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at org.springframework.ide.eclipse.core.io.xml.LineNumberPreservingDOMParser.<init>(LineNumberPreservingDOMParser.java:42) at org.springframework.ide.eclipse.beans.core.internal.parser.EventBeanDefinitionReader.loadBeanDefinitions(EventBeanDefinitionReader.java:110) at org.springframework.ide.eclipse.beans.core.internal.parser.EventBeanDefinitionRegistry.loadBeanDefinitions(EventBeanDefinitionRegistry.java:51) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.readConfig(BeansConfig.java:285) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.getBeans(BeansConfig.java:164) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.toString(BeansConfig.java:206) at org.springframework.ide.eclipse.beans.ui.model.ConfigNode.toString(ConfigNode.java:165) at java.lang.String.valueOf(String.java:2665)

    Users with the same issue

    Unknown visitor1 times, last one,