hc-dev | Chas Williams | 8 years ago
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    I'm running a high throughput nio http client (essentially a small webcrawler) through the apache HttpCore NIO extensions -- my code is based largely off the sample client at I've manually set both the 'connection timeout' and 'socket timeout' limits to 1ms, in order to force timeouts to test a portion of my code. After doing so, I repeatedly get the following error: "I/O dispatch worker terminated abnormally"; it's an IOException thrown from the 'ioReactor.execute' part of the sample code mentioned above. I get it when requesting high volumes of URLs -- it sometimes occours very quickly, or other times won't happen for up to 10 minutes or so. Here's the printStackTrack output for the 'getCause()' method on the IOexception: java.lang.NullPointerException at org.apache.http.nio.protocol.AsyncNHttpClientHandler.closed( at org.apache.http.nio.protocol.BufferingHttpClientHandler.closed( at org.apache.http.impl.nio.DefaultClientIOEventDispatch.disconnected( at org.apache.http.impl.nio.reactor.BaseIOReactor.sessionClosed( at org.apache.http.impl.nio.reactor.AbstractIOReactor.processClosedSessions( at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute( at org.apache.http.impl.nio.reactor.BaseIOReactor.execute( at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$ at Even though the error seems to stem from the httpcore library, I've commented out all of my code to see if it fixes the problem -- it doesn't. I tried upgrading from the 4.0-beta2 to the 4.0-beta3 release -- this also does not solve the problem. Again, this problem only occours when connection timeout and socket timeout are set extremely low (1ms), and does not seem to occour with normal timeout values.

    Apache's JIRA Issue Tracker | 8 years ago | Chas W
  2. 0

    "I/O dispatch worker terminated abnormally"

    hc-dev | 8 years ago | Chas Williams
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.apache.http.nio.protocol.AsyncNHttpClientHandler.closed()
    2. Apache HttpCore NIO
      1. org.apache.http.nio.protocol.AsyncNHttpClientHandler.closed(
      2. org.apache.http.nio.protocol.BufferingHttpClientHandler.closed(
      3. org.apache.http.impl.nio.DefaultClientIOEventDispatch.disconnected(
      4. org.apache.http.impl.nio.reactor.BaseIOReactor.sessionClosed(
      5. org.apache.http.impl.nio.reactor.AbstractIOReactor.processClosedSessions(
      6. org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(
      7. org.apache.http.impl.nio.reactor.BaseIOReactor.execute(
      8. org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$
      8 frames
    3. Java RT
      1 frame