You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Asankha C. Perera" <as...@wso2.com> on 2007/07/07 13:03:41 UTC

Problem with HTTPS transport in Axis2 1.3 using HttpCore 4.0-alpha5

Oleg

When testing the Axis2 1.3-RC1, I see that there is an issue with the 
HTTPS transport. The HTTP transport works well, and both HTTP and HTTPS 
works well with Synapse (using 4.0-alpha5 + Axis2 1.2)

I am trying to see if this is a problem with Axis2, but just wanted to 
check with you upfront if you might know whats wrong.. This is what I am 
seeing...

2007-07-07 17:00:35,162 ERROR 
org.apache.axis2.transport.nhttp.ServerHandler - HTTP connection 
[/127.0.0.1:35587]: Input length = 1
java.nio.charset.MalformedInputException: Input length = 1
        at java.nio.charset.CoderResult.throwException(CoderResult.java:260)
        at 
org.apache.http.impl.nio.reactor.SessionInputBuffer.readLine(SessionInputBuffer.java:149)
        at 
org.apache.http.impl.nio.codecs.HttpMessageParser.parse(HttpMessageParser.java:142)
        at 
org.apache.http.impl.nio.DefaultNHttpServerConnection.consumeInput(DefaultNHttpServerConnection.java:91)
        at 
org.apache.axis2.transport.nhttp.PlainServerIOEventDispatch.inputReady(PlainServerIOEventDispatch.java:69)
        at 
org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:68)
        at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:160)
        at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:145)
        at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:127)
        at 
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:162)
        at java.lang.Thread.run(Thread.java:595)
2007-07-07 17:00:35,166 ERROR 
org.apache.axis2.transport.nhttp.ServerHandler - I/O error: Input length = 1
2007-07-07 17:00:35,168 DEBUG 
org.apache.axis2.transport.nhttp.ServerHandler - HTTP connection 
[closed]: Closed

thanks
asankha

---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: Problem with HTTPS transport in Axis2 1.3 using HttpCore 4.0-alpha5

Posted by "Asankha C. Perera" <as...@wso2.com>.
Hi Oleg
> It is obviously a problem converting bytes to chars while parsing a
> message head. MalformedInputException is thrown when an input byte
> sequence is not legal for given charset. The question is whether data
> corruption occurs due to a bug in NIO code or the original message is
> simply malformed. I cannot say more without some additional input.
> Please keep me in the loop about all new findings.
>   
Thanks for the hint, and I found out the problem where I had commented a 
variable when checking the transport into Axis2 as Axis2 wanted to be 
compiled in JDK 1.4 as well.. due to that it was the 
PlainServerIOEventDispatch that was getting invoked for HTTPS

Sorry about the false alarm

regards
asankha

---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: Problem with HTTPS transport in Axis2 1.3 using HttpCore 4.0-alpha5

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Sat, 2007-07-07 at 16:33 +0530, Asankha C. Perera wrote:
> Oleg
> 
> When testing the Axis2 1.3-RC1, I see that there is an issue with the 
> HTTPS transport. The HTTP transport works well, and both HTTP and HTTPS 
> works well with Synapse (using 4.0-alpha5 + Axis2 1.2)
> 
> I am trying to see if this is a problem with Axis2, but just wanted to 
> check with you upfront if you might know whats wrong.. This is what I am 
> seeing...
> 

Hi Asankha

It is obviously a problem converting bytes to chars while parsing a
message head. MalformedInputException is thrown when an input byte
sequence is not legal for given charset. The question is whether data
corruption occurs due to a bug in NIO code or the original message is
simply malformed. I cannot say more without some additional input.
Please keep me in the loop about all new findings.

Oleg



> 2007-07-07 17:00:35,162 ERROR 
> org.apache.axis2.transport.nhttp.ServerHandler - HTTP connection 
> [/127.0.0.1:35587]: Input length = 1
> java.nio.charset.MalformedInputException: Input length = 1
>         at java.nio.charset.CoderResult.throwException(CoderResult.java:260)
>         at 
> org.apache.http.impl.nio.reactor.SessionInputBuffer.readLine(SessionInputBuffer.java:149)
>         at 
> org.apache.http.impl.nio.codecs.HttpMessageParser.parse(HttpMessageParser.java:142)
>         at 
> org.apache.http.impl.nio.DefaultNHttpServerConnection.consumeInput(DefaultNHttpServerConnection.java:91)
>         at 
> org.apache.axis2.transport.nhttp.PlainServerIOEventDispatch.inputReady(PlainServerIOEventDispatch.java:69)
>         at 
> org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:68)
>         at 
> org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:160)
>         at 
> org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:145)
>         at 
> org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:127)
>         at 
> org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:162)
>         at java.lang.Thread.run(Thread.java:595)
> 2007-07-07 17:00:35,166 ERROR 
> org.apache.axis2.transport.nhttp.ServerHandler - I/O error: Input length = 1
> 2007-07-07 17:00:35,168 DEBUG 
> org.apache.axis2.transport.nhttp.ServerHandler - HTTP connection 
> [closed]: Closed
> 
> thanks
> asankha
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org