axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "U. Suran Jayathilaka (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-2674) NullPointerException in AxisServlet doPost method
Date Tue, 29 May 2007 09:24:15 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-2674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499741
] 

U. Suran Jayathilaka commented on AXIS2-2674:
---------------------------------------------

I'm afraid the details you've provided here are insufficient to figure out where the error
is. You should be able to attach the .war or .java files using the "Attach File" link. 
Also, you say 
------------------------
The error was traced using the Eclipse WTP debugger to the statement in the org.apache.axis2.transport.http.HTTPTransportUtilis
class within the following "if" condition:

if ((msgContext.getEnvelope() == null) && soapVersion != VERSION_SOAP11) {
  msgContext.setEnvelope(new SOAP12Factory().getDefaultEnvelope());
}

The msgContext.getEnvelope method returns an envelop and is therefore not null. The soapVersion
has a value of 1 and the VERSION_SOAP11 final variable also has a value of 1.
The NPE happens immediately when I try to step into the SOAP12Factory().getDefaultEnvelope()
method.
-------------------------

But this seems contradictory since if msgContext.getEnvelope() did return a not null value,
then if ((msgContext.getEnvelope() == null) && soapVersion != VERSION_SOAP11)  check
wouldn't have passed and therefor, the line
 msgContext.setEnvelope(new SOAP12Factory().getDefaultEnvelope()); would not execute. The
same goes for both soapVersion & VERSION_SOAP11 variables having a value of 1.
 

> NullPointerException in AxisServlet doPost method
> -------------------------------------------------
>
>                 Key: AXIS2-2674
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2674
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding, wsdl
>    Affects Versions: 1.2
>         Environment: Eclipse WTP on Windows XP using Tomcat 5.5.20 as the app.server
and SOAPUI version 1.71 as the client
>            Reporter: J. Allen
>         Attachments: wtp1.jpg, wtp2.jpg
>
>
> Axis 1.2 was added to a web application.  The Java class stubs were generated using he
WSDL2Java tool using XMLBeans data binding.
> Everything appears to be configured right since the methods in the skeleton class are
being invoked correctly.
> The echo method works fine.  However, when I try another operation I always get a NullPointerException
thrown from the doPost method of the org.apache.axis2.transport.http.AxisServlet class.  The
error says only:
> May 8, 2007 1:40:01 PM org.apache.axis2.transport.http.AxisServlet doPost
> SEVERE: java.lang.NullPointerException
> The method in the skeleton class returns without errors.
> The error was traced using the Eclipse WTP debugger to the statement in the org.apache.axis2.transport.http.HTTPTransportUtilis
class within the following "if" condition:
> if ((msgContext.getEnvelope() == null) && soapVersion != VERSION_SOAP11) {
>   msgContext.setEnvelope(new SOAP12Factory().getDefaultEnvelope());
> }
> The msgContext.getEnvelope method returns an envelop and is therefore not null.  The
soapVersion has a value of 1 and the VERSION_SOAP11 final variable also has a value of 1.
> The NPE happens immediately when I try to step into the SOAP12Factory().getDefaultEnvelope()
method.
> The request used is below:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:imag="http://ws.estesexpress.com/imageview">
>    <soapenv:Header>
>       <imag:auth>
>          <imag:user>u</imag:user>
>          <imag:password>p</imag:password>
>       </imag:auth>
>    </soapenv:Header>
>    <soapenv:Body>
>       <imag:imgRequest>
>          <imag:requestID>20070512</imag:requestID>
>          <pro>1234567890</pro>
>          <document>BOLA</document>
>       </imag:imgRequest>
>    </soapenv:Body>
> </soapenv:Envelope>
> Is there a way to attach the WAR file to the bug?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message