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 Seth Ladd <se...@brivo.net> on 2002/05/24 20:20:45 UTC

NPE in RPCElement

Hello,

I am using Axis Beta 2 for both client and service.  I am running into
an NullPointerException in RPCElement.java when I place my call.  I'm
hoping someone can see the error of my ways.  Thanks very much in
advance!

Seth

stacktrace:

java.lang.NullPointerException
        at
org.apache.axis.message.RPCElement.&lt;init>(RPCElement.java:106)
        at
org.apache.axis.message.BodyBuilder.onStartChild(BodyBuilder.java:137)
        at
org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:831)
        at com.caucho.xml.XmlParser.addElement(XmlParser.java:2335)
        at com.caucho.xml.XmlParser.parseElement(XmlParser.java:609)
        at com.caucho.xml.XmlParser.parseNode(XmlParser.java(Compiled
Code))
        at com.caucho.xml.XmlParser.parseInt(XmlParser.java:242)
        at com.caucho.xml.AbstractParser.parse(AbstractParser.java:554)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:257)
        at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:202)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:428)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:306)


Client's request:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
 <SOAP-ENV:Body>
  <ns1:post xmlns:ns1="http://service.brivo.com/2002/service#">
   <arg0 href="#id0"/>
  </ns1:post>
  <multiRef id="id0" SOAP-ENC:root="0"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:Request"
xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/:encodingStyle"
xmlns:ns3="http://service.brivo.com/2002/service#">
   <version xsi:nil="true"/>
   <uuid xsi:type="xsd:string">3232342f2f3</uuid>
   <uri xsi:type="xsd:string">/service/queue/12345/outgoing</uri>
   <state xsi:type="xsd:int">0</state>
   <operation xsi:type="xsd:int">0</operation>
   <payload xsi:nil="true"/>
   <VERSION_0_9 xsi:type="xsd:string">0.9</VERSION_0_9>
   <GET xsi:type="xsd:int">0</GET>
   <PUT xsi:type="xsd:int">1</PUT>
   <DELETE xsi:type="xsd:int">2</DELETE>
   <NEW xsi:type="xsd:int">100</NEW>
   <WAITING_DELIVERY xsi:type="xsd:int">101</WAITING_DELIVERY>
   <WAITING_REPLY xsi:type="xsd:int">102</WAITING_REPLY>
   <REPLIED xsi:type="xsd:int">103</REPLIED>
  </multiRef>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>