You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Andreas Veithen (Jira)" <ji...@apache.org> on 2022/03/12 23:02:00 UTC

[jira] [Resolved] (AXIOM-512) OMElementImpl is not allowed as a child of org.apache.axiom.soap.impl.llom.soap11.SOAP11HeaderImpl with axis2-kernel1.8.0

     [ https://issues.apache.org/jira/browse/AXIOM-512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved AXIOM-512.
-----------------------------------
    Fix Version/s: 1.3.1
       Resolution: Fixed

Fixed by https://github.com/apache/ws-axiom/commit/2d9b87f40d3851fbf0f78fe4949190f15a7977ec.

> OMElementImpl is not allowed as a child of org.apache.axiom.soap.impl.llom.soap11.SOAP11HeaderImpl with axis2-kernel1.8.0
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIOM-512
>                 URL: https://issues.apache.org/jira/browse/AXIOM-512
>             Project: Axiom
>          Issue Type: Bug
>          Components: OM Mixins
>    Affects Versions: 1.3.0
>            Reporter: Sumit Kessar
>            Assignee: Andreas Veithen
>            Priority: Major
>             Fix For: 1.3.1
>
>
> 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: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org