java.lang.IllegalStateException: I/O reactor has been shut down

Apache's JIRA Issue Tracker | Maciej Majewski | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Synapse configuration: <definitions xmlns="http://ws.apache.org/ns/synapse"> <in> <log level="full"/> <send> <endpoint> <wsdl uri="http://hostname:2006/echo/echo.wsdl" service="EchoService" port="EchoPort"> <suspendDurationOnFailure>5</suspendDurationOnFailure> <timeout> <duration>3</duration> <action>fault</action> </timeout> </wsdl> </endpoint> </send> </in> <out> <send/> </out> </definitions> When simple 'echo' endpoint is deployed and working - everything is OK. But when I undeploy it and ask Synapse, I've got series of exception: First query: 2007-11-05 10:06:18,460 [ CUT ] [HttpServerWorker-5] INFO LogMediator To: /soap, WSAction: , SOAPAction: , Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:echo="http://www.springframework.org/spring-ws/samples/echo"><soapenv:Body> <echo:echoRequest>test123</echo:echoRequest> </soapenv:Body></soapenv:Envelope> Exception in thread "HttpCoreNIOSender" java.lang.NullPointerException at org.apache.synapse.transport.nhttp.ClientHandler.inputReady(ClientHandler.java:225) at org.apache.synapse.transport.nhttp.LoggingNHttpClientHandler.inputReady(LoggingNHttpClientHandler.java:113) at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:135) at org.apache.synapse.transport.nhttp.PlainClientIOEventDispatch.inputReady(PlainClientIOEventDispatch.java:71) at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:94) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:189) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:174) at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:137) at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:69) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:281) at java.lang.Thread.run(Thread.java:613) Second query: 2007-11-05 10:20:25,461 [ CUT ] [HttpServerWorker-14] ERROR Axis2Sender Unexpected error during sending message out java.lang.IllegalStateException: I/O reactor has been shut down at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.connect(DefaultConnectingIOReactor.java:164) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncRequest(HttpCoreNIOSender.java:285) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:208) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:192) at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:176) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:250) at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:55) at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:200) at org.apache.synapse.endpoints.WSDLEndpoint.send(WSDLEndpoint.java:140) at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:100) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60) at org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:60) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60) at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:122) at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:154) at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:89) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) at org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:218) at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:182) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:613) End every next query ends with this exception. Even if I redeploy echo endpoint, Synapse does not process my requests and responses with 0 bytes: Mon Nov 05 10:13:59 CET 2007:INFO:Got response for [EchoBinding.echo:Request 1] in 18ms (0 bytes) And after a few seconds in logs I have: 2007-11-05 10:19:06,408 [ CUT ] [Timer-0] INFO LogMediator To: /soap, WSAction: , SOAPAction: , Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:echo="http://www.springframework.org/spring-ws/samples/echo"><soapenv:Body> <echo:echoRequest>dupa123</echo:echoRequest> </soapenv:Body></soapenv:Envelope> After restarting Synapse everything backs to normal - so it isn't endpoint's issue.

    Apache's JIRA Issue Tracker | 9 years ago | Maciej Majewski
    java.lang.IllegalStateException: I/O reactor has been shut down
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Synapse configuration: <definitions xmlns="http://ws.apache.org/ns/synapse"> <in> <log level="full"/> <send> <endpoint> <wsdl uri="http://hostname:2006/echo/echo.wsdl" service="EchoService" port="EchoPort"> <suspendDurationOnFailure>5</suspendDurationOnFailure> <timeout> <duration>3</duration> <action>fault</action> </timeout> </wsdl> </endpoint> </send> </in> <out> <send/> </out> </definitions> When simple 'echo' endpoint is deployed and working - everything is OK. But when I undeploy it and ask Synapse, I've got series of exception: First query: 2007-11-05 10:06:18,460 [ CUT ] [HttpServerWorker-5] INFO LogMediator To: /soap, WSAction: , SOAPAction: , Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:echo="http://www.springframework.org/spring-ws/samples/echo"><soapenv:Body> <echo:echoRequest>test123</echo:echoRequest> </soapenv:Body></soapenv:Envelope> Exception in thread "HttpCoreNIOSender" java.lang.NullPointerException at org.apache.synapse.transport.nhttp.ClientHandler.inputReady(ClientHandler.java:225) at org.apache.synapse.transport.nhttp.LoggingNHttpClientHandler.inputReady(LoggingNHttpClientHandler.java:113) at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:135) at org.apache.synapse.transport.nhttp.PlainClientIOEventDispatch.inputReady(PlainClientIOEventDispatch.java:71) at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:94) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:189) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:174) at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:137) at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:69) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:281) at java.lang.Thread.run(Thread.java:613) Second query: 2007-11-05 10:20:25,461 [ CUT ] [HttpServerWorker-14] ERROR Axis2Sender Unexpected error during sending message out java.lang.IllegalStateException: I/O reactor has been shut down at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.connect(DefaultConnectingIOReactor.java:164) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncRequest(HttpCoreNIOSender.java:285) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:208) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:192) at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:176) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:250) at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:55) at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:200) at org.apache.synapse.endpoints.WSDLEndpoint.send(WSDLEndpoint.java:140) at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:100) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60) at org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:60) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60) at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:122) at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:154) at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:89) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) at org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:218) at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:182) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:613) End every next query ends with this exception. Even if I redeploy echo endpoint, Synapse does not process my requests and responses with 0 bytes: Mon Nov 05 10:13:59 CET 2007:INFO:Got response for [EchoBinding.echo:Request 1] in 18ms (0 bytes) And after a few seconds in logs I have: 2007-11-05 10:19:06,408 [ CUT ] [Timer-0] INFO LogMediator To: /soap, WSAction: , SOAPAction: , Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:echo="http://www.springframework.org/spring-ws/samples/echo"><soapenv:Body> <echo:echoRequest>dupa123</echo:echoRequest> </soapenv:Body></soapenv:Envelope> After restarting Synapse everything backs to normal - so it isn't endpoint's issue.

    Apache's JIRA Issue Tracker | 9 years ago | Maciej Majewski
    java.lang.IllegalStateException: I/O reactor has been shut down

    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.IllegalStateException

      I/O reactor has been shut down

      at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.connect()
    2. Apache HttpCore NIO
      DefaultConnectingIOReactor.connect
      1. org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.connect(DefaultConnectingIOReactor.java:164)
      1 frame
    3. Apache Synapse - Non-blocking HTTP/s Transport
      HttpCoreNIOSender.invoke
      1. org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncRequest(HttpCoreNIOSender.java:285)
      2. org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:208)
      2 frames
    4. org.apache.axis2
      AxisEngine.send
      1. org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
      1 frame
    5. Apache Synapse - Core
      DynamicAxisOperation$DynamicOperationClient.executeImpl
      1. org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:192)
      2. org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:176)
      2 frames
    6. org.apache.axis2
      OperationClient.execute
      1. org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
      1 frame
    7. Apache Synapse - Core
      SynapseMessageReceiver.receive
      1. org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:250)
      2. org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:55)
      3. org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:200)
      4. org.apache.synapse.endpoints.WSDLEndpoint.send(WSDLEndpoint.java:140)
      5. org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:100)
      6. org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
      7. org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:60)
      8. org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
      9. org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:122)
      10. org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:154)
      11. org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:89)
      11 frames
    8. org.apache.axis2
      AxisEngine.receive
      1. org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
      1 frame
    9. Apache Axis2 - Transport - HTTP
      HTTPTransportUtils.processHTTPPostRequest
      1. org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
      1 frame
    10. Apache Synapse - Non-blocking HTTP/s Transport
      ServerWorker.run
      1. org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:218)
      2. org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:182)
      2 frames
    11. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      3. java.lang.Thread.run(Thread.java:613)
      3 frames