Webservice: NullPointer at newEmailMailing

Use this forum for all questions related to the source code of OpenEMM

Moderator: moderator

shausch
Posts: 5
Joined: Tue Feb 09, 2010 10:10 am

Webservice: NullPointer at newEmailMailing

Post by shausch »

I get always a NullPointerException when I'm creating a new eMail Mailing via the webservice.

I'm using the Agnitas WS-client classes.
The Exception is thrown at EmmWebServiceBindingStub:

Code: Select all

java.lang.NullPointerException
        at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
        at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
        at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
        at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at org.agnitas.webservice.EmmWebServiceBindingStub.newEmailMailing(EmmWebServiceBindingStub.java:393)
Does anybody has experience with this?

Thanks in advance.
shausch
Posts: 5
Joined: Tue Feb 09, 2010 10:10 am

Post by shausch »

I forgot to set the targetID to "0".
aheman
Posts: 7
Joined: Thu Mar 11, 2010 9:24 pm

Post by aheman »

Also in php I had to pass the targetID through soap as an array with just the value 0. Passing 0 alone was throwing this error (I imagine because java interpreted it as a value instead of an array of values).
Post Reply