Hi,

Any help is greatly appreciated.

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.jav
a: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.processHTTPPostReques
t(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(St
ubSecurityHelper.java:227)
        at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityH
elper.java:125)
        at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:2
83)
        at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:1
75)
        at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un(WebAppServletContext.java:3231)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.java:321)
        at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121
)
        at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServ
letContext.java:2002)
        at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletCont
ext.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. The request and response parameters are
passed in as strings that are defined in separated XSD schemas.

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace="http://sys.clt.myhost.com/FF_WServices/WS.wsdl";
xmlns:axis2="http://sys.clt.myhost.com/FF_WServices/WS.wsdl";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:tns="http://sys.clt.myhost.com/FF_WServices/WS";
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://sys.clt.myhost.com/FF_WServices/WS";
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
        <xs:element name="GetSYSContactsByRole">
                <xs:complexType>
                        <xs:sequence>
                                <xs:element maxOccurs="1" minOccurs="0"
name="strRequests" type="xs:string"/>
                        </xs:sequence>
                </xs:complexType>

        </xs:element>
        <xs:element name="GetSYSContactsByRoleResponse">
                <xs:complexType>
                        <xs:sequence>
                                <xs:element maxOccurs="1" minOccurs="0"
name="GetSYSContactsByRoleResult" type="xs:string"/>
                        </xs:sequence>
                </xs:complexType>
        </xs:element>
    </xs:schema>
  </wsdl:types>
  <wsdl:message name="contactRequestMessage">
    <wsdl:part name="parameters" element="tns:GetSYSContactsByRole">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="contactResponseMessage">
    <wsdl:part name="parameters"
element="tns:GetSYSContactsByRoleResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:portType name="WSPortType">
    <wsdl:operation name="GetSYSContactsByRole">
      <wsdl:input message="axis2:contactRequestMessage">
    </wsdl:input>
      <wsdl:output message="axis2:contactResponseMessage">
    </wsdl:output>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="WSSOAP" type="axis2:WSPortType">
    <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="GetSYSContactsByRole">
      <soap:operation
soapAction="http://<hostname>:9004/axis2/services/WS/GetSYSContactsByRol
e" 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="WS">
<documentation xmlns="http://schemas.xmlsoap.org/wsdl/";>App Web
Services</documentation>
    <wsdl:port name="WSSOAP" binding="axis2:WSSOAP">
      <soap:address
location="http://<ipaddress>:9004/axis2/services/WS"/>
    </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

Reply via email to