You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Vish Shah (JIRA)" <ji...@apache.org> on 2010/03/07 10:32:27 UTC

[jira] Created: (AXIS2-4648) HTTPS Only Transport does not work

HTTPS Only Transport does not work
----------------------------------

                 Key: AXIS2-4648
                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
             Project: Axis2
          Issue Type: Bug
          Components: transports
    Affects Versions: 1.5.1
         Environment: Solaris, apache tomcat 6.0.24 
            Reporter: Vish Shah
            Priority: Critical


Hi,

It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
 
TransportOutDescription transportOut = msgContext.getConfigurationContext().
                    getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
  

Steps to reproduce 

1. only keep https definition in axis2.xml and remove http definition.
2. run any axis2 service. Result would be a Null pointer exception


In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?

java.lang.NullPointerException
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
        at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
        at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
        at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
 

     <transportSender name="local"
                     class="org.apache.axis2.transport.local.LocalTransportSender"/>

    <transportSender name="https"
                     class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
        <parameter name="PROTOCOL">HTTP/1.1</parameter>
        <parameter name="Transfer-Encoding">chunked</parameter>
    </transportSender> 


knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?



Thanks,
Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Resolved: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-4648.
-------------------------------------------------

    Resolution: Fixed

fixed with the revision 919960.

please have a look at from a build from trunk.

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Vish Shah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845457#action_12845457 ] 

Vish Shah commented on AXIS2-4648:
----------------------------------

Hi Amila,
Thanks for a quick response.. i checked this fix, it works for just https on the serverside code, but i get a NullPointer in some of my client side code where i am doing the transport cleanup. please see the below code

soapBindingStub._getServiceClient().cleanup();
soapBindingStub._getServiceClient().cleanupTransport(); 


The CommonsHTTPTransportSender code's cleanup method also has a similar issue, please see below

 public void cleanup(MessageContext msgContext) throws AxisFault {
        HttpMethod httpMethod = (HttpMethod) msgContext.getProperty(HTTPConstants.HTTP_METHOD);

        if (httpMethod != null) {
            // TODO : Don't do this if we're not on the right thread! Can we confirm?
            log.trace("cleanup() releasing connection for " + httpMethod);

            httpMethod.releaseConnection();
            msgContext.removeProperty(HTTPConstants.HTTP_METHOD); // guard against multiple calls
        }
    }

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Resolved: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-4648.
-------------------------------------------------

    Resolution: Fixed

fixed with the revision 919960.

please have a look at from a build from trunk.

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Vish Shah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846203#action_12846203 ] 

Vish Shah commented on AXIS2-4648:
----------------------------------

java.lang.NullPointerException
	at org.apache.axis2.client.ServiceClient.cleanupTransport(ServiceClient.java:824)
	at org.service.client.SynchronizeClient.synchronizeData(SynchronizeClient.java:78)
	at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:265)
	at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
	at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:874)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:808)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:523)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:463)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Reopened: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Vish Shah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vish Shah reopened AXIS2-4648:
------------------------------


added my comments earlier. the cleanup of transport throws Nullpointer if the HTTP transport is removed from Axis2.xml

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Vish Shah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846203#action_12846203 ] 

Vish Shah commented on AXIS2-4648:
----------------------------------

java.lang.NullPointerException
	at org.apache.axis2.client.ServiceClient.cleanupTransport(ServiceClient.java:824)
	at org.service.client.SynchronizeClient.synchronizeData(SynchronizeClient.java:78)
	at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:265)
	at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
	at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:874)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:808)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:523)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:463)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845730#action_12845730 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4648:
-----------------------------------------------------

Can you paste the new stack trace?

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Vish Shah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846203#action_12846203 ] 

Vish Shah commented on AXIS2-4648:
----------------------------------

java.lang.NullPointerException
	at org.apache.axis2.client.ServiceClient.cleanupTransport(ServiceClient.java:824)
	at org.service.client.SynchronizeClient.synchronizeData(SynchronizeClient.java:78)
	at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:265)
	at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
	at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:874)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:808)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:523)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:463)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Reopened: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Vish Shah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vish Shah reopened AXIS2-4648:
------------------------------


added my comments earlier. the cleanup of transport throws Nullpointer if the HTTP transport is removed from Axis2.xml

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Reopened: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Vish Shah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vish Shah reopened AXIS2-4648:
------------------------------


added my comments earlier. the cleanup of transport throws Nullpointer if the HTTP transport is removed from Axis2.xml

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Reopened: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Vish Shah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vish Shah reopened AXIS2-4648:
------------------------------


