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 se...@nttdata.co.jp on 2007/11/22 09:16:15 UTC

Accessing WSDL causes NullPointerException (on .NET to Axis2 migration)

Hello,

I'm trying to switch my web service created using .NET to Axis2.

At first, I've generated server-side skeleton codes from currently
publishing WSDL by wsdl2java.

Next, I've built .aar file using generated ant file and upload it to the
server through Axis2 administration site.
(Business logic was not implemented at that point, because I only wanted to
make sure it works)
On the administration page, the service looks available and activated.
And I've made sure .aar contains WSDL file in META-INF directory.

At last, accessing new WSDL causes the exception below:

org.apache.axis2.AxisFault
   at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
   at
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:1148)
   at
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1077)
   at
org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent
.java:280)
   at
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:229)
   at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.
jar.so)
   at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.
jar.so)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina-5.
5.23.jar.soa01s4g.so)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina-5.5.
23.jar.soa01s4g.so)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(catalina-5.5.23.jar.soa
01s4g.so)
   at
org.apache.catalina.core.StandardContextValve.invoke(catalina-5.5.23.jar.soa
01s4g.so)
   at org.apache.catalina.core.StandardHostValve.invoke(catalina-5.5.23.jar.
soa01s4g.so)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.23.jar.soa01
s4g.so)
   at
org.apache.catalina.core.StandardEngineValve.invoke(catalina-5.5.23.jar.soa0
1s4g.so)
   at
org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.23.jar.soa0
1s4g.so)
   at
org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.23.jar.so)
   at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(tomcat-http-5.5.23.jar.so)
   at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.23.
jar.so)
   at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.
23.jar.so)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.
5.23.jar.so)
   at java.lang.Thread.run(libgcj.so.7rh)
Caused by: java.lang.NullPointerException
   at
org.apache.axiom.om.impl.util.OMSerializerUtil.generateSetPrefix(OMSerialize
rUtil.java:560)
   at
org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart(OMSerializ
erUtil.java:273)
   at
org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart(OMSerializ
erUtil.java:172)
   at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.
java:768)
   at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.
java:756)
   at
org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:345)
   at
org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:383)
   at org.apache.axis2.util.XMLPrettyPrinter.prettify(XMLPrettyPrinter.java:
135)
   at
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:1144)
   ...19 more
   
What was wrong?
I'm using Axis2 1.3, Tomcat 5.5.20 and JDK1.5.0_06.

Thanks in advance
Kengo Seki

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


RE: Accessing WSDL causes NullPointerException (on .NET to Axis2 migration)

Posted by se...@nttdata.co.jp.
Keith,

Thanks a lot! The problem was solved.

Adding 

        <parameter locked="false" name="useOriginalwsdl">true</parameter>
        <parameter locked="false"
name="modifyUserWSDLPortAddress">true</parameter>

to services.xml makes it work.

Thanks,
Kengo


From: keith chapman [mailto:keithgchapman@gmail.com] 
Sent: Thursday, November 22, 2007 7:53 PM
To: axis-user@ws.apache.org
Subject: Re: Accessing WSDL causes NullPointerException (on .NET to Axis2
migration)

Hi,

I used the WSDL you have given here and generated java code using wsdl2java
with the following options -uri /home/keith/Desktop/test.wsdl -ss -sd -o
/opt/test 
ran ant and deployed the aar that was created. I was able to get the WSDL as
http://localhost:8080/axis2/services/NazukiWebService?wsdl2 and
http://localhost:8080/axis2/services/NazukiWebService?wsdl2 

Note that the services.xml has <parameter
name="useOriginalwsdl">true</parameter> and it will serve the WSDL in the
META-INF. If you remove this parameter or set it to false Axis2 will serve a
generated WSDL. 

I used Axis2-1.3.

Thanks,
Keith.
On Nov 22, 2007 3:08 PM, <se...@nttdata.co.jp> wrote:
Hello Keith,

Thank you for your fast reply.
Though I tried to send my aar file to the mailing list several times, my
posts ware rejected with below SMTP error...

       552 Message rejected as it is spam (body) 

So, I will describe my aar contents.

At first, directory structure is like this:

NazukiWebService.aar
├─jp
│  └─nazuki
│      ├─adcentric
│      │  └─soap
│      │      └─v2
│      │          └─analyze 
│      │              └─service_asmx
│      │                      AnalyzeType01$1.class
│      │                      AnalyzeType01$Factory.class
│      │                      AnalyzeType01.class
│      │                      AnalyzeType01Response$1.class 
│      │                      AnalyzeType01Response$Factory.class
│      │                      AnalyzeType01Response.class
│      │                      AnalyzeType02$1.class
│      │                      AnalyzeType02$Factory.class 
│      │                      AnalyzeType02.class
│      │                      AnalyzeType02Response$1.class
│      │                      AnalyzeType02Response$Factory.class
│      │                      AnalyzeType02Response.class 
│      │                      AnalyzeType03$1.class
│      │                      AnalyzeType03$Factory.class
│      │                      AnalyzeType03.class
│      │                      AnalyzeType03Response$1.class 
│      │                      AnalyzeType03Response$Factory.class
│      │                      AnalyzeType03Response.class
│      │                      AnalyzeType04$1.class
│      │                      AnalyzeType04$Factory.class 
│      │                      AnalyzeType04.class
│      │                      AnalyzeType04Response$1.class
│      │                      AnalyzeType04Response$Factory.class
│      │                      AnalyzeType04Response.class 
│      │                      ArrayOfAnyType$1.class
│      │                      ArrayOfAnyType$Factory.class
│      │                      ArrayOfAnyType.class
│      │                      ArrayOfCategory$1.class 
│      │                      ArrayOfCategory$Factory.class
│      │                      ArrayOfCategory.class
│      │                      ArrayOfKeyword$1.class
│      │                      ArrayOfKeyword$Factory.class 
│      │                      ArrayOfKeyword.class
│      │                      Category$1.class
│      │                      Category$Factory.class
│      │                      Category.class
│      │                       ExtensionMapper.class
│      │                      Keyword$1.class
│      │                      Keyword$Factory.class
│      │                      Keyword.class
│      │                      RefreshLicenceTable$1.class 
│      │                      RefreshLicenceTable$Factory.class
│      │                      RefreshLicenceTable.class
│      │                      RefreshLicenceTableResponse$1.class
│      │                      RefreshLicenceTableResponse$Factory.class 
│      │                      RefreshLicenceTableResponse.class
│      │                      RefreshSSGList$1.class
│      │                      RefreshSSGList$Factory.class
│      │                      RefreshSSGList.class 
│      │                      RefreshSSGListResponse$1.class
│      │                      RefreshSSGListResponse$Factory.class
│      │                      RefreshSSGListResponse.class
│      │                      Type01Result$1.class 
│      │                      Type01Result$Factory.class
│      │                      Type01Result.class
│      │                      Type02Result$1.class
│      │                      Type02Result$Factory.class 
│      │                      Type02Result.class
│      │                      Type03Result$1.class
│      │                      Type03Result$Factory.class
│      │                      Type03Result.class
│      │
│      └─amp
│          └─application
│              └─pad
│                      NazukiWebServiceMessageReceiverInOut.class
│                      NazukiWebServiceSkeleton.class
│
└─META-INF 
       MANIFEST.MF
       NazukiWebService.wsdl
       services.xml

and NazukiWebService.wsdl is like this:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions 
targetNamespace="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx"
xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:s=" http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns=" http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap12=" http://schemas.xmlsoap.org/wsdl/soap12/">
 <wsdl:types>
   <s:schema elementFormDefault="qualified"
targetNamespace=" http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx">
     <s:element name="AnalyzeType01">
       <s:complexType>
         <s:sequence>
           <s:element maxOccurs="1" minOccurs="0" name="License" 
type="s:string"/>
           <s:element maxOccurs="1" minOccurs="0" name="URL"
type="s:string"/>
           <s:element maxOccurs="1" minOccurs="0" name="Text" 
type="s:string"/>
         </s:sequence>
       </s:complexType>
     </s:element>
     <s:element name="AnalyzeType01Response">
       <s:complexType> 
         <s:sequence>
           <s:element maxOccurs="1" minOccurs="0"
name="AnalyzeType01Result" type="tns:Type01Result"/>
         </s:sequence> 
       </s:complexType>
     </s:element>
     <s:complexType name="Type01Result">
       <s:sequence>
         <s:element maxOccurs="1" minOccurs="0" name="ReturnCode" 
type="s:string"/>
         <s:element maxOccurs="1" minOccurs="0" name="CategoryID"
type="s:string"/>
       </s:sequence>
     </s:complexType> 
     <s:element name="AnalyzeType02">
       <s:complexType>
         <s:sequence>
           <s:element maxOccurs="1" minOccurs="0" name="License" 
type="s:string"/>
           <s:element maxOccurs="1" minOccurs="0" name="URL"
type="s:string"/>
           <s:element maxOccurs="1" minOccurs="0" name="Text" 
type="s:string"/>
         </s:sequence>
       </s:complexType>
     </s:element>
     <s:element name="AnalyzeType02Response">
       <s:complexType> 
         <s:sequence>
           <s:element maxOccurs="1" minOccurs="0"
name="AnalyzeType02Result" type="tns:Type02Result"/>
         </s:sequence> 
       </s:complexType>
     </s:element>
     <s:complexType name="Type02Result">
       <s:sequence>
         <s:element maxOccurs="1" minOccurs="0" name="ReturnCode" 
type="s:string"/>
         <s:element maxOccurs="1" minOccurs="0" name="CategoryList"
type="tns:ArrayOfCategory"/>
       </s:sequence>
     </s:complexType> 
     <s:complexType name="ArrayOfCategory">
       <s:sequence>
         <s:element maxOccurs="unbounded" minOccurs="0" name="Category"
