Axis 2 does not support https only transport
---------------------------------------------
Key: AXIS2-5095
URL: https://issues.apache.org/jira/browse/AXIS2-5095
Project: Axis2
Issue Type: Bug
Reporter: Prashant Kesarwani
I have a requirement to have all webservice call at https only.I removed all
http sender/receiver stuff from axis2.xml and made transport receiver and
sender to communicate at https only . I have following configuration in
axis2.xml
<transportSender name="https"
class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
<parameter name="PROTOCOL">HTTP/1.1</parameter>
<parameter name="Transfer-Encoding">chunked</parameter>
</transportSender>
<transportReceiver name="https"
class="org.apache.axis2.transport.http.AxisServletListener">
<parameter name="port">7002</parameter>
</transportReceiver>
I was able to call the webservice from my java client using https and could
also see from server log that proper hanshake was happening. Server was
performing all the task to service the request. But just before sending the
response back to client I received following exception at server side
java.lang.NullPointerException
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:521)
at
org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:428)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:210)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at
esu.webservice.security.WebServiceSecurityFilter.doFilter(WebServiceSecurityFilter.java:276)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at esu.config.guice.GuiceSetupFilter.doFilter(GuiceSetupFilter.java:31)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
But when I add entry for http in axis2.xml it worked fine.
<transportSender name="http"
class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
<parameter name="PROTOCOL">HTTP/1.1</parameter>
<parameter name="Transfer-Encoding">chunked</parameter>
</transportSender>
I googled and found that there was issue AXIS-4648 raised and fixes were
already provide in later releases. But I received almost same issue.Please look
into this issue . Also please let me know If I missed anything in
configuration.
Thanks ,
Prashant Kesarwani
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]