jira-importer opened a new issue, #845:
URL: https://github.com/apache/httpcomponents-core/issues/845

   **[Isaac Cruz 
Ballesteros](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=icruz)**
 opened 
**[HTTPCORE-283](https://issues.apache.org/jira/browse/HTTPCORE-283?redirect=false)**
 and commented
   
   I want to implement a completely asynchronous server, I've used the 
NHttpServer example but changing the handler to AsyncNHttpServiceHandler.
   
   When throwing this exception from entityRequest():
   
       public ConsumingNHttpEntity entityRequest(HttpEntityEnclosingRequest 
request, HttpContext context)
               throws HttpException, IOException {
           throw new MethodNotSupportedException("method not supported");
       }
   
   the DefaultListeningIOReactor shutdowns throwing the following exception:
   
   org.apache.http.nio.reactor.IOReactorException: I/O dispatch worker 
terminated abnormally
   at 
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:321)
   at NHttpServer.main(NHttpServer.java:67)
   Caused by: java.lang.NullPointerException
   at 
org.apache.http.nio.protocol.AsyncNHttpServiceHandler.inputReady(AsyncNHttpServiceHandler.java:313)
   at 
org.apache.http.impl.nio.DefaultNHttpServerConnection.consumeInput(DefaultNHttpServerConnection.java:175)
   at 
org.apache.http.impl.nio.DefaultServerIOEventDispatch.inputReady(DefaultServerIOEventDispatch.java:154)
   at 
org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:158)
   at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:340)
   at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:318)
   at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:278)
   at 
org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
   at 
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:542)
   at java.lang.Thread.run(Thread.java:619)
   
   I'm attaching the example to test the error
   
   
   ---
   
   **Affects:** 4.1.3
   
   **Attachments:**
   - 
[NHttpServer.java](https://issues.apache.org/jira/secure/attachment/12505100/NHttpServer.java)
 (_4.88 kB_)
   
   **Backported to:** 
[4.1.4](https://github.com/apache/httpcomponents-core/milestone/19?closed=1)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to