nillable="true" type="tns:Category"/> 
       </s:sequence>
     </s:complexType>
     <s:complexType name="Category">
       <s:sequence>
         <s:element maxOccurs="1" minOccurs="0" name="ID" type="s:string"/> 
       </s:sequence>
     </s:complexType>
     <s:element name="AnalyzeType03">
       <s:complexType>
         <s:sequence>
           <s:element maxOccurs="1" minOccurs="0" name="License" 
type="s:string"/>
           <s:element maxOccurs="1" minOccurs="0" name="URL"
type="s:string"/>
           <s:element maxOccurs="1" minOccurs="0" name="Text" 
type="s:string"/>
         </s:sequence>
       </s:complexType>
     </s:element>
     <s:element name="AnalyzeType03Response">
       <s:complexType> 
         <s:sequence>
           <s:element maxOccurs="1" minOccurs="0"
name="AnalyzeType03Result" type="tns:Type03Result"/>
         </s:sequence> 
       </s:complexType>
     </s:element>
     <s:complexType name="Type03Result">
       <s:sequence>
         <s:element maxOccurs="1" minOccurs="0" name="ReturnCode" 
type="s:string"/>
         <s:element maxOccurs="1" minOccurs="0" name="KeywordList"
type="tns:ArrayOfKeyword"/>
         <s:element maxOccurs="1" minOccurs="0" name="CategoryList" 
type="tns:ArrayOfCategory"/>
       </s:sequence>
     </s:complexType>
     <s:complexType name="ArrayOfKeyword">
       <s:sequence>
         <s:element maxOccurs="unbounded" minOccurs="0" name="Keyword" 
nillable="true" type="tns:Keyword"/>
       </s:sequence>
     </s:complexType>
     <s:complexType name="Keyword">
       <s:sequence>
         <s:element maxOccurs="1" minOccurs="0" name="Text" 
type="s:string"/>
       </s:sequence>
     </s:complexType>
     <s:element name="AnalyzeType04">
       <s:complexType>
         <s:sequence>
           <s:element maxOccurs="1" minOccurs="0" name="License"
type="s:string"/>
           <s:element maxOccurs="1" minOccurs="0" name="URL" 
type="s:string"/>
           <s:element maxOccurs="1" minOccurs="0" name="Text"
type="s:string"/>
           <s:element maxOccurs="1" minOccurs="0" name="Tag" 
type="s:string"/>
         </s:sequence>
       </s:complexType>
     </s:element>
     <s:element name="AnalyzeType04Response">
       <s:complexType> 
         <s:sequence>
           <s:element maxOccurs="1" minOccurs="0"
name="AnalyzeType04Result" type="tns:Type03Result"/>
         </s:sequence> 
       </s:complexType>
     </s:element>
     <s:element name="RefreshSSGList">
       <s:complexType>
         <s:sequence>
           <s:element maxOccurs="1" minOccurs="0" name="License" 
type="s:string"/>
           <s:element maxOccurs="1" minOccurs="0" name="Address"
type="s:string"/>
           <s:element maxOccurs="1" minOccurs="0" name="Operation" 
type="s:string"/>
         </s:sequence>
       </s:complexType>
     </s:element>
     <s:element name="RefreshSSGListResponse">
       <s:complexType> 
         <s:sequence>
           <s:element maxOccurs="1" minOccurs="0"
name="RefreshSSGListResult" type="tns:ArrayOfAnyType"/>
         </s:sequence> 
       </s:complexType>
     </s:element>
     <s:complexType name="ArrayOfAnyType">
       <s:sequence>
         <s:element maxOccurs="unbounded" minOccurs="0" name="anyType" 
nillable="true"/>
       </s:sequence>
     </s:complexType>
     <s:element name="RefreshLicenceTable">
       <s:complexType>
         <s:sequence> 
           <s:element maxOccurs="1" minOccurs="0" name="License"
type="s:string"/>
         </s:sequence>
       </s:complexType>
     </s:element> 
     <s:element name="RefreshLicenceTableResponse">
       <s:complexType>
         <s:sequence>
           <s:element maxOccurs="1" minOccurs="0"
name="RefreshLicenceTableResult" type="tns:ArrayOfAnyType"/> 
         </s:sequence>
       </s:complexType>
     </s:element>
   </s:schema>
 </wsdl:types>
 <wsdl:message name="RefreshLicenceTableSoapIn">
   <wsdl:part name="parameters" element="tns:RefreshLicenceTable"> 
   </wsdl:part>
 </wsdl:message>
 <wsdl:message name="RefreshSSGListSoapOut">
   <wsdl:part name="parameters" element="tns:RefreshSSGListResponse">
   </wsdl:part>
 </wsdl:message>
 <wsdl:message name="RefreshLicenceTableSoapOut">
   <wsdl:part name="parameters" element="tns:RefreshLicenceTableResponse"> 
   </wsdl:part>
 </wsdl:message>
 <wsdl:message name="AnalyzeType02SoapOut">
   <wsdl:part name="parameters" element="tns:AnalyzeType02Response">
   </wsdl:part> 
 </wsdl:message>
 <wsdl:message name="RefreshSSGListSoapIn">
   <wsdl:part name="parameters" element="tns:RefreshSSGList">
   </wsdl:part>
 </wsdl:message> 
 <wsdl:message name="AnalyzeType01SoapOut">
   <wsdl:part name="parameters" element="tns:AnalyzeType01Response">
   </wsdl:part>
 </wsdl:message>
 <wsdl:message name="AnalyzeType01SoapIn"> 
   <wsdl:part name="parameters" element="tns:AnalyzeType01">
   </wsdl:part>
 </wsdl:message>
 <wsdl:message name="AnalyzeType02SoapIn">
   <wsdl:part name="parameters" element="tns:AnalyzeType02"> 
   </wsdl:part>
 </wsdl:message>
 <wsdl:message name="AnalyzeType04SoapIn">
   <wsdl:part name="parameters" element="tns:AnalyzeType04">
   </wsdl:part> 
 </wsdl:message>
 <wsdl:message name="AnalyzeType03SoapIn">
   <wsdl:part name="parameters" element="tns:AnalyzeType03">
   </wsdl:part>
 </wsdl:message> 
 <wsdl:message name="AnalyzeType04SoapOut">
   <wsdl:part name="parameters" element="tns:AnalyzeType04Response">
   </wsdl:part>
 </wsdl:message>
 <wsdl:message name="AnalyzeType03SoapOut"> 
   <wsdl:part name="parameters" element="tns:AnalyzeType03Response">
   </wsdl:part>
 </wsdl:message>
 <wsdl:portType name="NazukiWebServiceSoap">
   <wsdl:operation name="AnalyzeType01">
     <wsdl:input message="tns:AnalyzeType01SoapIn">
   </wsdl:input>
     <wsdl:output message="tns:AnalyzeType01SoapOut"> 
   </wsdl:output>
   </wsdl:operation>
   <wsdl:operation name="AnalyzeType02">
     <wsdl:input message="tns:AnalyzeType02SoapIn">
   </wsdl:input>
     <wsdl:output message="tns:AnalyzeType02SoapOut">
   </wsdl:output>
   </wsdl:operation>
   <wsdl:operation name="AnalyzeType03">
     <wsdl:input message="tns:AnalyzeType03SoapIn"> 
   </wsdl:input>
     <wsdl:output message="tns:AnalyzeType03SoapOut">
   </wsdl:output>
   </wsdl:operation>
   <wsdl:operation name="AnalyzeType04"> 
     <wsdl:input message="tns:AnalyzeType04SoapIn">
   </wsdl:input>
     <wsdl:output message="tns:AnalyzeType04SoapOut">
   </wsdl:output>
   </wsdl:operation> 
   <wsdl:operation name="RefreshSSGList">
     <wsdl:input message="tns:RefreshSSGListSoapIn">
   </wsdl:input>
     <wsdl:output message="tns:RefreshSSGListSoapOut"> 
   </wsdl:output>
   </wsdl:operation>
   <wsdl:operation name="RefreshLicenceTable">
     <wsdl:input message="tns:RefreshLicenceTableSoapIn">
   </wsdl:input> 
     <wsdl:output message="tns:RefreshLicenceTableSoapOut">
   </wsdl:output>
   </wsdl:operation>
 </wsdl:portType>
 <wsdl:binding name="NazukiWebServiceSoap12" 
type="tns:NazukiWebServiceSoap">
   <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
   <wsdl:operation name="AnalyzeType01"> 
     <soap12:operation
soapAction="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
ype01 " style="document"/>
     <wsdl:input>
       <soap12:body use="literal"/>
     </wsdl:input>
     <wsdl:output>
       <soap12:body use="literal"/> 
     </wsdl:output>
   </wsdl:operation>
   <wsdl:operation name="AnalyzeType02">
     <soap12:operation
soapAction="
http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
ype02" style="document"/>
     <wsdl:input>
       <soap12:body use="literal"/>
     </wsdl:input> 
     <wsdl:output>
       <soap12:body use="literal"/>
     </wsdl:output>
   </wsdl:operation>
   <wsdl:operation name="AnalyzeType03">
     <soap12:operation 
soapAction="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
ype03" style="document"/> 
     <wsdl:input>
       <soap12:body use="literal"/>
     </wsdl:input>
     <wsdl:output>
       <soap12:body use="literal"/>
     </wsdl:output> 
   </wsdl:operation>
   <wsdl:operation name="AnalyzeType04">
     <soap12:operation
soapAction="
http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
ype04" style="document"/>
     <wsdl:input>
       <soap12:body use="literal"/>
     </wsdl:input> 
     <wsdl:output>
       <soap12:body use="literal"/>
     </wsdl:output>
   </wsdl:operation>
   <wsdl:operation name="RefreshSSGList">
     <soap12:operation 
