TransformerImpl.getOutputHandler() has thrown a ClassCastException

java.lang.ClassCastException
Javadoc
Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance. For example, the following code generates a ClassCastException:
    Object x = new Integer(0);
    System.out.println((String)x);
@author unascribed @since JDK1.0
at org.apache.xerces.parsers.DOMParser.<init>
(source)
at org.apache.xerces.parsers.DOMParser.<init>
(source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>
(source)
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder
(source)
at com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.createDocument
(source)
at com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.<init>
(source)
at com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler
(source)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler
(source)
7 frames hidden

Typical Exception Messages

  1. org.apache.xerces.parsers.XML11Configuration
  2. org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
  3. org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
  4. org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration

Origin

SAX2DOM.<init>() has thrown a ClassCastException

java.lang.ClassCastException
5 frames hidden
com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.<init>
5Web pages

Specific cases

External results for this pattern (4)

  1. 804548via Oracle Community1 month ago
    org.apache.xerces.parsers.XML11Configuration
    Show stack trace
  2. Unknown authorvia com.br1 month ago
    org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
    Show stack trace
  3. André Hiroshi da Silvavia Google Groups2 months ago
    org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
    Show stack trace
  4. Julien CARSIQUEvia Google Groups1 year ago
    org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
    Show stack trace