[ https://issues.apache.org/jira/browse/AXIS2-5770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15278045#comment-15278045 ]
Vishwanath Washimkar commented on AXIS2-5770: --------------------------------------------- On debugging I find that in SOAPElementImpl.java in axis2-saaj-1.7.2.jar , removing the type cast in the first line of the addChildElement should solve the problem . I am building the axis2 sources. Will confirm when i build a new jar . Just thought of posting it. Looking forward for a quick solution here. public SOAPElement addChildElement(String localName) throws SOAPException { SOAPElementImpl childEle = new SOAPElementImpl((OMElement)this.getOwnerDocument().createElementNS((String)null, localName)); ((Element)childEle.target).setUserData("saaj.node", childEle, (UserDataHandler)null); ((Element)this.target).appendChild(childEle.target); ((Element)childEle.target).getParentNode().setUserData("saaj.node", this, (UserDataHandler)null); childEle.setParentElement(this); return childEle; } > ClassCastException from org.apache.axis2.saaj.SOAPElementImpl > ------------------------------------------------------------- > > Key: AXIS2-5770 > URL: https://issues.apache.org/jira/browse/AXIS2-5770 > Project: Axis2 > Issue Type: Bug > Components: saaj > Affects Versions: 1.7.2 > Environment: Windows 7 > Reporter: Vishwanath Washimkar > Labels: saaj > Attachments: SOAPTest.java > > > We have have which worked fine with Axis 1.6.2 , Axis 1.6.2 . The moment I > try to upgrade to the Axis 1.7.1 or to Axis 1.7.2 the following exception is > thrown from SOAPElementImpl > java.lang.ClassCastException: org.apache.axis2.saaj.SOAPElementImpl cannot be > cast to org.apache.axiom.om.OMElement > at > org.apache.axis2.saaj.SOAPElementImpl.addChildElement(SOAPElementImpl.java:169) > at vish.SOAPTest.addCallNode(SOAPTest.java:35) > at vish.SOAPTest.main(SOAPTest.java:50) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org For additional commands, e-mail: java-dev-h...@axis.apache.org