added my comments earlier. the cleanup of transport throws Nullpointer if the HTTP transport is removed from Axis2.xml

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Resolved: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-4648.
-------------------------------------------------

    Resolution: Fixed

fixed with the revision 919960.

please have a look at from a build from trunk.

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Vish Shah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845457#action_12845457 ] 

Vish Shah commented on AXIS2-4648:
----------------------------------

Hi Amila,
Thanks for a quick response.. i checked this fix, it works for just https on the serverside code, but i get a NullPointer in some of my client side code where i am doing the transport cleanup. please see the below code

soapBindingStub._getServiceClient().cleanup();
soapBindingStub._getServiceClient().cleanupTransport(); 


The CommonsHTTPTransportSender code's cleanup method also has a similar issue, please see below

 public void cleanup(MessageContext msgContext) throws AxisFault {
        HttpMethod httpMethod = (HttpMethod) msgContext.getProperty(HTTPConstants.HTTP_METHOD);

        if (httpMethod != null) {
            // TODO : Don't do this if we're not on the right thread! Can we confirm?
            log.trace("cleanup() releasing connection for " + httpMethod);

            httpMethod.releaseConnection();
            msgContext.removeProperty(HTTPConstants.HTTP_METHOD); // guard against multiple calls
        }
    }

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12847322#action_12847322 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4648:
-----------------------------------------------------

Can you send the message correctly?

ServiceClient.java has this code

if (outMessageContext != null) {
                outMessageContext.getTransportOut().getSender().cleanup(outMessageContext);
            }

both transport sender and transport out can not be null if you can send the messsage properly.

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845730#action_12845730 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4648:
-----------------------------------------------------

Can you paste the new stack trace?

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845730#action_12845730 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4648:
-----------------------------------------------------

Can you paste the new stack trace?

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12847322#action_12847322 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4648:
-----------------------------------------------------

Can you send the message correctly?

ServiceClient.java has this code

if (outMessageContext != null) {
                outMessageContext.getTransportOut().getSender().cleanup(outMessageContext);
            }

both transport sender and transport out can not be null if you can send the messsage properly.

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845730#action_12845730 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4648:
-----------------------------------------------------

Can you paste the new stack trace?

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Reopened: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Vish Shah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vish Shah reopened AXIS2-4648:
------------------------------


added my comments earlier. the cleanup of transport throws Nullpointer if the HTTP transport is removed from Axis2.xml

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Vish Shah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845457#action_12845457 ] 

Vish Shah commented on AXIS2-4648:
----------------------------------

Hi Amila,
Thanks for a quick response.. i checked this fix, it works for just https on the serverside code, but i get a NullPointer in some of my client side code where i am doing the transport cleanup. please see the below code

soapBindingStub._getServiceClient().cleanup();
soapBindingStub._getServiceClient().cleanupTransport(); 


The CommonsHTTPTransportSender code's cleanup method also has a similar issue, please see below

 public void cleanup(MessageContext msgContext) throws AxisFault {
        HttpMethod httpMethod = (HttpMethod) msgContext.getProperty(HTTPConstants.HTTP_METHOD);

        if (httpMethod != null) {
            // TODO : Don't do this if we're not on the right thread! Can we confirm?
            log.trace("cleanup() releasing connection for " + httpMethod);

            httpMethod.releaseConnection();
            msgContext.removeProperty(HTTPConstants.HTTP_METHOD); // guard against multiple calls
        }
    }

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Vish Shah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846203#action_12846203 ] 

Vish Shah commented on AXIS2-4648:
----------------------------------

java.lang.NullPointerException
	at org.apache.axis2.client.ServiceClient.cleanupTransport(ServiceClient.java:824)
	at org.service.client.SynchronizeClient.synchronizeData(SynchronizeClient.java:78)
	at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:265)
	at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
	at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:874)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:808)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:523)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:463)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12847322#action_12847322 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4648:
-----------------------------------------------------

Can you send the message correctly?

ServiceClient.java has this code

if (outMessageContext != null) {
                outMessageContext.getTransportOut().getSender().cleanup(outMessageContext);
            }

both transport sender and transport out can not be null if you can send the messsage properly.

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Resolved: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-4648.
-------------------------------------------------

    Resolution: Fixed

fixed with the revision 919960.

please have a look at from a build from trunk.

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Vish Shah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845457#action_12845457 ] 

Vish Shah commented on AXIS2-4648:
----------------------------------

Hi Amila,
Thanks for a quick response.. i checked this fix, it works for just https on the serverside code, but i get a NullPointer in some of my client side code where i am doing the transport cleanup. please see the below code

