axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SDev <kry...@gmail.com>
Subject NullPointerException when invoking Axis
Date Fri, 25 Apr 2008 15:08:42 GMT

Hi,

I'm using Axis 1.2.1. I've auto generated a web service which created a wsdl
that was clattered with references to
http://schemas.xmlsoap.org/soap/encoding/. Since
http://schemas.xmlsoap.org/soap/encoding/ is not supported by WS-I I changed
in the wsdd from:

<service name="AtAlArendeLagerWS" provider="java:RPC">

to

<service name="AtAlArendeLagerWS" provider="java:RPC" style="wrapped"
use="literal">

This created the wsdl below without this namespace:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace="http://se/rsv/at/art/arendelager/AtAlArendeLagerWS"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://se/rsv/at/art/arendelager/AtAlArendeLagerWS"
xmlns:intf="http://se/rsv/at/art/arendelager/AtAlArendeLagerWS"
xmlns:tns1="http://arendelager.art.at.rsv.se"
xmlns:tns2="http://base.er.rsv.se"
xmlns:tns3="http://akthanterare.akt.at.rsv.se"
xmlns:tns4="http://arendeplan.art.at.rsv.se"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.2.1
Built on Jun 14, 2005 (09:15:57 EDT)-->
 <wsdl:types>
  <schema elementFormDefault="qualified"
targetNamespace="http://arendelager.art.at.rsv.se"
xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://akthanterare.akt.at.rsv.se"/>
   <import namespace="http://base.er.rsv.se"/>
   <import namespace="http://xml.apache.org/xml-soap"/>
   <import namespace="http://se/rsv/at/art/arendelager/AtAlArendeLagerWS"/>
   <import namespace="http://arendeplan.art.at.rsv.se"/>
   <element name="skapaArende">
    <complexType>
     <sequence>
      <element name="arende" type="tns1:AtAlArende"/>
     </sequence>
    </complexType>
   </element>
   <complexType name="AtAlArendeIntressentPK">
    <complexContent>
     <extension base="impl:AtAlArendeIntressentPKAbstract">
      <sequence/>
     </extension>
    </complexContent>
   </complexType>
   <complexType name="AtAlArendeIngivare">
    <complexContent>
     <extension base="impl:AtAlArendeIngivareAbstract">
      <sequence/>
     </extension>
    </complexContent>
   </complexType>
   <complexType name="AtAlArendeFas">
    <complexContent>
     <extension base="impl:AtAlArendeFasAbstract">
      <sequence>
       <element maxOccurs="unbounded" name="fasText" nillable="true"
type="xsd:string"/>
      </sequence>
     </extension>
    </complexContent>
   </complexType>
   <complexType name="AtAlArende">
    <complexContent>
     <extension base="impl:AtAlArendeAbstract">
      <sequence>
       <element name="arendeId" nillable="true" type="impl:AtAlArendeId"/>
      </sequence>
     </extension>
    </complexContent>
   </complexType>
   <element name="skapaArendeResponse">
    <complexType/>
   </element>
  </schema>
  <schema elementFormDefault="qualified"
targetNamespace="http://base.er.rsv.se"
xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://akthanterare.akt.at.rsv.se"/>
   <import namespace="http://xml.apache.org/xml-soap"/>
   <import namespace="http://se/rsv/at/art/arendelager/AtAlArendeLagerWS"/>
   <import namespace="http://arendelager.art.at.rsv.se"/>
   <import namespace="http://arendeplan.art.at.rsv.se"/>
   <complexType name="ErMessageHeader">
    <sequence>
     <element name="correlationID" nillable="true" type="xsd:string"/>
     <element name="deliveryMode" type="xsd:int"/>
     <element name="expiration" type="xsd:long"/>
     <element name="messageID" nillable="true" type="xsd:string"/>
     <element name="priority" type="xsd:int"/>
     <element name="redelivered" type="xsd:boolean"/>
     <element name="replyTo" nillable="true" type="xsd:string"/>
     <element name="serviceInfo" nillable="true" type="xsd:string"/>
     <element name="timeStamp" type="xsd:long"/>
    </sequence>
   </complexType>
   <complexType abstract="true" name="ErValueObject">
    <sequence>
     <element name="dirty" type="xsd:boolean"/>
     <element name="messageHeader" nillable="true"
type="tns2:ErMessageHeader"/>
     <element name="persistentObjectVersion" type="xsd:long"/>
    </sequence>
   </complexType>
  </schema>
  <schema elementFormDefault="qualified"
targetNamespace="http://akthanterare.akt.at.rsv.se"
xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://base.er.rsv.se"/>
   <import namespace="http://xml.apache.org/xml-soap"/>
   <import namespace="http://se/rsv/at/art/arendelager/AtAlArendeLagerWS"/>
   <import namespace="http://arendelager.art.at.rsv.se"/>
   <import namespace="http://arendeplan.art.at.rsv.se"/>
   <complexType abstract="true" name="AtAhAktIdAbstract">
    <complexContent>
     <extension base="tns2:ErValueObject">
      <sequence>
       <element name="id" nillable="true" type="xsd:string"/>
      </sequence>
     </extension>
    </complexContent>
   </complexType>
   <complexType name="AtAhAktId">
    <complexContent>
     <extension base="tns3:AtAhAktIdAbstract">
      <sequence/>
     </extension>
    </complexContent>
   </complexType>
  </schema>
  <schema elementFormDefault="qualified"
targetNamespace="http://se/rsv/at/art/arendelager/AtAlArendeLagerWS"
xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://akthanterare.akt.at.rsv.se"/>
   <import namespace="http://base.er.rsv.se"/>
   <import namespace="http://xml.apache.org/xml-soap"/>
   <import namespace="http://arendelager.art.at.rsv.se"/>
   <import namespace="http://arendeplan.art.at.rsv.se"/>
   <complexType abstract="true" name="AtAlArendeIntressentPKAbstract">
    <complexContent>
     <extension base="tns2:ErValueObject">
      <sequence>
       <element name="arendeid" nillable="true" type="xsd:string"/>
       <element name="intressent" nillable="true" type="xsd:string"/>
       <element name="varde" nillable="true" type="xsd:string"/>
      </sequence>
     </extension>
    </complexContent>
   </complexType>
   <complexType abstract="true" name="AtAlArendeIntressentAbstract">
    <complexContent>
     <extension base="tns2:ErValueObject">
      <sequence>
       <element name="primaryKey" nillable="true"
type="tns1:AtAlArendeIntressentPK"/>
       <element name="typ" nillable="true" type="xsd:string"/>
      </sequence>
     </extension>
    </complexContent>
   </complexType>
   <complexType name="AtAlArendeIntressent">
    <complexContent>
     <extension base="impl:AtAlArendeIntressentAbstract">
      <sequence/>
     </extension>
    </complexContent>
   </complexType>
   <complexType abstract="true" name="AtAlArendeIngivareAbstract">
    <complexContent>
     <extension base="impl:AtAlArendeIntressent">
      <sequence/>
     </extension>
    </complexContent>
   </complexType>
   <complexType name="ArrayOf_xsd_anyType">
    <sequence>
     <element maxOccurs="unbounded" minOccurs="0" name="item"
type="xsd:anyType"/>
    </sequence>
   </complexType>
   <complexType abstract="true" name="AtAlArendeFasAbstract">
    <complexContent>
     <extension base="tns2:ErValueObject">
      <sequence>
       <element name="fas" type="xsd:int"/>
      </sequence>
     </extension>
    </complexContent>
   </complexType>
   <complexType abstract="true" name="AtAlArendeAbstract">
    <complexContent>
     <extension base="tns2:ErValueObject">
      <sequence>
       <element name="aktId" nillable="true" type="tns3:AtAhAktId"/>
       <element name="ankomstTid" nillable="true" type="xsd:dateTime"/>
       <element name="ansvarigEnhet" nillable="true" type="xsd:string"/>
       <element name="arPersonligt" type="xsd:boolean"/>
       <element name="arendeIngivare" nillable="true"
type="tns1:AtAlArendeIngivare"/>
       <element name="arendeKopplingar" nillable="true"
type="impl:ArrayOf_xsd_anyType"/>
       <element name="arendeObjekt" nillable="true"
type="impl:ArrayOf_xsd_anyType"/>
       <element name="arendeTypsId" nillable="true"
type="tns4:AtApArendeTypsId"/>
       <element name="arendeTypsNamn" nillable="true" type="xsd:string"/>
       <element name="avslutadTid" nillable="true" type="xsd:dateTime"/>
       <element name="diarieNummer" nillable="true" type="xsd:string"/>
       <element name="fas" nillable="true" type="tns1:AtAlArendeFas"/>
       <element name="handLaggare" nillable="true" type="xsd:string"/>
       <element name="identifikatorer" nillable="true"
type="impl:ArrayOf_xsd_anyType"/>
       <element name="primaryKey" nillable="true" type="xsd:string"/>
       <element name="skapadTid" nillable="true" type="xsd:dateTime"/>
       <element name="startTid" nillable="true" type="xsd:dateTime"/>
       <element name="stoppTid" nillable="true" type="xsd:dateTime"/>
      </sequence>
     </extension>
    </complexContent>
   </complexType>
   <complexType abstract="true" name="AtAlArendeIdAbstract">
    <complexContent>
     <extension base="tns2:ErValueObject">
      <sequence>
       <element name="arendeId" nillable="true" type="xsd:string"/>
      </sequence>
     </extension>
    </complexContent>
   </complexType>
   <complexType name="AtAlArendeId">
    <complexContent>
     <extension base="impl:AtAlArendeIdAbstract">
      <sequence/>
     </extension>
    </complexContent>
   </complexType>
  </schema>
  <schema elementFormDefault="qualified"
targetNamespace="http://xml.apache.org/xml-soap"
xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://akthanterare.akt.at.rsv.se"/>
   <import namespace="http://base.er.rsv.se"/>
   <import namespace="http://se/rsv/at/art/arendelager/AtAlArendeLagerWS"/>
   <import namespace="http://arendelager.art.at.rsv.se"/>
   <import namespace="http://arendeplan.art.at.rsv.se"/>
   <complexType name="Vector">
    <sequence>
     <element maxOccurs="unbounded" minOccurs="0" name="item"
type="xsd:anyType"/>
    </sequence>
   </complexType>
  </schema>
  <schema elementFormDefault="qualified"
targetNamespace="http://arendeplan.art.at.rsv.se"
xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://akthanterare.akt.at.rsv.se"/>
   <import namespace="http://base.er.rsv.se"/>
   <import namespace="http://xml.apache.org/xml-soap"/>
   <import namespace="http://se/rsv/at/art/arendelager/AtAlArendeLagerWS"/>
   <import namespace="http://arendelager.art.at.rsv.se"/>
   <complexType abstract="true" name="AtApArendeTypsIdAbstract">
    <complexContent>
     <extension base="tns2:ErValueObject">
      <sequence>
       <element name="id" nillable="true" type="xsd:string"/>
      </sequence>
     </extension>
    </complexContent>
   </complexType>
   <complexType name="AtApArendeTypsId">
    <complexContent>
     <extension base="tns4:AtApArendeTypsIdAbstract">
      <sequence/>
     </extension>
    </complexContent>
   </complexType>
  </schema>
 </wsdl:types>

   <wsdl:message name="skapaArendeRequest">

      <wsdl:part element="tns1:skapaArende" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="skapaArendeResponse">

      <wsdl:part element="tns1:skapaArendeResponse" name="parameters"/>

   </wsdl:message>

   <wsdl:portType name="AtAlArendeLagerWSWS">

      <wsdl:operation name="skapaArende">

         <wsdl:input message="impl:skapaArendeRequest"
name="skapaArendeRequest"/>

         <wsdl:output message="impl:skapaArendeResponse"
name="skapaArendeResponse"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="AtAlArendeLagerWSSoapBinding"
type="impl:AtAlArendeLagerWSWS">

      <wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="skapaArende">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="skapaArendeRequest">

            <wsdlsoap:body use="literal"/>

         </wsdl:input>

         <wsdl:output name="skapaArendeResponse">

            <wsdlsoap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="AtAlArendeLagerWSWSService">

      <wsdl:port binding="impl:AtAlArendeLagerWSSoapBinding"
name="AtAlArendeLagerWS">

         <wsdlsoap:address
location="http://localhost:27100/at/AtAlArendeLagerWS/services/AtAlArendeLagerWS"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>




However, when I test this from soapUI I get NullPointerException. The log
gives me the following stacktrace:

Caused by: java.lang.NullPointerException
	at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:314)
	at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
	at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
	at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
	at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
	at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
	at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148)
	at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)


What does it mean? I guess something is not possible to deserialize but what
and why not? Does anyone have any ideas? 


Best wishes
Kerstin
-- 
View this message in context: http://www.nabble.com/NullPointerException-when-invoking-Axis-tp16895871p16895871.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message