Sumit Kessar created AXIS2-6026:
-----------------------------------

             Summary: OMElementImpl is not allowed as a child of 
org.apache.axiom.soap.impl.llom.soap11.SOAP11HeaderImpl with axis2-kernel1.8.0
                 Key: AXIS2-6026
                 URL: https://issues.apache.org/jira/browse/AXIS2-6026
             Project: Axis2
          Issue Type: Bug
          Components: kernel
    Affects Versions: 1.8.0
            Reporter: Sumit Kessar


We were using axis2 1.7.9 and axiom 1.2.22 in our application along with 
commons-httpclient 3.1. We tried removing commons-httpclient 3.1 from our 
application and since commons-httpclient is required by axis2 1.7.9 we had to 
upgrade axis2 to its latest version 1.8.0 and in process of upgrading axis2 to 
1.8.0 we also upgraded axiom to 1.3.0 but when we are running our application 
we get below error.

 
{code:java}
org.apache.axiom.soap.SOAPProcessingException: 
org.apache.axiom.om.impl.llom.OMElementImpl is not allowed as a child of 
org.apache.axiom.soap.impl.llom.soap11.SOAP11HeaderImpl
        at 
org.apache.axiom.soap.impl.mixin.AxiomSOAPElementSupport.ajc$interMethod$org_apache_axiom_soap_impl_mixin_AxiomSOAPElementSupport$org_apache_axiom_soap_impl_intf_AxiomSOAPElement$checkChild(AxiomSOAPElementSupport.aj:35)
        at 
org.apache.axiom.soap.impl.llom.SOAPElement.checkChild(SOAPElement.java:1)
        at 
org.apache.axiom.om.impl.mixin.AxiomContainerSupport.ajc$interMethod$org_apache_axiom_om_impl_mixin_AxiomContainerSupport$org_apache_axiom_om_impl_intf_AxiomContainer$prepareNewChild(AxiomContainerSupport.aj:160)
        at 
org.apache.axiom.om.impl.llom.OMElementImpl.prepareNewChild(OMElementImpl.java:1)
        at 
org.apache.axiom.om.impl.mixin.AxiomContainerSupport.ajc$interMethodDispatch1$org_apache_axiom_om_impl_mixin_AxiomContainerSupport$org_apache_axiom_om_impl_intf_AxiomContainer$prepareNewChild(AxiomContainerSupport.aj)
        at 
org.apache.axiom.om.impl.mixin.AxiomContainerSupport.ajc$interMethod$org_apache_axiom_om_impl_mixin_AxiomContainerSupport$org_apache_axiom_om_impl_intf_AxiomContainer$addChild(AxiomContainerSupport.aj:166)
        at 
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:1)
        at 
org.apache.axis2.client.ServiceClient.addHeadersToEnvelope(ServiceClient.java:673)
 {code}
I am not sure why above exception is thrown and how to fix it.

 

As per our understanding , may be it helps -

we changed {color:#4c9aff}_axiom-1.2.31 to axiom-1.3.0_{color} which is latest 
but there is code issue in 
{color:#4c9aff}org.apache.axiom.om.impl.llom.OMElementImpl as addChild method 
is missing.{color}

{color:#172b4d}Code 1.2.31 - {color:#4c9aff}addchild{color} method - 
[https://jar-download.com/artifacts/org.apache.ws.commons.axiom/axiom-impl/1.2.5/source-code/org/apache/axiom/om/impl/llom/OMElementImpl.java]
 {color}

{color:#172b4d}code 1.3.0 - {color:#4c9aff}addchild{color} method- 
[https://jar-download.com/artifacts/org.apache.ws.commons.axiom/axiom-impl/1.3.0/source-code/org/apache/axiom/om/impl/llom/OMElementImpl.java]
 {color}

 

{color:#172b4d}while the consumer of this method is same - 
_{color:#4c9aff}addHeadersToEnvelope{color}_ in both the version{color}

[https://jar-download.com/artifacts/org.apache.axis2/axis2-kernel/1.8.0/source-code/org/apache/axis2/client/ServiceClient.java]
  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to