[
https://issues.apache.org/jira/browse/AXIS2-4674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972941#action_12972941
]
Pradeep Fernando commented on AXIS2-4674:
-----------------------------------------
Hi,
I look in to the issue, and noticed that it is still there in the current trunk
version. (reproduced it). According to my observations, the root cause of the
issue being the appserver specific behaviours.
In Tomcat, if the request URL is MyService?wsdl2 it gives the wsdl2 request
parameter as a empty string, where as in web sphere it gives a null string.
The obvious solutions, as of my understanding is the do a null check before
further processing.
i did that modification and now the the above issue no longer visible. (I
verified in the tomcat as well as in web sphere).
The similar story holds for the AXIS2-4871 Jira.
I'm attaching the patch. The patch resolves two Jirasm AXIS2- 4871 and
AXIS2-4674 . please review and commit.
> Unable to get WSDL2 doc for services on WebSphere 7.0 and Axis2 1.5.1
> ---------------------------------------------------------------------
>
> Key: AXIS2-4674
> URL: https://issues.apache.org/jira/browse/AXIS2-4674
> Project: Axis2
> Issue Type: Bug
> Components: wsdl
> Affects Versions: 1.5.1
> Environment: Linux Redhat, Websphere 7.0, Axis2, 1.5.1
> Reporter: Tony Lewis
> Fix For: 1.5.4
>
>
> Accessing
> websphereurl:port/axis/services/MyService?wsdl2 throws a null pointer
> exception.
> E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught
> exception created in one of the service methods of the servlet AxisServlet in
> application axis2_war. Exception created : java.lang.NullPointerException
> at org.apache.axis2.description.AxisService.printWSDL2(AxisService.java:1594)
> at
> org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:252)
>
> at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:249)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
> at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)
>
> at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
>
> at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
>
> at
> com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
>
> at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610)
> at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274)
> at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926)
> at
> com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
>
> at
> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
> at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
>
> at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
>
> at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)
>
> at
> com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
>
> at
> com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
>
> at
> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
>
> at
> com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
>
> at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205)
> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
> Problem lies on line 250 of
> org.apache.axis2.transport.http.ListingAgent.java. req.getParameter("wsdl2")
> returns null if the url does not contain the wsdl file name as a parameter.
> The following works:
> websphereurl:port/axis/services/MyService?wsdl2=
> websphereurl:port/axis/services/MyService?wsdl2=MyService.wsdl
--
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]