axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kedar, Shahar" <Shahar.Ke...@softwareag.com>
Subject [Axis2] Exception when processing WSDL
Date Wed, 13 Sep 2006 12:42:27 GMT
Hi All,

 

I'm getting the following exception when Axis2 tries to process my WSDL file:

 

org.apache.axis2.deployment.DeploymentException: null; nested exception is: 

      java.lang.NullPointerException; nested exception is: 

      org.apache.axis2.AxisFault: null; nested exception is: 

      java.lang.NullPointerException; nested exception is: 

      org.apache.axis2.deployment.DeploymentException: null; nested exception is: 

      java.lang.NullPointerException; nested exception is: 

      org.apache.axis2.AxisFault: null; nested exception is: 

      java.lang.NullPointerException

      at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:256)

      at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:513)

      at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:200)

      at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:208)

      at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:155)

      at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:200)

      at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:61)

      at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:68)

      at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:76)

      at java.util.TimerThread.mainLoop(Timer.java:432)

      at java.util.TimerThread.run(Timer.java:382)

Caused by: org.apache.axis2.deployment.DeploymentException: null; nested exception is: 

      java.lang.NullPointerException; nested exception is: 

      org.apache.axis2.AxisFault: null; nested exception is: 

      java.lang.NullPointerException

      at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFile(ArchiveReader.java:193)

      at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:242)

      ... 10 more

Caused by: org.apache.axis2.AxisFault: null; nested exception is: 

      java.lang.NullPointerException

      at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:236)

      at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFile(ArchiveReader.java:191)

      ... 11 more

Caused by: java.lang.NullPointerException

      at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.generateWrapperSchema(WSDL11ToAxisServiceBuilder.java:937)

      at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:195)

      ... 12 more

 

The WSDL xml is:

 

<wsdl:definitions targetNamespace="http://tempuri.org/">

-

            <wsdl:types>

-

            <xsd:schema targetNamespace="http://tempuri.org/">

-

            <xsd:element name="ArrayOfItemSummary">

-

            <xsd:complexType>

-

            <xsd:sequence>

<xsd:element maxOccurs="unbounded" minOccurs="0" name="Items" type="ItemSummary"/>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

-

            <xsd:element name="ItemSummary">

-

            <xsd:complexType>

-

            <xsd:sequence>

<xsd:element name="Number" type="xsd:string"/>

<xsd:element name="Name" type="xsd:string"/>

<xsd:element name="Description" type="xsd:string"/>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:schema>

</wsdl:types>

-

            <wsdl:message name="GetItemsByTypeSoapOut">

<wsdl:part element="ArrayOfItemSummary" name="Items"/>

</wsdl:message>

-

            <wsdl:message name="GetItemsByTypeSoapIn">

<wsdl:part name="ItemType" type="xsd:string"/>

</wsdl:message>

-

            <wsdl:portType name="SabraFood_ItemsGroupPortType">

-

            <wsdl:operation name="GetItemsByType">

<wsdl:documentation>Returns the list of items of a certain type.</wsdl:documentation>

<wsdl:input message="GetItemsByTypeSoapIn"/>

<wsdl:output message="GetItemsByTypeSoapOut"/>

</wsdl:operation>

-

            <wsdl:operation name="GetItemsTransactionStateful">

<wsdl:documentation>Returns the list of all items.</wsdl:documentation>

</wsdl:operation>

-

            <wsdl:operation name="GetItemsTransaction">

<wsdl:documentation>Returns the list of all items.</wsdl:documentation>

</wsdl:operation>

</wsdl:portType>

-

            <wsdl:binding name="SabraFood_ItemsGroupSoapBinding" type="SabraFood_ItemsGroupPortType">

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

-

            <wsdl:operation name="GetItemsByType">

<soap:operation soapAction="http://tempuri.org/GetItemsByType"/>

<wsdl:input/>

-

            <wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

-

            <wsdl:operation name="GetItemsTransactionStateful">

<soap:operation soapAction="http://tempuri.org/GetItemsTransactionStateful"/>

<wsdl:input/>

-

            <wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

-

            <wsdl:operation name="GetItemsTransaction">

<soap:operation soapAction="http://tempuri.org/GetItemsTransaction"/>

<wsdl:input/>

-

            <wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

-

            <wsdl:service name="SabraFood_ItemsGroup">

-

            <wsdl:port binding="SabraFood_ItemsGroupSoapBinding" name="SabraFood_ItemsGroupPort">

<soap:address location="dummyaddress"/>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

 

Can someone please advise? Is this a bug or am I doing something wrong here?

 

Thanks,

Shahar Kedar

 

Mime
View raw message