com.sun.xml.wss.XWSSecurityException: java.lang.ClassCastException: org.apache.xerces.dom.ElementNSImpl incompatible with javax.xml.soap.SOAPElement

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 hivmr.com by Unknown author, 1 year ago
java.lang.ClassCastException: org.apache.xerces.dom.ElementNSImpl incompatible with javax.xml.soap.SOAPElement
via Oracle Community by 843833, 1 year ago
java.lang.ClassCastException: org.apache.xerces.dom.ElementNSImpl incompatible with javax.xml.soap.SOAPElement
via hivmr.com by Unknown author, 1 year ago
java.lang.ClassCastException: org.apache.xerces.dom.ElementNSImpl incompatible with javax.xml.soap.SOAPElement
via hivmr.com by Unknown author, 1 year ago
java.lang.ClassCastException: org.apache.xerces.dom.ElementNSImpl incompatible with javax.xml.soap.SOAPElement
via hivmr.com by Unknown author, 1 year ago
java.lang.ClassCastException: org.apache.xerces.dom.ElementNSImpl incompatible with javax.xml.soap.SOAPElement
java.lang.ClassCastException: org.apache.xerces.dom.ElementNSImpl incompatible with javax.xml.soap.SOAPElement
at com.sun.xml.wss.impl.SecurableSoapMessage.findWsseSecurityHeaderBlock(SecurableSoapMessage.java:183)
at com.sun.xml.wss.impl.SecurableSoapMessage.findOrCreateSecurityHeader(SecurableSoapMessage.java:225)
at com.sun.xml.wss.impl.filter.TimestampFilter.process(TimestampFilter.java:120)
at com.sun.xml.wss.impl.HarnessUtil.processWSSPolicy(HarnessUtil.java:68)
at com.sun.xml.wss.impl.HarnessUtil.processDeep(HarnessUtil.java:218)
at com.sun.xml.wss.impl.SecurityAnnotator.processMessagePolicy(SecurityAnnotator.java:143)
at com.sun.xml.wss.impl.SecurityAnnotator.secureMessage(SecurityAnnotator.java:118)
at com.soap.client.SOAPTestClient.createSoapMessage(SOAPTestClient.java:219)
at com.soap.client.SOAPTestClient.main(SOAPTestClient.java:84)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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