soapAction="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/RefreshS
SGList" style="document"/> 
     <wsdl:input>
       <soap12:body use="literal"/>
     </wsdl:input>
     <wsdl:output>
       <soap12:body use="literal"/>
     </wsdl:output> 
   </wsdl:operation>
   <wsdl:operation name="RefreshLicenceTable">
     <soap12:operation
soapAction="
http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/RefreshL
icenceTable" style="document"/>
     <wsdl:input>
       <soap12:body use="literal"/>
     </wsdl:input> 
     <wsdl:output>
       <soap12:body use="literal"/>
     </wsdl:output>
   </wsdl:operation>
 </wsdl:binding>
 <wsdl:binding name="NazukiWebServiceSoap" type="tns:NazukiWebServiceSoap"> 
   <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
   <wsdl:operation name="AnalyzeType01">
     <soap:operation 
soapAction="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
ype01" style="document"/> 
     <wsdl:input>
       <soap:body use="literal"/>
     </wsdl:input>
     <wsdl:output>
       <soap:body use="literal"/>
     </wsdl:output> 
   </wsdl:operation>
   <wsdl:operation name="AnalyzeType02">
     <soap:operation
soapAction="
http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
ype02" style="document"/>
     <wsdl:input>
       <soap:body use="literal"/>
     </wsdl:input> 
     <wsdl:output>
       <soap:body use="literal"/>
     </wsdl:output>
   </wsdl:operation>
   <wsdl:operation name="AnalyzeType03">
     <soap:operation 
soapAction="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
ype03" style="document"/> 
     <wsdl:input>
       <soap:body use="literal"/>
     </wsdl:input>
     <wsdl:output>
       <soap:body use="literal"/>
     </wsdl:output> 
   </wsdl:operation>
   <wsdl:operation name="AnalyzeType04">
     <soap:operation
soapAction="
http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
ype04" style="document"/>
     <wsdl:input>
       <soap:body use="literal"/>
     </wsdl:input> 
     <wsdl:output>
       <soap:body use="literal"/>
     </wsdl:output>
   </wsdl:operation>
   <wsdl:operation name="RefreshSSGList">
     <soap:operation 
soapAction="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/RefreshS
SGList" style="document"/> 
     <wsdl:input>
       <soap:body use="literal"/>
     </wsdl:input>
     <wsdl:output>
       <soap:body use="literal"/>
     </wsdl:output> 
   </wsdl:operation>
   <wsdl:operation name="RefreshLicenceTable">
     <soap:operation
soapAction="
http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/RefreshL
icenceTable" style="document"/>
     <wsdl:input>
       <soap:body use="literal"/>
     </wsdl:input> 
     <wsdl:output>
       <soap:body use="literal"/>
     </wsdl:output>
   </wsdl:operation>
 </wsdl:binding>
 <wsdl:service name="NazukiWebService"> 
   <wsdl:port name="NazukiWebServiceSoap"
binding="tns:NazukiWebServiceSoap">
     <soap:address
location=" http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx"/>
   </wsdl:port>
   <wsdl:port name="NazukiWebServiceSoap12"
binding="tns:NazukiWebServiceSoap12">
     <soap12:address 
location="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx"/>
   </wsdl:port>
 </wsdl:service> 
</wsdl:definitions>

and services.xml like this:

<?xml version="1.0" encoding="UTF-8"?>
<!-- This file was auto-generated from WSDL -->
<!-- by the Apache Axis2 version: #axisVersion# #today# --> 
<serviceGroup>
   <service name="NazukiWebService">
       <messageReceivers>
           <messageReceiver mep=" http://www.w3.org/2004/08/wsdl/in-out"
class="jp.nazuki.amp.application.pad.NazukiWebServiceMessageReceiverInOut"/>
       </messageReceivers>
       <parameter locked="false" 
name="ServiceClass">jp.nazuki.amp.application.pad.NazukiWebServiceSkeleton</
parameter>
       <operation name="AnalyzeType02"
mep=" http://www.w3.org/2004/08/wsdl/in-out">

<actionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/Analy
zeType02</actionMapping>

<outputActionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx
/NazukiWebServiceSoap/AnalyzeType02Response</outputActionMapping>
       </operation>
       <operation name="AnalyzeType01"
mep=" http://www.w3.org/2004/08/wsdl/in-out">

<actionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/Analy
zeType01</actionMapping>

<outputActionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx
/NazukiWebServiceSoap/AnalyzeType01Response</outputActionMapping>
       </operation>
       <operation name="AnalyzeType03"
mep=" http://www.w3.org/2004/08/wsdl/in-out">

<actionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/Analy
zeType03</actionMapping>

<outputActionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx
/NazukiWebServiceSoap/AnalyzeType03Response</outputActionMapping>
       </operation>
       <operation name="AnalyzeType04"
mep=" http://www.w3.org/2004/08/wsdl/in-out">

<actionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/Analy
zeType04</actionMapping>

<outputActionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx
/NazukiWebServiceSoap/AnalyzeType04Response</outputActionMapping>
       </operation>
       <operation name="RefreshLicenceTable"
mep=" http://www.w3.org/2004/08/wsdl/in-out">

<actionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/Refre
shLicenceTable</actionMapping>

<outputActionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx
/NazukiWebServiceSoap/RefreshLicenceTableResponse</outputActionMapping>
       </operation>
       <operation name="RefreshSSGList"
mep=" http://www.w3.org/2004/08/wsdl/in-out">

<actionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/Refre
shSSGList</actionMapping>

<outputActionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx
/NazukiWebServiceSoap/RefreshSSGListResponse</outputActionMapping>
       </operation>
   </service>
</serviceGroup>

If there are any other necessary information, please point out. 

Thanks,
Kengo

------------------------------------------

From: keith chapman [mailto:keithgchapman@gmail.com]
Sent: Thursday, November 22, 2007 5:26 PM 
To: axis-user@ws.apache.org
Subject: Re: Accessing WSDL causes NullPointerException (on .NET to Axis2
migration)

Can you send the created aar so that We can check what's going on. 

Thanks,
Keith.
On Nov 22, 2007 1:46 PM, <se...@nttdata.co.jp> wrote:
Hello,

I'm trying to switch my web service created using .NET to Axis2.

At first, I've generated server-side skeleton codes from currently
publishing WSDL by wsdl2java.

Next, I've built .aar file using generated ant file and upload it to the
server through Axis2 administration site. 
(Business logic was not implemented at that point, because I only wanted to
make sure it works)
On the administration page, the service looks available and activated.
And I've made sure .aar contains WSDL file in META-INF directory. 

At last, accessing new WSDL causes the exception below:

org.apache.axis2.AxisFault
 at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
 at
org.apache.axis2.description.AxisService.getWSDL ( AxisService.java:1148)
 at
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1077)
 at
org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent
.java:280)
 at
org.apache.axis2.transport.http.AxisServlet.doGet (AxisServlet.java:229)
 at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.
jar.so)
 at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23 .
jar.so)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(catalina-5.
5.23.jar.soa01s4g.so)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter (catalina-5.5.
23.jar.soa01s4g.so)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(catalina-5.5.23.jar.soa
01s4g.so)
 at
org.apache.catalina.core.StandardContextValve.invoke
(catalina-5.5.23.jar.soa
01s4g.so )
 at org.apache.catalina.core.StandardHostValve.invoke(catalina-5.5.23.jar.
soa01s4g.so)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.23.jar.soa01
s4g.so)
 at
org.apache.catalina.core.StandardEngineValve.invoke
(catalina-5.5.23.jar.soa0
1s4g.so)
 at
org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.23.jar.soa0
1s4g.so)
 at
org.apache.coyote.http11.Http11Processor.process( tomcat-http-5.5.23.jar.so)
 at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(tomcat-http-5.5.23.jar.so)
 at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.23.
jar.so)
 at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(tomcat-util-5.5.
23.jar.so)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.
5.23.jar.so )
 at java.lang.Thread.run(libgcj.so.7rh)
Caused by: java.lang.NullPointerException
 at
org.apache.axiom.om.impl.util.OMSerializerUtil.generateSetPrefix(OMSerialize
rUtil.java:560)
 at
org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart
(OMSerializ 
erUtil.java:273)
 at
org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart(OMSerializ
erUtil.java:172)
 at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.
java:768) 
 at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.
java:756)
 at
org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:345)
 at
org.apache.axiom.om.impl.llom.OMNodeImpl.serialize (OMNodeImpl.java:383)
 at org.apache.axis2.util.XMLPrettyPrinter.prettify(XMLPrettyPrinter.java:
135)
 at
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:1144)
 ...19 more

What was wrong? 
I'm using Axis2 1.3, Tomcat 5.5.20 and JDK1.5.0_06.

Thanks in advance
Kengo Seki

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



--
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers. 
http://wso2.org/



-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/ 

Re: Accessing WSDL causes NullPointerException (on .NET to Axis2 migration)

Posted by keith chapman <ke...@gmail.com>.
Hi,

I used the WSDL you have given here and generated java code using wsdl2java
with the following options -uri /home/keith/Desktop/test.wsdl -ss -sd -o
/opt/test
ran ant and deployed the aar that was created. I was able to get the WSDL as
http://localhost:8080/axis2/services/NazukiWebService?wsdl2 and
http://localhost:8080/axis2/services/NazukiWebService?wsdl2

Note that the services.xml has <parameter
name="useOriginalwsdl">true</parameter> and it will serve the WSDL in the
META-INF. If you remove this parameter or set it to false Axis2 will serve a
generated WSDL.

I used Axis2-1.3.

Thanks,
Keith.

