[prev in list] [next in list] [prev in thread] [next in thread]
List: rampart-dev
Subject: [jira] [Created] (AXIS2-5506) useOriginalwsdl + service exceptions = NullPointerException
From: "Wouter Amerijckx (JIRA)" <jira () apache ! org>
Date: 2013-03-28 16:55:20
Message-ID: JIRA.12639622.1364489713839.70507.1364489720973 () arcas
[Download RAW message or body]
Wouter Amerijckx created AXIS2-5506:
---------------------------------------
Summary: useOriginalwsdl + service exceptions = NullPointerException
Key: AXIS2-5506
URL: https://issues.apache.org/jira/browse/AXIS2-5506
Project: Axis2
Issue Type: Bug
Affects Versions: 1.6.2, 1.6.1
Environment: Windows XP, IBM WebSphere 7, Java 1.6.0_24-b07
Reporter: Wouter Amerijckx
In both Axis2 1.6.1 and 1.6.2, an issue occurs when using an "original" WSDL file for \
a service that throws exceptions in its service methods.
The issue occurs with:
- Spring integration with Spring 2.0.8
- The service packaged in an AAR
> services.xml's useOriginalwsdl=true
> META-INF/serviceName.WSDL in place
Initially, I deployed the AAR without useOriginalwsdl and without a custom WSDL file. \
Axis2 generated the WSDL, I downloaded it through my web browser and put it in \
META-INF/serviceName.WSDL.
For now, I left the file unmodified but am planning to modify it later (i.e., its \
minOccurs values).
The issue occurs when a service method completes but throws an exception. Without the \
"original WSDL", Axis2 serializes this exception perfectly to XML. With the original \
WSDL in place, the following happens:
Version 1.6.1:
ERROR org.apache.axis2.transport.http.AxisServlet - java.lang.NullPointerException
at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:179)
at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1597)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
....
Version 1.6.2:
ERROR org.apache.axis2.transport.http.AxisServlet - java.lang.NullPointerException
at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:181)
at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)
....
I made an attempt to debug the code, and it seems that \
inMessage.getAxisService().getTypeTable() is null, which is not the case when not \
using an "original WSDL".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic