javax.xml.ws.WebServiceException: javax.xml.soap.SOAPException: java.lang.RuntimeException: javax.xml.soap.SOAPException: Cannot add element of type 'env:Header' to SOAP Envelope

Oracle Community | Shishir Srivastava | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Error invoking service in BPEL

    Oracle Community | 9 months ago | Shishir Srivastava
    javax.xml.ws.WebServiceException: javax.xml.soap.SOAPException: java.lang.RuntimeException: javax.xml.soap.SOAPException: Cannot add element of type 'env:Header' to SOAP Envelope

    Root Cause Analysis

    1. javax.xml.soap.SOAPException

      Cannot add element of type 'env:Header' to SOAP Envelope

      at oracle.j2ee.ws.saaj.soap.EnvelopeImpl.createChildElement()
    2. oracle.j2ee.ws
      SOAPDoc.createNodeFromType
      1. oracle.j2ee.ws.saaj.soap.EnvelopeImpl.createChildElement(EnvelopeImpl.java:324)
      2. oracle.j2ee.ws.saaj.soap.SOAPDoc.createNodeFromType(SOAPDoc.java:277)
      3. oracle.j2ee.ws.saaj.soap.SOAPDoc.createNodeFromType(SOAPDoc.java:246)
      3 frames
    3. oracle.xml.parser
      XMLDocument.createElementNS
      1. oracle.xml.parser.v2.XMLDocument.createElement(XMLDocument.java:3087)
      2. oracle.xml.parser.v2.XMLDocument.createElementNS(XMLDocument.java:3037)
      2 frames
    4. oracle.j2ee.ws
      OracleDispatchImpl.invoke
      1. oracle.j2ee.ws.saaj.soap.SOAPDoc.createElementNSWithParent(SOAPDoc.java:930)
      2. oracle.j2ee.ws.saaj.soap.ElementImpl.createAndAppendChildElement(ElementImpl.java:941)
      3. oracle.j2ee.ws.saaj.soap.StaxHandler.addElement(StaxHandler.java:360)
      4. oracle.j2ee.ws.saaj.soap.StaxHandler.startElement(StaxHandler.java:289)
      5. oracle.j2ee.ws.saaj.soap.StaxHandler.staxParse(StaxHandler.java:130)
      6. oracle.j2ee.ws.saaj.soap.StaxHandler.staxParse(StaxHandler.java:105)
      7. oracle.j2ee.ws.saaj.soap.StaxHandler.staxParseAllChildren(StaxHandler.java:226)
      8. oracle.j2ee.ws.saaj.soap.ElementImpl.realizeCompletely(ElementImpl.java:1612)
      9. oracle.j2ee.ws.saaj.soap.ElementImpl.getNextSibling(ElementImpl.java:1653)
      10. oracle.j2ee.ws.saaj.soap.EnvelopeImpl.getExistingBody(EnvelopeImpl.java:235)
      11. oracle.j2ee.ws.saaj.soap.EnvelopeImpl.getBody(EnvelopeImpl.java:226)
      12. oracle.j2ee.ws.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:1846)
      13. oracle.j2ee.ws.common.async.MessageSender.processResponse(MessageSender.java:71)
      14. oracle.j2ee.ws.common.async.MessageSender.call(MessageSender.java:55)
      15. oracle.j2ee.ws.common.async.Transmitter.transmitSync(Transmitter.java:105)
      16. oracle.j2ee.ws.common.async.Transmitter.transmit(Transmitter.java:60)
      17. oracle.j2ee.ws.common.async.RequestorImpl.transmit(RequestorImpl.java:259)
      18. oracle.j2ee.ws.common.async.RequestorImpl.invoke(RequestorImpl.java:93)
      19. oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:1383)
      20. oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:237)
      21. oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:108)
      21 frames
    5. oracle.integration.platform
      MeshImpl.request
      1. oracle.integration.platform.blocks.soap.AbstractWebServiceBindingComponent.dispatchRequest(AbstractWebServiceBindingComponent.java:645)
      2. oracle.integration.platform.blocks.soap.WebServiceExternalBindingComponent.processOutboundMessage(WebServiceExternalBindingComponent.java:370)
      3. oracle.integration.platform.blocks.soap.WebServiceExternalBindingComponent.sendSOAPMessage(WebServiceExternalBindingComponent.java:1565)
      4. oracle.integration.platform.blocks.soap.WebServiceExternalBindingComponent.request(WebServiceExternalBindingComponent.java:1020)
      5. oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:151)
      6. oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:215)
      7. oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:283)
      7 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor1615.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
      3. java.lang.reflect.Method.invoke(Method.java:507)
      3 frames
    7. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      3 frames
    8. oracle.integration.platform
      PhaseEventAspect.invoke
      1. oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:69)
      1 frame
    9. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      2 frames
    10. com.sun.proxy
      $Proxy392.request
      1. com.sun.proxy.$Proxy392.request(Unknown Source)
      1 frame
    11. oracle.fabric
      CubeServiceEngine.requestToMesh
      1. oracle.fabric.CubeServiceEngine.requestToMesh(CubeServiceEngine.java:1143)
      1 frame
    12. com.collaxa.cube
      BaseBPELActivityWMP$1.call
      1. com.collaxa.cube.ws.WSInvocationManager.invoke0(WSInvocationManager.java:262)
      2. com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:332)
      3. com.collaxa.cube.engine.ext.common.InvokeHandler.__invoke(InvokeHandler.java:1460)
      4. com.collaxa.cube.engine.ext.common.InvokeHandler.handleNormalWSDLInvoke(InvokeHandler.java:806)
      5. com.collaxa.cube.engine.ext.common.InvokeHandler.handleNormalInvoke(InvokeHandler.java:497)
      6. com.collaxa.cube.engine.ext.common.InvokeHandler.handle(InvokeHandler.java:158)
      7. com.collaxa.cube.engine.ext.bpel.common.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:78)
      8. com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP$1.call(BaseBPELActivityWMP.java:197)
      9. com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP$1.call(BaseBPELActivityWMP.java:195)
      9 frames
    13. com.collaxa.bpel
      SWSComponentProcessActivityWrapper.execute
      1. com.collaxa.bpel.sws.SWSComponentProcessActivityWrapper$1.call(SWSComponentProcessActivityWrapper.java:74)
      2. com.collaxa.bpel.sws.SWSCallableActivityWrapper.execute(SWSCallableActivityWrapper.java:89)
      3. com.collaxa.bpel.sws.SWSComponentProcessActivityWrapper.execute(SWSComponentProcessActivityWrapper.java:82)
      3 frames
    14. com.collaxa.cube
      BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.__WL_invoke
      1. com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform(BaseBPELActivityWMP.java:205)
      2. com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:2909)
      3. com.collaxa.cube.engine.CubeEngine._handleWorkItem(CubeEngine.java:1276)
      4. com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1165)
      5. com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:92)
      6. com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:300)
      7. com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:379)
      8. com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4935)
      9. com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4859)
      10. com.collaxa.cube.engine.CubeEngine._createAndInvoke(CubeEngine.java:763)
      11. com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:600)
      12. com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:732)
      13. com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:467)
      14. com.collaxa.cube.engine.ejb.impl.bpel.BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.__WL_invoke(Unknown Source)
      14 frames
    15. weblogic.ejb.container
      SessionLocalMethodInvoker.invoke
      1. weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:33)
      1 frame
    16. com.collaxa.cube
      WMExecutor$W.run
      1. com.collaxa.cube.engine.ejb.impl.bpel.BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.handleInvoke(Unknown Source)
      2. com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:43)
      3. com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:154)
      4. com.collaxa.cube.engine.dispatch.BaseDispatchTask.process(BaseDispatchTask.java:150)
      5. com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:90)
      6. com.collaxa.cube.engine.dispatch.WMExecutor$W.run(WMExecutor.java:236)
      6 frames
    17. weblogic.work.j2ee
      J2EEWorkManager$WorkWithListener.run
      1. weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:209)
      1 frame
    18. weblogic.invocation
      ComponentInvocationContextManager.runAs
      1. weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)
      2. weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)
      2 frames
    19. weblogic.work
      ExecuteThread.run
      1. weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)
      2. weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
      3. weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:640)
      4. weblogic.work.ExecuteThread.execute(ExecuteThread.java:406)
      5. weblogic.work.ExecuteThread.run(ExecuteThread.java:346)
      5 frames