On Nov 22, 2007 3:08 PM, <se...@nttdata.co.jp> wrote:

> Hello Keith,
>
> Thank you for your fast reply.
> Though I tried to send my aar file to the mailing list several times, my
> posts ware rejected with below SMTP error...
>
>        552 Message rejected as it is spam (body)
>
> So, I will describe my aar contents.
>
> At first, directory structure is like this:
>
> NazukiWebService.aar
> ├─jp
> │  └─nazuki
> │      ├─adcentric
> │      │  └─soap
> │      │      └─v2
> │      │          └─analyze
> │      │              └─service_asmx
> │      │                      AnalyzeType01$1.class
> │      │                      AnalyzeType01$Factory.class
> │      │                      AnalyzeType01.class
> │      │                      AnalyzeType01Response$1.class
> │      │                      AnalyzeType01Response$Factory.class
> │      │                      AnalyzeType01Response.class
> │      │                      AnalyzeType02$1.class
> │      │                      AnalyzeType02$Factory.class
> │      │                      AnalyzeType02.class
> │      │                      AnalyzeType02Response$1.class
> │      │                      AnalyzeType02Response$Factory.class
> │      │                      AnalyzeType02Response.class
> │      │                      AnalyzeType03$1.class
> │      │                      AnalyzeType03$Factory.class
> │      │                      AnalyzeType03.class
> │      │                      AnalyzeType03Response$1.class
> │      │                      AnalyzeType03Response$Factory.class
> │      │                      AnalyzeType03Response.class
> │      │                      AnalyzeType04$1.class
> │      │                      AnalyzeType04$Factory.class
> │      │                      AnalyzeType04.class
> │      │                      AnalyzeType04Response$1.class
> │      │                      AnalyzeType04Response$Factory.class
> │      │                      AnalyzeType04Response.class
> │      │                      ArrayOfAnyType$1.class
> │      │                      ArrayOfAnyType$Factory.class
> │      │                      ArrayOfAnyType.class
> │      │                      ArrayOfCategory$1.class
> │      │                      ArrayOfCategory$Factory.class
> │      │                      ArrayOfCategory.class
> │      │                      ArrayOfKeyword$1.class
> │      │                      ArrayOfKeyword$Factory.class
> │      │                      ArrayOfKeyword.class
> │      │                      Category$1.class
> │      │                      Category$Factory.class
> │      │                      Category.class
> │      │                      ExtensionMapper.class
> │      │                      Keyword$1.class
> │      │                      Keyword$Factory.class
> │      │                      Keyword.class
> │      │                      RefreshLicenceTable$1.class
> │      │                      RefreshLicenceTable$Factory.class
> │      │                      RefreshLicenceTable.class
> │      │                      RefreshLicenceTableResponse$1.class
> │      │                      RefreshLicenceTableResponse$Factory.class
> │      │                      RefreshLicenceTableResponse.class
> │      │                      RefreshSSGList$1.class
> │      │                      RefreshSSGList$Factory.class
> │      │                      RefreshSSGList.class
> │      │                      RefreshSSGListResponse$1.class
> │      │                      RefreshSSGListResponse$Factory.class
> │      │                      RefreshSSGListResponse.class
> │      │                      Type01Result$1.class
> │      │                      Type01Result$Factory.class
> │      │                      Type01Result.class
> │      │                      Type02Result$1.class
> │      │                      Type02Result$Factory.class
> │      │                      Type02Result.class
> │      │                      Type03Result$1.class
> │      │                      Type03Result$Factory.class
> │      │                      Type03Result.class
> │      │
> │      └─amp
> │          └─application
> │              └─pad
> │                      NazukiWebServiceMessageReceiverInOut.class
> │                      NazukiWebServiceSkeleton.class
> │
> └─META-INF
>        MANIFEST.MF
>        NazukiWebService.wsdl
>        services.xml
>
> and NazukiWebService.wsdl is like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions
> targetNamespace="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
> xmlns:s="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:tns="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx"
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/">
>  <wsdl:types>
>    <s:schema elementFormDefault="qualified"
> targetNamespace="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx">
>      <s:element name="AnalyzeType01">
>        <s:complexType>
>          <s:sequence>
>            <s:element maxOccurs="1" minOccurs="0" name="License"
> type="s:string"/>
>            <s:element maxOccurs="1" minOccurs="0" name="URL"
> type="s:string"/>
>            <s:element maxOccurs="1" minOccurs="0" name="Text"
> type="s:string"/>
>          </s:sequence>
>        </s:complexType>
>      </s:element>
>      <s:element name="AnalyzeType01Response">
>        <s:complexType>
>          <s:sequence>
>            <s:element maxOccurs="1" minOccurs="0"
> name="AnalyzeType01Result" type="tns:Type01Result"/>
>          </s:sequence>
>        </s:complexType>
>      </s:element>
>      <s:complexType name="Type01Result">
>        <s:sequence>
>          <s:element maxOccurs="1" minOccurs="0" name="ReturnCode"
> type="s:string"/>
>          <s:element maxOccurs="1" minOccurs="0" name="CategoryID"
> type="s:string"/>
>        </s:sequence>
>      </s:complexType>
>      <s:element name="AnalyzeType02">
>        <s:complexType>
>          <s:sequence>
>            <s:element maxOccurs="1" minOccurs="0" name="License"
> type="s:string"/>
>            <s:element maxOccurs="1" minOccurs="0" name="URL"
> type="s:string"/>
>            <s:element maxOccurs="1" minOccurs="0" name="Text"
> type="s:string"/>
>          </s:sequence>
>        </s:complexType>
>      </s:element>
>      <s:element name="AnalyzeType02Response">
>        <s:complexType>
>          <s:sequence>
>            <s:element maxOccurs="1" minOccurs="0"
> name="AnalyzeType02Result" type="tns:Type02Result"/>
>          </s:sequence>
>        </s:complexType>
>      </s:element>
>      <s:complexType name="Type02Result">
>        <s:sequence>
>          <s:element maxOccurs="1" minOccurs="0" name="ReturnCode"
> type="s:string"/>
>          <s:element maxOccurs="1" minOccurs="0" name="CategoryList"
> type="tns:ArrayOfCategory"/>
>        </s:sequence>
>      </s:complexType>
>      <s:complexType name="ArrayOfCategory">
>        <s:sequence>
>          <s:element maxOccurs="unbounded" minOccurs="0" name="Category"
> nillable="true" type="tns:Category"/>
>        </s:sequence>
>      </s:complexType>
>      <s:complexType name="Category">
>        <s:sequence>
>          <s:element maxOccurs="1" minOccurs="0" name="ID"
> type="s:string"/>
>        </s:sequence>
>      </s:complexType>
>      <s:element name="AnalyzeType03">
>        <s:complexType>
>          <s:sequence>
>            <s:element maxOccurs="1" minOccurs="0" name="License"
> type="s:string"/>
>            <s:element maxOccurs="1" minOccurs="0" name="URL"
> type="s:string"/>
>            <s:element maxOccurs="1" minOccurs="0" name="Text"
> type="s:string"/>
>          </s:sequence>
>        </s:complexType>
>      </s:element>
>      <s:element name="AnalyzeType03Response">
>        <s:complexType>
>          <s:sequence>
>            <s:element maxOccurs="1" minOccurs="0"
> name="AnalyzeType03Result" type="tns:Type03Result"/>
>          </s:sequence>
>        </s:complexType>
>      </s:element>
>      <s:complexType name="Type03Result">
>        <s:sequence>
>          <s:element maxOccurs="1" minOccurs="0" name="ReturnCode"
> type="s:string"/>
>          <s:element maxOccurs="1" minOccurs="0" name="KeywordList"
> type="tns:ArrayOfKeyword"/>
>          <s:element maxOccurs="1" minOccurs="0" name="CategoryList"
> type="tns:ArrayOfCategory"/>
>        </s:sequence>
>      </s:complexType>
>      <s:complexType name="ArrayOfKeyword">
>        <s:sequence>
>          <s:element maxOccurs="unbounded" minOccurs="0" name="Keyword"
> nillable="true" type="tns:Keyword"/>
>        </s:sequence>
>      </s:complexType>
>      <s:complexType name="Keyword">
>        <s:sequence>
>          <s:element maxOccurs="1" minOccurs="0" name="Text"
> type="s:string"/>
>        </s:sequence>
>      </s:complexType>
>      <s:element name="AnalyzeType04">
>        <s:complexType>
>          <s:sequence>
>            <s:element maxOccurs="1" minOccurs="0" name="License"
> type="s:string"/>
>            <s:element maxOccurs="1" minOccurs="0" name="URL"
> type="s:string"/>
>            <s:element maxOccurs="1" minOccurs="0" name="Text"
> type="s:string"/>
>            <s:element maxOccurs="1" minOccurs="0" name="Tag"
> type="s:string"/>
>          </s:sequence>
>        </s:complexType>
>      </s:element>
>      <s:element name="AnalyzeType04Response">
>        <s:complexType>
>          <s:sequence>
>            <s:element maxOccurs="1" minOccurs="0"
> name="AnalyzeType04Result" type="tns:Type03Result"/>
>          </s:sequence>
>        </s:complexType>
>      </s:element>
>      <s:element name="RefreshSSGList">
>        <s:complexType>
>          <s:sequence>
>            <s:element maxOccurs="1" minOccurs="0" name="License"
> type="s:string"/>
>            <s:element maxOccurs="1" minOccurs="0" name="Address"
> type="s:string"/>
>            <s:element maxOccurs="1" minOccurs="0" name="Operation"
> type="s:string"/>
>          </s:sequence>
>        </s:complexType>
>      </s:element>
>      <s:element name="RefreshSSGListResponse">
>        <s:complexType>
>          <s:sequence>
>            <s:element maxOccurs="1" minOccurs="0"
> name="RefreshSSGListResult" type="tns:ArrayOfAnyType"/>
>          </s:sequence>
>        </s:complexType>
>      </s:element>
>      <s:complexType name="ArrayOfAnyType">
>        <s:sequence>
>          <s:element maxOccurs="unbounded" minOccurs="0" name="anyType"
> nillable="true"/>
>        </s:sequence>
>      </s:complexType>
>      <s:element name="RefreshLicenceTable">
>        <s:complexType>
>          <s:sequence>
>            <s:element maxOccurs="1" minOccurs="0" name="License"
> type="s:string"/>
>          </s:sequence>
>        </s:complexType>
>      </s:element>
>      <s:element name="RefreshLicenceTableResponse">
>        <s:complexType>
>          <s:sequence>
>            <s:element maxOccurs="1" minOccurs="0"
> name="RefreshLicenceTableResult" type="tns:ArrayOfAnyType"/>
>          </s:sequence>
>        </s:complexType>
>      </s:element>
>    </s:schema>
>  </wsdl:types>
>  <wsdl:message name="RefreshLicenceTableSoapIn">
>    <wsdl:part name="parameters" element="tns:RefreshLicenceTable">
>    </wsdl:part>
>  </wsdl:message>
>  <wsdl:message name="RefreshSSGListSoapOut">
>    <wsdl:part name="parameters" element="tns:RefreshSSGListResponse">
>    </wsdl:part>
>  </wsdl:message>
>  <wsdl:message name="RefreshLicenceTableSoapOut">
>    <wsdl:part name="parameters" element="tns:RefreshLicenceTableResponse">
>    </wsdl:part>
>  </wsdl:message>
>  <wsdl:message name="AnalyzeType02SoapOut">
>    <wsdl:part name="parameters" element="tns:AnalyzeType02Response">
>    </wsdl:part>
>  </wsdl:message>
>  <wsdl:message name="RefreshSSGListSoapIn">
>    <wsdl:part name="parameters" element="tns:RefreshSSGList">
>    </wsdl:part>
>  </wsdl:message>
>  <wsdl:message name="AnalyzeType01SoapOut">
>    <wsdl:part name="parameters" element="tns:AnalyzeType01Response">
>    </wsdl:part>
>  </wsdl:message>
>  <wsdl:message name="AnalyzeType01SoapIn">
>    <wsdl:part name="parameters" element="tns:AnalyzeType01">
>    </wsdl:part>
>  </wsdl:message>
>  <wsdl:message name="AnalyzeType02SoapIn">
>    <wsdl:part name="parameters" element="tns:AnalyzeType02">
>    </wsdl:part>
>  </wsdl:message>
>  <wsdl:message name="AnalyzeType04SoapIn">
>    <wsdl:part name="parameters" element="tns:AnalyzeType04">
>    </wsdl:part>
>  </wsdl:message>
>  <wsdl:message name="AnalyzeType03SoapIn">
>    <wsdl:part name="parameters" element="tns:AnalyzeType03">
>    </wsdl:part>
>  </wsdl:message>
>  <wsdl:message name="AnalyzeType04SoapOut">
>    <wsdl:part name="parameters" element="tns:AnalyzeType04Response">
>    </wsdl:part>
>  </wsdl:message>
>  <wsdl:message name="AnalyzeType03SoapOut">
>    <wsdl:part name="parameters" element="tns:AnalyzeType03Response">
>    </wsdl:part>
>  </wsdl:message>
>  <wsdl:portType name="NazukiWebServiceSoap">
>    <wsdl:operation name="AnalyzeType01">
>      <wsdl:input message="tns:AnalyzeType01SoapIn">
>    </wsdl:input>
>      <wsdl:output message="tns:AnalyzeType01SoapOut">
>    </wsdl:output>
>    </wsdl:operation>
>    <wsdl:operation name="AnalyzeType02">
>      <wsdl:input message="tns:AnalyzeType02SoapIn">
>    </wsdl:input>
>      <wsdl:output message="tns:AnalyzeType02SoapOut">
>    </wsdl:output>
>    </wsdl:operation>
>    <wsdl:operation name="AnalyzeType03">
>      <wsdl:input message="tns:AnalyzeType03SoapIn">
>    </wsdl:input>
>      <wsdl:output message="tns:AnalyzeType03SoapOut">
>    </wsdl:output>
>    </wsdl:operation>
>    <wsdl:operation name="AnalyzeType04">
>      <wsdl:input message="tns:AnalyzeType04SoapIn">
>    </wsdl:input>
>      <wsdl:output message="tns:AnalyzeType04SoapOut">
>    </wsdl:output>
>    </wsdl:operation>
>    <wsdl:operation name="RefreshSSGList">
>      <wsdl:input message="tns:RefreshSSGListSoapIn">
>    </wsdl:input>
>      <wsdl:output message="tns:RefreshSSGListSoapOut">
>    </wsdl:output>
>    </wsdl:operation>
>    <wsdl:operation name="RefreshLicenceTable">
>      <wsdl:input message="tns:RefreshLicenceTableSoapIn">
>    </wsdl:input>
>      <wsdl:output message="tns:RefreshLicenceTableSoapOut">
>    </wsdl:output>
>    </wsdl:operation>
>  </wsdl:portType>
>  <wsdl:binding name="NazukiWebServiceSoap12"
> type="tns:NazukiWebServiceSoap">
>    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
>    <wsdl:operation name="AnalyzeType01">
>      <soap12:operation
> soapAction="
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
> ype01" style="document"/>
>      <wsdl:input>
>        <soap12:body use="literal"/>
>      </wsdl:input>
>      <wsdl:output>
>        <soap12:body use="literal"/>
>      </wsdl:output>
>    </wsdl:operation>
>    <wsdl:operation name="AnalyzeType02">
>      <soap12:operation
> soapAction="
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
> ype02" style="document"/>
>      <wsdl:input>
>        <soap12:body use="literal"/>
>      </wsdl:input>
>      <wsdl:output>
>        <soap12:body use="literal"/>
>      </wsdl:output>
>    </wsdl:operation>
>    <wsdl:operation name="AnalyzeType03">
>      <soap12:operation
> soapAction="
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
> ype03" style="document"/>
>      <wsdl:input>
>        <soap12:body use="literal"/>
>      </wsdl:input>
>      <wsdl:output>
>        <soap12:body use="literal"/>
>      </wsdl:output>
>    </wsdl:operation>
>    <wsdl:operation name="AnalyzeType04">
>      <soap12:operation
> soapAction="
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
> ype04" style="document"/>
>      <wsdl:input>
>        <soap12:body use="literal"/>
>      </wsdl:input>
>      <wsdl:output>
>        <soap12:body use="literal"/>
>      </wsdl:output>
>    </wsdl:operation>
>    <wsdl:operation name="RefreshSSGList">
>      <soap12:operation
> soapAction="
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/RefreshS
> SGList" style="document"/>
>      <wsdl:input>
>        <soap12:body use="literal"/>
>      </wsdl:input>
>      <wsdl:output>
>        <soap12:body use="literal"/>
>      </wsdl:output>
>    </wsdl:operation>
>    <wsdl:operation name="RefreshLicenceTable">
>      <soap12:operation
> soapAction="
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/RefreshL
> icenceTable" style="document"/>
>      <wsdl:input>
>        <soap12:body use="literal"/>
>      </wsdl:input>
>      <wsdl:output>
>        <soap12:body use="literal"/>
>      </wsdl:output>
>    </wsdl:operation>
>  </wsdl:binding>
>  <wsdl:binding name="NazukiWebServiceSoap"
> type="tns:NazukiWebServiceSoap">
>    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
>    <wsdl:operation name="AnalyzeType01">
>      <soap:operation
> soapAction="
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
> ype01" style="document"/>
>      <wsdl:input>
>        <soap:body use="literal"/>
>      </wsdl:input>
>      <wsdl:output>
>        <soap:body use="literal"/>
>      </wsdl:output>
>    </wsdl:operation>
>    <wsdl:operation name="AnalyzeType02">
>      <soap:operation
> soapAction="
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
> ype02" style="document"/>
>      <wsdl:input>
>        <soap:body use="literal"/>
>      </wsdl:input>
>      <wsdl:output>
>        <soap:body use="literal"/>
>      </wsdl:output>
>    </wsdl:operation>
>    <wsdl:operation name="AnalyzeType03">
>      <soap:operation
> soapAction="
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
> ype03" style="document"/>
>      <wsdl:input>
>        <soap:body use="literal"/>
>      </wsdl:input>
>      <wsdl:output>
>        <soap:body use="literal"/>
>      </wsdl:output>
>    </wsdl:operation>
>    <wsdl:operation name="AnalyzeType04">
>      <soap:operation
> soapAction="
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
> ype04" style="document"/>
>      <wsdl:input>
>        <soap:body use="literal"/>
>      </wsdl:input>
>      <wsdl:output>
>        <soap:body use="literal"/>
>      </wsdl:output>
>    </wsdl:operation>
>    <wsdl:operation name="RefreshSSGList">
>      <soap:operation
> soapAction="
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/RefreshS
> SGList" style="document"/>
>      <wsdl:input>
>        <soap:body use="literal"/>
>      </wsdl:input>
>      <wsdl:output>
>        <soap:body use="literal"/>
>      </wsdl:output>
>    </wsdl:operation>
>    <wsdl:operation name="RefreshLicenceTable">
>      <soap:operation
> soapAction="
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/RefreshL
> icenceTable" style="document"/>
>      <wsdl:input>
>        <soap:body use="literal"/>
>      </wsdl:input>
>      <wsdl:output>
>        <soap:body use="literal"/>
>      </wsdl:output>
>    </wsdl:operation>
>  </wsdl:binding>
>  <wsdl:service name="NazukiWebService">
>    <wsdl:port name="NazukiWebServiceSoap"
> binding="tns:NazukiWebServiceSoap">
>      <soap:address
> location="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx"/>
>    </wsdl:port>
>    <wsdl:port name="NazukiWebServiceSoap12"
> binding="tns:NazukiWebServiceSoap12">
>      <soap12:address
> location="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx"/>
>    </wsdl:port>
>  </wsdl:service>
> </wsdl:definitions>
>
> and services.xml like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- This file was auto-generated from WSDL -->
> <!-- by the Apache Axis2 version: #axisVersion# #today# -->
> <serviceGroup>
>    <service name="NazukiWebService">
>        <messageReceivers>
>            <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
> class="jp.nazuki.amp.application.pad.NazukiWebServiceMessageReceiverInOut
> "/>
>        </messageReceivers>
>        <parameter locked="false"
> name="ServiceClass">jp.nazuki.amp.application.pad.NazukiWebServiceSkeleton
> </
> parameter>
>        <operation name="AnalyzeType02"
> mep="http://www.w3.org/2004/08/wsdl/in-out">
>
> <actionMapping>
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/Analy
> zeType02</actionMapping>
>
> <outputActionMapping>
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx
> /NazukiWebServiceSoap/AnalyzeType02Response</outputActionMapping>
>        </operation>
>        <operation name="AnalyzeType01"
> mep="http://www.w3.org/2004/08/wsdl/in-out">
>
> <actionMapping>
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/Analy
> zeType01</actionMapping>
>
> <outputActionMapping>
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx
> /NazukiWebServiceSoap/AnalyzeType01Response</outputActionMapping>
>        </operation>
>        <operation name="AnalyzeType03"
> mep="http://www.w3.org/2004/08/wsdl/in-out">
>
> <actionMapping>
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/Analy
> zeType03</actionMapping>
>
> <outputActionMapping>
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx
> /NazukiWebServiceSoap/AnalyzeType03Response</outputActionMapping>
>        </operation>
>        <operation name="AnalyzeType04"
> mep="http://www.w3.org/2004/08/wsdl/in-out">
>
> <actionMapping>
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/Analy
> zeType04</actionMapping>
>
> <outputActionMapping>
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx
> /NazukiWebServiceSoap/AnalyzeType04Response</outputActionMapping>
>        </operation>
>        <operation name="RefreshLicenceTable"
> mep="http://www.w3.org/2004/08/wsdl/in-out">
>
> <actionMapping>
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/Refre
> shLicenceTable</actionMapping>
>
> <outputActionMapping>
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx
> /NazukiWebServiceSoap/RefreshLicenceTableResponse</outputActionMapping>
>        </operation>
>        <operation name="RefreshSSGList"
> mep="http://www.w3.org/2004/08/wsdl/in-out">
>
> <actionMapping>
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/Refre
> shSSGList</actionMapping>
>
> <outputActionMapping>
> http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx
> /NazukiWebServiceSoap/RefreshSSGListResponse</outputActionMapping>
>        </operation>
>    </service>
> </serviceGroup>
>
> If there are any other necessary information, please point out.
>
> Thanks,
> Kengo
>
> ------------------------------------------
>
> From: keith chapman [mailto:keithgchapman@gmail.com]
> Sent: Thursday, November 22, 2007 5:26 PM
> To: axis-user@ws.apache.org
> Subject: Re: Accessing WSDL causes NullPointerException (on .NET to Axis2
> migration)
>
> Can you send the created aar so that We can check what's going on.
>
> Thanks,
> Keith.
> On Nov 22, 2007 1:46 PM, <se...@nttdata.co.jp> wrote:
> Hello,
>
> I'm trying to switch my web service created using .NET to Axis2.
>
> At first, I've generated server-side skeleton codes from currently
> publishing WSDL by wsdl2java.
>
> Next, I've built .aar file using generated ant file and upload it to the
> server through Axis2 administration site.
> (Business logic was not implemented at that point, because I only wanted
> to
> make sure it works)
> On the administration page, the service looks available and activated.
> And I've made sure .aar contains WSDL file in META-INF directory.
>
> At last, accessing new WSDL causes the exception below:
>
> org.apache.axis2.AxisFault
>  at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>  at
> org.apache.axis2.description.AxisService.getWSDL (AxisService.java:1148)
>  at
> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1077)
>  at
> org.apache.axis2.transport.http.ListingAgent.processListService
> (ListingAgent
> .java:280)
>  at
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:229)
>  at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.
> jar.so)
>  at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.
> jar.so)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (catalina-5.
> 5.23.jar.soa01s4g.so)
>  at org.apache.catalina.core.ApplicationFilterChain.doFilter (catalina-5.5
> .
> 23.jar.soa01s4g.so)
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(
> catalina-5.5.23.jar.soa
> 01s4g.so)
>  at
> org.apache.catalina.core.StandardContextValve.invoke
> (catalina-5.5.23.jar.soa
> 01s4g.so)
>  at org.apache.catalina.core.StandardHostValve.invoke(catalina-5.5.23.jar.
> soa01s4g.so)
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke(
> catalina-5.5.23.jar.soa01
> s4g.so)
>  at
> org.apache.catalina.core.StandardEngineValve.invoke(
> catalina-5.5.23.jar.soa0
> 1s4g.so)
>  at
> org.apache.catalina.connector.CoyoteAdapter.service(
> catalina-5.5.23.jar.soa0
> 1s4g.so)
>  at
> org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.23.jar.so
> )
>  at
>
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
> onnection(tomcat-http-5.5.23.jar.so)
>  at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> tomcat-util-5.5.23.
> jar.so)
>  at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> (tomcat-util-5.5.
> 23.jar.so)
>  at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (tomcat-util-5.
> 5.23.jar.so )
>  at java.lang.Thread.run(libgcj.so.7rh)
> Caused by: java.lang.NullPointerException
>  at
> org.apache.axiom.om.impl.util.OMSerializerUtil.generateSetPrefix
> (OMSerialize
> rUtil.java:560)
>  at
> org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart
> (OMSerializ
> erUtil.java:273)
>  at
> org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart
> (OMSerializ
> erUtil.java:172)
>  at
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize
> (OMElementImpl.
> java:768)
>  at
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize
> (OMElementImpl.
> java:756)
>  at
> org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:345)
>  at
> org.apache.axiom.om.impl.llom.OMNodeImpl.serialize (OMNodeImpl.java:383)
>  at org.apache.axis2.util.XMLPrettyPrinter.prettify(XMLPrettyPrinter.java:
> 135)
>  at
> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:1144)
>  ...19 more
>
> What was wrong?
> I'm using Axis2 1.3, Tomcat 5.5.20 and JDK1.5.0_06.
>
> Thanks in advance
> Kengo Seki
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
> --
> Keith Chapman
> WSO2 Inc.
> Oxygen for Web Services Developers.
> http://wso2.org/
>



