On Fri, 2010-06-11 at 12:25 +0100, Sam Crawford wrote:
> Well, that was quick. I can indeed reproduce it by sending an empty
> entity enclosing request to the server. The correct "Content-Length:
> 0" header is present, so I would have thought this is a valid request,
> no?
> 

Yes, the request is perfectly valid. Please raise a JIRA for this bug.

Cheers

Oleg 



> 
> [...@dev3 ~]$ curl -v -d "" https://proj.acmecorp.com/
> * About to connect() to proj.acmecorp.com port 443
> *   Trying 192.168.254.22... connected
> * Connected to proj.acmecorp.com (192.168.254.22) port 443
> * SSL certificate verify ok.
> > POST / HTTP/1.1
> > User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 
> > OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> > Host: proj.acmecorp.com
> > Accept: */*
> > Content-Length: 0
> > Content-Type: application/x-www-form-urlencoded
> >
> (No response received)
> 
> 
> Exception is the same as before:
> 
> INFO com.acmecorp.proj.http.HttpSSLServer: Connection open:
> [proj.acmecorp.com/192.168.254.22:47992]
> ERROR com.acmecorp.proj.http.HttpSSLServer: I/O error
> org.apache.http.nio.reactor.IOReactorException: I/O dispatch worker
> terminated abnormally
>         at 
> org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:326)
>         at com.acmecorp.proj.http.HttpSSLServer$1.run(HttpSSLServer.java:162)
> Caused by: java.lang.NullPointerException
>         at 
> org.apache.http.nio.protocol.AsyncNHttpServiceHandler.inputReady(AsyncNHttpServiceHandler.java:317)
>         at 
> org.apache.http.impl.nio.DefaultNHttpServerConnection.consumeInput(DefaultNHttpServerConnection.java:179)
>         at 
> org.apache.http.impl.nio.SSLServerIOEventDispatch.inputReady(SSLServerIOEventDispatch.java:225)
>         at 
> org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:153)
>         at 
> org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:314)
>         at 
> org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:294)
>         at 
> org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:256)
>         at 
> org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:96)
>         at 
> org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:556)
>         at java.lang.Thread.run(Thread.java:619)
> INFO com.acmecorp.proj.http.HttpSSLServer: Shutdown HTTP server
> 
> 
> I'll try the latest 4.0.x trunk build now.
> 
> Thanks,
> 
> Sam
> 
> 
> 
> On 11 June 2010 12:07, Oleg Kalnichevski <[email protected]> wrote:
> > On Fri, 2010-06-11 at 11:46 +0100, Sam Crawford wrote:
> >> I should add that we're using HttpCore 4.01. The issue sounds similar
> >> to HTTPCORE-180.
> >>
> >> We're using the following JVM:
> >>
> >> java version "1.6.0_17"
> >> Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
> >> Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
> >>
> >> Thanks,
> >>
> >> Sam
> >>
> >
> > I have been back-porting bug fixes to the 4.0.x branch. However, it
> > would be easier if you could use the latest snapshot off the trunk while
> > trying to pinpoint the cause of the problem.
> >
> > Oleg
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to