java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.ElementNSImpl cannot be cast to org.w3c.dom.Document

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 843830, 1 year ago
com.sun.org.apache.xerces.internal.dom.ElementNSImpl cannot be cast to org.w3c.dom.Document
via Oracle Community by 843830, 1 year ago
com.sun.xml.messaging.saaj.soap.impl.ElementImpl cannot be cast to org.w3c.dom.Document
java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.ElementNSImpl cannot be cast to org.w3c.dom.Document
at com.sun.jbi.engine.scriptse.process.ScriptseUtil.wrapTransformedPayload(ScriptseUtil.java:272)
at com.sun.jbi.engine.scriptse.process.ScriptseUtil.transform(ScriptseUtil.java:145)
at com.sun.jbi.engine.scriptse.process.ScriptseInOutProvider.handleRequest(ScriptseInOutProvider.java:103)
at com.sun.jbi.engine.scriptse.process.ScriptseInOutProvider.processIn(ScriptseInOutProvider.java:48)
at com.sun.jbi.crl.mep.proc.impl.AbstractInOutProvider.process(AbstractInOutProvider.java:54)
at com.sun.jbi.crl.mep.impl.DefaultMessageListener.onMessage(DefaultMessageListener.java:81)
at com.sun.jbi.crl.mep.impl.SingleThreadManager.invoke(SingleThreadManager.java:67)
at com.sun.jbi.crl.mep.impl.DefaultAcceptPoller.run(DefaultAcceptPoller.java:97)
at java.lang.Thread.run(Thread.java:619)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.