-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/

RE: Accessing WSDL causes NullPointerException (on .NET to Axis2 migration)

Posted by se...@nttdata.co.jp.
Hello Keith,

Thank you for your fast reply.
Though I tried to send my aar file to the mailing list several times, my
posts ware rejected with below SMTP error...

	552 Message rejected as it is spam (body)

So, I will describe my aar contents.

At first, directory structure is like this:

NazukiWebService.aar
├─jp
│  └─nazuki
│      ├─adcentric
│      │  └─soap
│      │      └─v2
│      │          └─analyze
│      │              └─service_asmx
│      │                      AnalyzeType01$1.class
│      │                      AnalyzeType01$Factory.class
│      │                      AnalyzeType01.class
│      │                      AnalyzeType01Response$1.class
│      │                      AnalyzeType01Response$Factory.class
│      │                      AnalyzeType01Response.class
│      │                      AnalyzeType02$1.class
│      │                      AnalyzeType02$Factory.class
│      │                      AnalyzeType02.class
│      │                      AnalyzeType02Response$1.class
│      │                      AnalyzeType02Response$Factory.class
│      │                      AnalyzeType02Response.class
│      │                      AnalyzeType03$1.class
│      │                      AnalyzeType03$Factory.class
│      │                      AnalyzeType03.class
│      │                      AnalyzeType03Response$1.class
│      │                      AnalyzeType03Response$Factory.class
│      │                      AnalyzeType03Response.class
│      │                      AnalyzeType04$1.class
│      │                      AnalyzeType04$Factory.class
│      │                      AnalyzeType04.class
│      │                      AnalyzeType04Response$1.class
│      │                      AnalyzeType04Response$Factory.class
│      │                      AnalyzeType04Response.class
│      │                      ArrayOfAnyType$1.class
│      │                      ArrayOfAnyType$Factory.class
│      │                      ArrayOfAnyType.class
│      │                      ArrayOfCategory$1.class
│      │                      ArrayOfCategory$Factory.class
│      │                      ArrayOfCategory.class
│      │                      ArrayOfKeyword$1.class
│      │                      ArrayOfKeyword$Factory.class
│      │                      ArrayOfKeyword.class
│      │                      Category$1.class
│      │                      Category$Factory.class
│      │                      Category.class
│      │                      ExtensionMapper.class
│      │                      Keyword$1.class
│      │                      Keyword$Factory.class
│      │                      Keyword.class
│      │                      RefreshLicenceTable$1.class
│      │                      RefreshLicenceTable$Factory.class
│      │                      RefreshLicenceTable.class
│      │                      RefreshLicenceTableResponse$1.class
│      │                      RefreshLicenceTableResponse$Factory.class
│      │                      RefreshLicenceTableResponse.class
│      │                      RefreshSSGList$1.class
│      │                      RefreshSSGList$Factory.class
│      │                      RefreshSSGList.class
│      │                      RefreshSSGListResponse$1.class
│      │                      RefreshSSGListResponse$Factory.class
│      │                      RefreshSSGListResponse.class
│      │                      Type01Result$1.class
│      │                      Type01Result$Factory.class
│      │                      Type01Result.class
│      │                      Type02Result$1.class
│      │                      Type02Result$Factory.class
│      │                      Type02Result.class
│      │                      Type03Result$1.class
│      │                      Type03Result$Factory.class
│      │                      Type03Result.class
│      │
│      └─amp
│          └─application
│              └─pad
│                      NazukiWebServiceMessageReceiverInOut.class
│                      NazukiWebServiceSkeleton.class
│
└─META-INF
        MANIFEST.MF
        NazukiWebService.wsdl
        services.xml

