You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Coyne, Jimmy" <Ji...@fmr.com> on 2007/02/09 13:34:52 UTC

Axis 1.4 + Castor + SOAPDocumentImpl.createElement failure

Hi all, 
I've created a jax-rpc handler to marshal a Castor object to xml node. I've
tested this on Websphere 6.0 + 6.1 and it works correctly.
When I tried using Tomcat and Axis it fails and throws an null pointer
exception. During the marshalling process a SOAPHeaderElement node  is
passed to castor and castor uses Axis own SAAJ library  to create the DOM
object . But the method org.w3c.dom.Element createElement(String tagName)
within org.apache.axis.message.SOAPDocumentImpl  fails.

The first pass of the following line of code works correctly but the all
other calls will fail, as the soapPart is null.
 
 SOAPEnvelope soapenv =
                (org.apache.axis.message.SOAPEnvelope)
soapPart.getEnvelope();


Any body have any ideas ?
Thanks
Jimmy