[jira] [Commented] (AXIS2-5770) ClassCastException from org.apache.axis2.saaj.SOAPElementImpl
[ https://issues.apache.org/jira/browse/AXIS2-5770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15278104#comment-15278104 ] Vishwanath Washimkar commented on AXIS2-5770: - Another update. At runtime SOAPElementImpl childEle = new SOAPElementImpl((OMElement)getOwnerDocument().createElementNS(null, localName)) throws class cast except. On runtime inspection , I find that getOwnerDocument().createElementNS(null, localName) resolved to an object of SOAPElementImpl . but when I change the source code to the following line, I get compilation time error in maven : SOAPElementImpl childEle = getOwnerDocument().createElementNS(null, localName); It seems to be some different problem. Please check. > 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
[jira] [Comment Edited] (AXIS2-5770) ClassCastException from org.apache.axis2.saaj.SOAPElementImpl
[ https://issues.apache.org/jira/browse/AXIS2-5770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15278027#comment-15278027 ] Vishwanath Washimkar edited comment on AXIS2-5770 at 5/10/16 12:41 PM: --- The problem can be reproduced by simply running the attached Java class - SOAPTest.java was (Author: vwashimkar): The problem can be reproduced by simply running the attached Java class. > 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
[jira] [Updated] (AXIS2-5770) ClassCastException from org.apache.axis2.saaj.SOAPElementImpl
[ https://issues.apache.org/jira/browse/AXIS2-5770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vishwanath Washimkar updated AXIS2-5770: Attachment: SOAPTest.java The problem can be reproduced by simply running the attached Java class. > 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
[jira] [Created] (AXIS2-5770) ClassCastException from org.apache.axis2.saaj.SOAPElementImpl
Vishwanath Washimkar created AXIS2-5770: --- Summary: 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 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