and NazukiWebService.wsdl is like this:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/">
  <wsdl:types>
    <s:schema elementFormDefault="qualified"
targetNamespace="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx">
      <s:element name="AnalyzeType01">
        <s:complexType>
          <s:sequence>
            <s:element maxOccurs="1" minOccurs="0" name="License"
type="s:string"/>
            <s:element maxOccurs="1" minOccurs="0" name="URL"
type="s:string"/>
            <s:element maxOccurs="1" minOccurs="0" name="Text"
type="s:string"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="AnalyzeType01Response">
        <s:complexType>
          <s:sequence>
            <s:element maxOccurs="1" minOccurs="0"
name="AnalyzeType01Result" type="tns:Type01Result"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="Type01Result">
        <s:sequence>
          <s:element maxOccurs="1" minOccurs="0" name="ReturnCode"
type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="CategoryID"
type="s:string"/>
        </s:sequence>
      </s:complexType>
      <s:element name="AnalyzeType02">
        <s:complexType>
          <s:sequence>
            <s:element maxOccurs="1" minOccurs="0" name="License"
type="s:string"/>
            <s:element maxOccurs="1" minOccurs="0" name="URL"
type="s:string"/>
            <s:element maxOccurs="1" minOccurs="0" name="Text"
type="s:string"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="AnalyzeType02Response">
        <s:complexType>
          <s:sequence>
            <s:element maxOccurs="1" minOccurs="0"
