What is the Axis2 version that your using? Looks like an issue in
dispatching.

Thanks,
Keith.

On Tue, Jul 22, 2008 at 12:49 AM, Walker, Carleton <
[EMAIL PROTECTED]> wrote:

>  Hi,
>
> I have an Axis2 web service working in Tomcat that I've ported to
> WebLogic.  However, when I access the service, I get the following
> NullPointerException.
>
> java.lang.NullPointerException
>         at
> org.apache.axis2.engine.AbstractDispatcher.invoke(AbstractDispatcher.java:122)
>         at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
>         at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
>         at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>         at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>         at
> weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
>         at
> weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
>         at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
>         at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
>         at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3231)
>         at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
>         at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
>         at
> weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2002)
>         at
> weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1908)
>         at
> weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1362)
>         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
>         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
>
> The following is the WSDL I'm using.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="
> http://ncs.clt.nasd.com/FF_WServices/FFNCS.wsdl"; xmlns:axis2="
> http://ncs.clt.nasd.com/FF_WServices/FFNCS.wsdl"; xmlns:wsdl="
> http://schemas.xmlsoap.org/wsdl/"; xmlns:tns="
> http://ncs.clt.nasd.com/FF_WServices/FFNCS"; xmlns:http="
> http://schemas.xmlsoap.org/wsdl/http/"; xmlns:xs="
> http://www.w3.org/2001/XMLSchema"; 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>
>     <xs:schema elementFormDefault="qualified" targetNamespace="
> http://ncs.clt.nasd.com/FF_WServices/FFNCS"; xmlns:xs="
> http://www.w3.org/2001/XMLSchema";>
>
>         <xs:element name="GetNCSContactsByRole">
>                 <xs:complexType>
>                         <xs:sequence>
>                                 <xs:element maxOccurs="1" minOccurs="0"
> name="strRequests" type="xs:string"/>
>                         </xs:sequence>
>                 </xs:complexType>
>
>         </xs:element>
>         <xs:element name="GetNCSContactsByRoleResponse">
>                 <xs:complexType>
>                         <xs:sequence>
>                                 <xs:element maxOccurs="1" minOccurs="0"
> name="GetNCSContactsByRoleResult" type="xs:string"/>
>
>                         </xs:sequence>
>                 </xs:complexType>
>         </xs:element>
>     </xs:schema>
>     <xs:schema elementFormDefault="qualified" targetNamespace="
> http://ncs.clt.nasd.com/FF_WServices/NCSContactRequests.xsd"; xmlns="
> http://ncs.clt.nasd.com/FF_WServices/NCSContactRequests.xsd"; xmlns:xs="
> http://www.w3.org/2001/XMLSchema";>
>
>         <!-- Schema to validate the request to NCSContact webservice -->
>         <xs:element name="ContactRequests">
>                 <xs:complexType>
>                         <xs:sequence maxOccurs="unbounded">
>                                 <xs:element name="ContactRequest"
> type="ContactRequestType"/>
>                         </xs:sequence>
>                 </xs:complexType>
>         </xs:element>
>         <xs:complexType name="ContactRequestType">
>                 <xs:attribute name="type" type="feedType" use="required"/>
>                 <xs:attribute name="roleCd" type="xs:string"
> use="required"/>
>                 <xs:attribute name="fromDt" type="xs:dateTime"
> use="optional"/>
>                 <xs:attribute name="toDt" type="xs:dateTime"
> use="optional"/>
>         </xs:complexType>
>         <xs:simpleType name="feedType">
>                 <xs:restriction base="xs:NMTOKEN">
>                         <xs:enumeration value="FULL"/>
>                         <xs:enumeration value="DELTA"/>
>                 </xs:restriction>
>         </xs:simpleType>
>     </xs:schema>
>     <xs:schema elementFormDefault="qualified" targetNamespace="
> http://ncs.clt.nasd.com/FF_WServices/NCSContactResponses.xsd"; xmlns="
> http://ncs.clt.nasd.com/FF_WServices/NCSContactResponses.xsd"; xmlns:xs="
> http://www.w3.org/2001/XMLSchema";>
>
>         <!-- Schema to validate the Response to NCSContact webservice -->
>         <xs:element name="ContactResponses">
>                 <xs:complexType>
>                         <xs:sequence maxOccurs="unbounded">
>                                 <xs:element name="ContactResponse"
> type="ContactResponseType"/>
>                         </xs:sequence>
>                 </xs:complexType>
>         </xs:element>
>         <xs:complexType name="ContactResponseType">
>                 <xs:sequence>
>                         <xs:element maxOccurs="unbounded" minOccurs="0"
> name="Contact" type="ContactType"/>
>                 </xs:sequence>
>                 <xs:attribute name="type" type="feedType" use="required"/>
>                 <xs:attribute name="roleCd" type="xs:string"
> use="required"/>
>                 <xs:attribute name="fromDt" type="xs:dateTime"
> use="required"/>
>                 <xs:attribute name="toDt" type="xs:dateTime"
> use="required"/>
>                 <xs:attribute name="rowCount" use="required">
>                         <xs:simpleType>
>                                 <xs:restriction base="xs:integer">
>                                         <xs:minInclusive value="0"/>
>                                 </xs:restriction>
>                         </xs:simpleType>
>                 </xs:attribute>
>                 <xs:attribute name="errorCd" use="required">
>                         <xs:simpleType>
>                                 <xs:restriction base="xs:string">
>                                         <xs:minLength value="1"/>
>                                 </xs:restriction>
>                         </xs:simpleType>
>                 </xs:attribute>
>                 <xs:attribute name="errorTxt" type="xs:string"
> use="optional"/>
>         </xs:complexType>
>         <xs:simpleType name="feedType">
>                 <xs:restriction base="xs:NMTOKEN">
>                         <xs:enumeration value="FULL"/>
>                         <xs:enumeration value="DELTA"/>
>                 </xs:restriction>
>         </xs:simpleType>
>         <xs:complexType name="ContactType">
>                 <xs:attribute name="actionCd" type="actionCodeType"
> use="required"/>
>                 <xs:attribute name="actionTS" type="xs:dateTime"
> use="required"/>
>                 <xs:attribute name="contactID" use="required">
>                         <xs:simpleType>
>                                 <xs:restriction base="xs:integer">
>                                         <xs:totalDigits value="12"/>
>                                         <xs:minExclusive value="0"/>
>                                 </xs:restriction>
>                         </xs:simpleType>
>                 </xs:attribute>
>                 <xs:attribute name="firmCRD" use="required">
>                         <xs:simpleType>
>                                 <xs:restriction base="xs:integer">
>                                         <xs:totalDigits value="8"/>
>                                         <xs:minExclusive value="0"/>
>                                 </xs:restriction>
>                         </xs:simpleType>
>                 </xs:attribute>
>                 <xs:attribute name="lastNm" use="required">
>                         <xs:simpleType>
>                                 <xs:restriction base="xs:string">
>                                         <xs:minLength value="1"/>
>                                         <xs:maxLength value="25"/>
>                                 </xs:restriction>
>                         </xs:simpleType>
>                 </xs:attribute>
>                 <xs:attribute name="firstNm" use="required">
>                         <xs:simpleType>
>                                 <xs:restriction base="xs:string">
>                                         <xs:minLength value="1"/>
>                                         <xs:maxLength value="25"/>
>                                 </xs:restriction>
>                         </xs:simpleType>
>                 </xs:attribute>
>                 <xs:attribute name="midNm" use="optional">
>                         <xs:simpleType>
>                                 <xs:restriction base="xs:string">
>                                         <xs:minLength value="0"/>
>                                         <xs:maxLength value="20"/>
>                                 </xs:restriction>
>                         </xs:simpleType>
>                 </xs:attribute>
>                 <xs:attribute name="sufNm" use="optional">
>                         <xs:simpleType>
>                                 <xs:restriction base="xs:string">
>                                         <xs:minLength value="0"/>
>                                         <xs:maxLength value="5"/>
>                                 </xs:restriction>
>                         </xs:simpleType>
>                 </xs:attribute>
>                 <xs:attribute name="phone" type="xs:string"
> use="required"/>
>                 <xs:attribute name="email" type="xs:string"
> use="required"/>
>         </xs:complexType>
>         <xs:simpleType name="actionCodeType">
>                 <xs:restriction base="xs:NMTOKEN">
>                         <xs:enumeration value="ADD"/>
>                         <xs:enumeration value="UPD"/>
>                         <xs:enumeration value="DEL"/>
>                 </xs:restriction>
>         </xs:simpleType>
>     </xs:schema>
>   </wsdl:types>
>   <wsdl:message name="contactRequestMessage">
>     <wsdl:part name="parameters" element="tns:GetNCSContactsByRole">
>     </wsdl:part>
>   </wsdl:message>
>   <wsdl:message name="contactResponseMessage">
>     <wsdl:part name="parameters"
> element="tns:GetNCSContactsByRoleResponse">
>     </wsdl:part>
>   </wsdl:message>
>   <wsdl:portType name="FFNCSPortType">
>     <wsdl:operation name="GetNCSContactsByRole">
>       <wsdl:input message="axis2:contactRequestMessage">
>     </wsdl:input>
>       <wsdl:output message="axis2:contactResponseMessage">
>     </wsdl:output>
>     </wsdl:operation>
>   </wsdl:portType>
>   <wsdl:binding name="FFNCSSOAP" type="axis2:FFNCSPortType">
>     <soap:binding style="document" transport="
> http://schemas.xmlsoap.org/soap/http"/>
>     <wsdl:operation name="GetNCSContactsByRole">
>       <soap:operation soapAction="
> http://rkv-rptn-orad1:9004/axis2/services/FFNCS/GetNCSContactsByRole";
> 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="FFNCS">
> <documentation xmlns="http://schemas.xmlsoap.org/wsdl/";>Regualtion Filing
> Applications Web Services</documentation>
>     <wsdl:port name="FFNCSSOAP" binding="axis2:FFNCSSOAP">
>       <soap:address location="
> http://150.123.75.121:9004/axis2/services/FFNCS"/>
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
>
> Confidentiality Notice:  This email, including attachments, may include 
> non-public, proprietary, confidential or legally privileged information.  If 
> you are not an intended recipient or an authorized agent of an intended 
> recipient, you are hereby notified that any dissemination, distribution or 
> copying of the information contained in or transmitted with this e-mail is 
> unauthorized and strictly prohibited.  If you have received this email in 
> error, please notify the sender by replying to this message and permanently 
> delete this e-mail, its attachments, and any copies of it immediately.  You 
> should not retain, copy or use this e-mail or any attachment for any purpose, 
> nor disclose all or any part of the contents to any other person. Thank you
>
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Reply via email to