[
https://issues.apache.org/jira/browse/AXIS2-2674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Davanum Srinivas resolved AXIS2-2674.
-------------------------------------
Resolution: Fixed
J. Allen,
Thanks for the bug report. this specific problem is already fixed in svn
head/trunk. Here's a patch against the code generated by Axis2 1.2 which will
make the generated code work for you in Axis2 1.2 itself. Basically find the
toEnvelope calls in ImageViewServiceMessageReceiverInOut.java and add
"envelope.build();" for each one.
thanks,
dims
--- ImageViewServiceMessageReceiverInOut.java 2007-06-07 22:05:49.718000000
-0400
+++ ImageViewServiceMessageReceiverInOut.java.work 2007-06-07
22:02:54.050000000 -0400
@@ -52,7 +52,8 @@
;
envelope =
toEnvelope(getSOAPFactory(msgContext), echoResponse18, false);
- } else
+ envelope.build();
+ } else
if("imageCheck".equals(methodName)){
@@ -70,7 +71,8 @@
;
envelope =
toEnvelope(getSOAPFactory(msgContext), availResponse21, false);
- } else
+ envelope.build();
+ } else
if("imageView".equals(methodName)){
@@ -88,6 +90,7 @@
;
envelope =
toEnvelope(getSOAPFactory(msgContext), imgResponse24, false);
+ envelope.build();
} else {
throw new RuntimeException("method not found");
> 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: imageViewService.wsdl, nextran.zip, 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]