soapBindingStub._getServiceClient().cleanup();
soapBindingStub._getServiceClient().cleanupTransport(); 


The CommonsHTTPTransportSender code's cleanup method also has a similar issue, please see below

 public void cleanup(MessageContext msgContext) throws AxisFault {
        HttpMethod httpMethod = (HttpMethod) msgContext.getProperty(HTTPConstants.HTTP_METHOD);

        if (httpMethod != null) {
            // TODO : Don't do this if we're not on the right thread! Can we confirm?
            log.trace("cleanup() releasing connection for " + httpMethod);

            httpMethod.releaseConnection();
            msgContext.removeProperty(HTTPConstants.HTTP_METHOD); // guard against multiple calls
        }
    }

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845730#action_12845730 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4648:
-----------------------------------------------------

Can you paste the new stack trace?

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Resolved: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-4648.
-------------------------------------------------

    Resolution: Fixed

fixed with the revision 919960.

please have a look at from a build from trunk.

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12847322#action_12847322 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4648:
-----------------------------------------------------

Can you send the message correctly?

ServiceClient.java has this code

if (outMessageContext != null) {
                outMessageContext.getTransportOut().getSender().cleanup(outMessageContext);
            }

both transport sender and transport out can not be null if you can send the messsage properly.

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Vish Shah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846203#action_12846203 ] 

Vish Shah commented on AXIS2-4648:
----------------------------------

java.lang.NullPointerException
	at org.apache.axis2.client.ServiceClient.cleanupTransport(ServiceClient.java:824)
	at org.service.client.SynchronizeClient.synchronizeData(SynchronizeClient.java:78)
	at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:265)
	at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
	at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:874)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:808)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:523)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:463)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Vish Shah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845457#action_12845457 ] 

Vish Shah commented on AXIS2-4648:
----------------------------------

Hi Amila,
Thanks for a quick response.. i checked this fix, it works for just https on the serverside code, but i get a NullPointer in some of my client side code where i am doing the transport cleanup. please see the below code

soapBindingStub._getServiceClient().cleanup();
soapBindingStub._getServiceClient().cleanupTransport(); 


The CommonsHTTPTransportSender code's cleanup method also has a similar issue, please see below

 public void cleanup(MessageContext msgContext) throws AxisFault {
        HttpMethod httpMethod = (HttpMethod) msgContext.getProperty(HTTPConstants.HTTP_METHOD);

        if (httpMethod != null) {
            // TODO : Don't do this if we're not on the right thread! Can we confirm?
            log.trace("cleanup() releasing connection for " + httpMethod);

            httpMethod.releaseConnection();
            msgContext.removeProperty(HTTPConstants.HTTP_METHOD); // guard against multiple calls
        }
    }

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4648) HTTPS Only Transport does not work

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12847322#action_12847322 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4648:
-----------------------------------------------------

Can you send the message correctly?

ServiceClient.java has this code

if (outMessageContext != null) {
                outMessageContext.getTransportOut().getSender().cleanup(outMessageContext);
            }

both transport sender and transport out can not be null if you can send the messsage properly.

> HTTPS Only Transport does not work
> ----------------------------------
>
>                 Key: AXIS2-4648
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4648
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: Solaris, apache tomcat 6.0.24 
>            Reporter: Vish Shah
>            Priority: Critical
>
> Hi,
> It seems HTTPS only transport does not work with 2.1.5.1. The following code executes and expects the HTTP transport definition in Axis2.xml file.
>  
> TransportOutDescription transportOut = msgContext.getConfigurationContext().
>                     getAxisConfiguration().getTransportOut(Constants.TRANSPORT_HTTP);
>   
> Steps to reproduce 
> 1. only keep https definition in axis2.xml and remove http definition.
> 2. run any axis2 service. Result would be a Null pointer exception
> In my Axis2.xml configuration, i removed the HTTP (<transportSender name="http") transport sender and am only having the "https" transport sender . I see that the request comes in fine into the service, however i get a NullPointer at the time the response is to be sent..Why is that?  What if i just want to use HTTPS ?
> java.lang.NullPointerException
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:170)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>  
>      <transportSender name="local"
>                      class="org.apache.axis2.transport.local.LocalTransportSender"/>
>     <transportSender name="https"
>                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
>         <parameter name="Transfer-Encoding">chunked</parameter>
>     </transportSender> 
> knowing that 1.6 does not happen soon, it would be great if there could be a patch provided to resolve this issue, it would not be easy for lot of them to upgrade versions very frequently. can Axis2 commiter please provide a patch ASAP to resolve this ?
> Thanks,
> Vish

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org