name="AnalyzeType02Result" type="tns:Type02Result"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="Type02Result">
        <s:sequence>
          <s:element maxOccurs="1" minOccurs="0" name="ReturnCode"
type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="CategoryList"
type="tns:ArrayOfCategory"/>
        </s:sequence>
      </s:complexType>
      <s:complexType name="ArrayOfCategory">
        <s:sequence>
          <s:element maxOccurs="unbounded" minOccurs="0" name="Category"
nillable="true" type="tns:Category"/>
        </s:sequence>
      </s:complexType>
      <s:complexType name="Category">
        <s:sequence>
          <s:element maxOccurs="1" minOccurs="0" name="ID" type="s:string"/>
        </s:sequence>
      </s:complexType>
      <s:element name="AnalyzeType03">
        <s:complexType>
          <s:sequence>
            <s:element maxOccurs="1" minOccurs="0" name="License"
type="s:string"/>
            <s:element maxOccurs="1" minOccurs="0" name="URL"
type="s:string"/>
            <s:element maxOccurs="1" minOccurs="0" name="Text"
type="s:string"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="AnalyzeType03Response">
        <s:complexType>
          <s:sequence>
            <s:element maxOccurs="1" minOccurs="0"
name="AnalyzeType03Result" type="tns:Type03Result"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="Type03Result">
        <s:sequence>
          <s:element maxOccurs="1" minOccurs="0" name="ReturnCode"
type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="KeywordList"
type="tns:ArrayOfKeyword"/>
          <s:element maxOccurs="1" minOccurs="0" name="CategoryList"
type="tns:ArrayOfCategory"/>
        </s:sequence>
      </s:complexType>
      <s:complexType name="ArrayOfKeyword">
        <s:sequence>
          <s:element maxOccurs="unbounded" minOccurs="0" name="Keyword"
nillable="true" type="tns:Keyword"/>
        </s:sequence>
      </s:complexType>
      <s:complexType name="Keyword">
        <s:sequence>
          <s:element maxOccurs="1" minOccurs="0" name="Text"
type="s:string"/>
        </s:sequence>
      </s:complexType>
      <s:element name="AnalyzeType04">
        <s:complexType>
          <s:sequence>
            <s:element maxOccurs="1" minOccurs="0" name="License"
type="s:string"/>
            <s:element maxOccurs="1" minOccurs="0" name="URL"
type="s:string"/>
            <s:element maxOccurs="1" minOccurs="0" name="Text"
type="s:string"/>
            <s:element maxOccurs="1" minOccurs="0" name="Tag"
type="s:string"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="AnalyzeType04Response">
        <s:complexType>
          <s:sequence>
            <s:element maxOccurs="1" minOccurs="0"
name="AnalyzeType04Result" type="tns:Type03Result"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="RefreshSSGList">
        <s:complexType>
          <s:sequence>
            <s:element maxOccurs="1" minOccurs="0" name="License"
type="s:string"/>
            <s:element maxOccurs="1" minOccurs="0" name="Address"
type="s:string"/>
            <s:element maxOccurs="1" minOccurs="0" name="Operation"
type="s:string"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="RefreshSSGListResponse">
        <s:complexType>
          <s:sequence>
            <s:element maxOccurs="1" minOccurs="0"
name="RefreshSSGListResult" type="tns:ArrayOfAnyType"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ArrayOfAnyType">
        <s:sequence>
          <s:element maxOccurs="unbounded" minOccurs="0" name="anyType"
nillable="true"/>
        </s:sequence>
      </s:complexType>
      <s:element name="RefreshLicenceTable">
        <s:complexType>
          <s:sequence>
            <s:element maxOccurs="1" minOccurs="0" name="License"
type="s:string"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="RefreshLicenceTableResponse">
        <s:complexType>
          <s:sequence>
            <s:element maxOccurs="1" minOccurs="0"
name="RefreshLicenceTableResult" type="tns:ArrayOfAnyType"/>
          </s:sequence>
        </s:complexType>
      </s:element>
    </s:schema>
  </wsdl:types>
  <wsdl:message name="RefreshLicenceTableSoapIn">
    <wsdl:part name="parameters" element="tns:RefreshLicenceTable">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="RefreshSSGListSoapOut">
    <wsdl:part name="parameters" element="tns:RefreshSSGListResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="RefreshLicenceTableSoapOut">
    <wsdl:part name="parameters" element="tns:RefreshLicenceTableResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="AnalyzeType02SoapOut">
    <wsdl:part name="parameters" element="tns:AnalyzeType02Response">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="RefreshSSGListSoapIn">
    <wsdl:part name="parameters" element="tns:RefreshSSGList">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="AnalyzeType01SoapOut">
    <wsdl:part name="parameters" element="tns:AnalyzeType01Response">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="AnalyzeType01SoapIn">
    <wsdl:part name="parameters" element="tns:AnalyzeType01">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="AnalyzeType02SoapIn">
    <wsdl:part name="parameters" element="tns:AnalyzeType02">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="AnalyzeType04SoapIn">
    <wsdl:part name="parameters" element="tns:AnalyzeType04">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="AnalyzeType03SoapIn">
    <wsdl:part name="parameters" element="tns:AnalyzeType03">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="AnalyzeType04SoapOut">
    <wsdl:part name="parameters" element="tns:AnalyzeType04Response">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="AnalyzeType03SoapOut">
    <wsdl:part name="parameters" element="tns:AnalyzeType03Response">
    </wsdl:part>
  </wsdl:message>
  <wsdl:portType name="NazukiWebServiceSoap">
    <wsdl:operation name="AnalyzeType01">
      <wsdl:input message="tns:AnalyzeType01SoapIn">
    </wsdl:input>
      <wsdl:output message="tns:AnalyzeType01SoapOut">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="AnalyzeType02">
      <wsdl:input message="tns:AnalyzeType02SoapIn">
    </wsdl:input>
      <wsdl:output message="tns:AnalyzeType02SoapOut">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="AnalyzeType03">
      <wsdl:input message="tns:AnalyzeType03SoapIn">
    </wsdl:input>
      <wsdl:output message="tns:AnalyzeType03SoapOut">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="AnalyzeType04">
      <wsdl:input message="tns:AnalyzeType04SoapIn">
    </wsdl:input>
      <wsdl:output message="tns:AnalyzeType04SoapOut">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="RefreshSSGList">
      <wsdl:input message="tns:RefreshSSGListSoapIn">
    </wsdl:input>
      <wsdl:output message="tns:RefreshSSGListSoapOut">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="RefreshLicenceTable">
      <wsdl:input message="tns:RefreshLicenceTableSoapIn">
    </wsdl:input>
      <wsdl:output message="tns:RefreshLicenceTableSoapOut">
    </wsdl:output>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="NazukiWebServiceSoap12"
type="tns:NazukiWebServiceSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="AnalyzeType01">
      <soap12:operation
soapAction="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
ype01" style="document"/>
      <wsdl:input>
        <soap12:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="AnalyzeType02">
      <soap12:operation
soapAction="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
ype02" style="document"/>
      <wsdl:input>
        <soap12:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="AnalyzeType03">
      <soap12:operation
soapAction="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
ype03" style="document"/>
      <wsdl:input>
        <soap12:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="AnalyzeType04">
      <soap12:operation
soapAction="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
ype04" style="document"/>
      <wsdl:input>
        <soap12:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="RefreshSSGList">
      <soap12:operation
soapAction="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/RefreshS
SGList" style="document"/>
      <wsdl:input>
        <soap12:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="RefreshLicenceTable">
      <soap12:operation
soapAction="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/RefreshL
icenceTable" style="document"/>
      <wsdl:input>
        <soap12:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="NazukiWebServiceSoap" type="tns:NazukiWebServiceSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="AnalyzeType01">
      <soap:operation
soapAction="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
ype01" style="document"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="AnalyzeType02">
      <soap:operation
soapAction="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
ype02" style="document"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="AnalyzeType03">
      <soap:operation
soapAction="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
ype03" style="document"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="AnalyzeType04">
      <soap:operation
soapAction="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/AnalyzeT
ype04" style="document"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="RefreshSSGList">
      <soap:operation
soapAction="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/RefreshS
SGList" style="document"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="RefreshLicenceTable">
      <soap:operation
soapAction="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/RefreshL
icenceTable" style="document"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="NazukiWebService">
    <wsdl:port name="NazukiWebServiceSoap"
binding="tns:NazukiWebServiceSoap">
      <soap:address
location="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx"/>
    </wsdl:port>
    <wsdl:port name="NazukiWebServiceSoap12"
binding="tns:NazukiWebServiceSoap12">
      <soap12:address
location="http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

and services.xml like this:

<?xml version="1.0" encoding="UTF-8"?>
<!-- This file was auto-generated from WSDL -->
<!-- by the Apache Axis2 version: #axisVersion# #today# -->
<serviceGroup>
    <service name="NazukiWebService">
        <messageReceivers>
            <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="jp.nazuki.amp.application.pad.NazukiWebServiceMessageReceiverInOut"/>
        </messageReceivers>
        <parameter locked="false"
name="ServiceClass">jp.nazuki.amp.application.pad.NazukiWebServiceSkeleton</
parameter>
        <operation name="AnalyzeType02"
mep="http://www.w3.org/2004/08/wsdl/in-out">
 
<actionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/Analy
zeType02</actionMapping>
 
<outputActionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx
/NazukiWebServiceSoap/AnalyzeType02Response</outputActionMapping>
        </operation>
        <operation name="AnalyzeType01"
mep="http://www.w3.org/2004/08/wsdl/in-out">
 
<actionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/Analy
zeType01</actionMapping>
 
<outputActionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx
/NazukiWebServiceSoap/AnalyzeType01Response</outputActionMapping>
        </operation>
        <operation name="AnalyzeType03"
mep="http://www.w3.org/2004/08/wsdl/in-out">
 
<actionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/Analy
zeType03</actionMapping>
 
<outputActionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx
/NazukiWebServiceSoap/AnalyzeType03Response</outputActionMapping>
        </operation>
        <operation name="AnalyzeType04"
mep="http://www.w3.org/2004/08/wsdl/in-out">
 
<actionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/Analy
zeType04</actionMapping>
 
<outputActionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx
/NazukiWebServiceSoap/AnalyzeType04Response</outputActionMapping>
        </operation>
        <operation name="RefreshLicenceTable"
mep="http://www.w3.org/2004/08/wsdl/in-out">
 
<actionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/Refre
shLicenceTable</actionMapping>
 
<outputActionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx
/NazukiWebServiceSoap/RefreshLicenceTableResponse</outputActionMapping>
        </operation>
        <operation name="RefreshSSGList"
mep="http://www.w3.org/2004/08/wsdl/in-out">
 
<actionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx/Refre
shSSGList</actionMapping>
 
<outputActionMapping>http://adcentric.nazuki.jp/soap/v2/Analyze/Service.asmx
/NazukiWebServiceSoap/RefreshSSGListResponse</outputActionMapping>
        </operation>
    </service>
</serviceGroup>

If there are any other necessary information, please point out.

Thanks,
Kengo

------------------------------------------

From: keith chapman [mailto:keithgchapman@gmail.com] 
Sent: Thursday, November 22, 2007 5:26 PM
To: axis-user@ws.apache.org
Subject: Re: Accessing WSDL causes NullPointerException (on .NET to Axis2
migration)

Can you send the created aar so that We can check what's going on.

Thanks,
Keith.
On Nov 22, 2007 1:46 PM, <se...@nttdata.co.jp> wrote: 
Hello,

I'm trying to switch my web service created using .NET to Axis2.

At first, I've generated server-side skeleton codes from currently
publishing WSDL by wsdl2java.

Next, I've built .aar file using generated ant file and upload it to the
server through Axis2 administration site. 
(Business logic was not implemented at that point, because I only wanted to
make sure it works)
On the administration page, the service looks available and activated.
And I've made sure .aar contains WSDL file in META-INF directory. 

At last, accessing new WSDL causes the exception below:

org.apache.axis2.AxisFault
  at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
  at
org.apache.axis2.description.AxisService.getWSDL (AxisService.java:1148)
  at
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1077)
  at
org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent
.java:280)
  at 
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:229)
  at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.
jar.so)
  at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23 .
jar.so)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina-5.
5.23.jar.soa01s4g.so)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter (catalina-5.5.
23.jar.soa01s4g.so)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(catalina-5.5.23.jar.soa
01s4g.so)
  at
org.apache.catalina.core.StandardContextValve.invoke
(catalina-5.5.23.jar.soa
01s4g.so)
  at org.apache.catalina.core.StandardHostValve.invoke(catalina-5.5.23.jar.
soa01s4g.so)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.23.jar.soa01
s4g.so)
  at
org.apache.catalina.core.StandardEngineValve.invoke(catalina-5.5.23.jar.soa0
1s4g.so)
  at
org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.23.jar.soa0
1s4g.so)
  at 
org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.23.jar.so)
  at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(tomcat-http-5.5.23.jar.so)
  at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.23.
jar.so)
  at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(tomcat-util-5.5.
23.jar.so)
  at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.
5.23.jar.so )
  at java.lang.Thread.run(libgcj.so.7rh)
Caused by: java.lang.NullPointerException
  at
org.apache.axiom.om.impl.util.OMSerializerUtil.generateSetPrefix(OMSerialize
rUtil.java:560)
  at
org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart
(OMSerializ
erUtil.java:273)
  at
org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart(OMSerializ
erUtil.java:172)
  at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.
java:768)
  at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.
java:756)
  at
org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:345)
  at
org.apache.axiom.om.impl.llom.OMNodeImpl.serialize (OMNodeImpl.java:383)
  at org.apache.axis2.util.XMLPrettyPrinter.prettify(XMLPrettyPrinter.java:
135)
  at
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:1144)
  ...19 more

What was wrong? 
I'm using Axis2 1.3, Tomcat 5.5.20 and JDK1.5.0_06.

Thanks in advance
Kengo Seki

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



-- 
Keith Chapman 
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/ 

Re: Accessing WSDL causes NullPointerException (on .NET to Axis2 migration)

Posted by keith chapman <ke...@gmail.com>.
Can you send the created aar so that We can check what's going on.

Thanks,
Keith.

On Nov 22, 2007 1:46 PM, <se...@nttdata.co.jp> wrote:

> Hello,
>
> I'm trying to switch my web service created using .NET to Axis2.
>
> At first, I've generated server-side skeleton codes from currently
> publishing WSDL by wsdl2java.
>
> Next, I've built .aar file using generated ant file and upload it to the
> server through Axis2 administration site.
> (Business logic was not implemented at that point, because I only wanted
> to
> make sure it works)
> On the administration page, the service looks available and activated.
> And I've made sure .aar contains WSDL file in META-INF directory.
>
> At last, accessing new WSDL causes the exception below:
>
> org.apache.axis2.AxisFault
>   at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>   at
> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:1148)
>   at
> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1077)
>   at
> org.apache.axis2.transport.http.ListingAgent.processListService
> (ListingAgent
> .java:280)
>   at
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:229)
>   at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23
> .
> jar.so)
>   at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23
> .
> jar.so)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (catalina-5.
> 5.23.jar.soa01s4g.so)
>   at org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina-5.5
> .
> 23.jar.soa01s4g.so)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(
> catalina-5.5.23.jar.soa
> 01s4g.so)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(
> catalina-5.5.23.jar.soa
> 01s4g.so)
>   at org.apache.catalina.core.StandardHostValve.invoke(catalina-5.5.23.jar
> .
> soa01s4g.so)
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(
> catalina-5.5.23.jar.soa01
> s4g.so)
>   at
> org.apache.catalina.core.StandardEngineValve.invoke(
> catalina-5.5.23.jar.soa0
> 1s4g.so)
>   at
> org.apache.catalina.connector.CoyoteAdapter.service(
> catalina-5.5.23.jar.soa0
> 1s4g.so)
>   at
> org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.23.jar.so
> )
>   at
>
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
> onnection(tomcat-http-5.5.23.jar.so)
>   at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> tomcat-util-5.5.23.
> jar.so)
>   at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> tomcat-util-5.5.
> 23.jar.so)
>   at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (tomcat-util-5.
> 5.23.jar.so)
>   at java.lang.Thread.run(libgcj.so.7rh)
> Caused by: java.lang.NullPointerException
>   at
> org.apache.axiom.om.impl.util.OMSerializerUtil.generateSetPrefix
> (OMSerialize
> rUtil.java:560)
>   at
> org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart
> (OMSerializ
> erUtil.java:273)
>   at
> org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart
> (OMSerializ
> erUtil.java:172)
>   at
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize
> (OMElementImpl.
> java:768)
>   at
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize
> (OMElementImpl.
> java:756)
>   at
> org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:345)
>   at
> org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:383)
>   at org.apache.axis2.util.XMLPrettyPrinter.prettify(XMLPrettyPrinter.java
> :
> 135)
>   at
> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:1144)
>   ...19 more
>
> What was wrong?
> I'm using Axis2 1.3, Tomcat 5.5.20 and JDK1.5.0_06.
>
> Thanks in advance
> Kengo Seki
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/