java.nio.channels.WritePendingException: null

JIRA | Brian Rak | 1 year ago
  1. 0

    I'm running Puppet server with a large (>1000) number of nodes, the puppet server software is intermittently throwing this error: {noformat} 2015-07-21 16:00:52,904 WARN [o.e.j.s.HttpChannel] /production/catalog/xxxxx java.nio.channels.WritePendingException: null at org.eclipse.jetty.server.HttpConnection$SendCallback.reset(HttpConnection.java:624) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpConnection$SendCallback.access$100(HttpConnection.java:594) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:479) [puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpChannel.sendResponse(HttpChannel.java:768) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:801) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:142) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:135) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpOutput.close(HttpOutput.java:166) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpWriter.close(HttpWriter.java:49) ~[puppet-server-release.jar:na] at java.io.PrintWriter.close(PrintWriter.java:339) ~[na:1.8.0_51] at ring.util.servlet$set_body.invoke(servlet.clj:86) ~[na:na] at ring.util.servlet$update_servlet_response.invoke(servlet.clj:112) ~[na:na] at puppetlabs.trapperkeeper.services.webserver.jetty9_core$ring_handler$fn__8410.invoke(jetty9_core.clj:410) ~[na:na] at puppetlabs.trapperkeeper.services.webserver.jetty9_core.proxy$org.eclipse.jetty.server.handler.AbstractHandler$ff19274a.handle(Unknown Source) ~[na:na] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1129) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1065) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:95) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:159) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.Server.handle(Server.java:497) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) [puppet-server-release.jar:na] at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) [puppet-server-release.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) [puppet-server-release.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) [puppet-server-release.jar:na] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_51] {noformat}

    JIRA | 1 year ago | Brian Rak
    java.nio.channels.WritePendingException: null
  2. 0

    I'm running Puppet server with a large (>1000) number of nodes, the puppet server software is intermittently throwing this error: {noformat} 2015-07-21 16:00:52,904 WARN [o.e.j.s.HttpChannel] /production/catalog/xxxxx java.nio.channels.WritePendingException: null at org.eclipse.jetty.server.HttpConnection$SendCallback.reset(HttpConnection.java:624) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpConnection$SendCallback.access$100(HttpConnection.java:594) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:479) [puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpChannel.sendResponse(HttpChannel.java:768) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:801) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:142) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:135) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpOutput.close(HttpOutput.java:166) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpWriter.close(HttpWriter.java:49) ~[puppet-server-release.jar:na] at java.io.PrintWriter.close(PrintWriter.java:339) ~[na:1.8.0_51] at ring.util.servlet$set_body.invoke(servlet.clj:86) ~[na:na] at ring.util.servlet$update_servlet_response.invoke(servlet.clj:112) ~[na:na] at puppetlabs.trapperkeeper.services.webserver.jetty9_core$ring_handler$fn__8410.invoke(jetty9_core.clj:410) ~[na:na] at puppetlabs.trapperkeeper.services.webserver.jetty9_core.proxy$org.eclipse.jetty.server.handler.AbstractHandler$ff19274a.handle(Unknown Source) ~[na:na] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1129) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1065) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:95) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:159) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.Server.handle(Server.java:497) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) ~[puppet-server-release.jar:na] at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) [puppet-server-release.jar:na] at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) [puppet-server-release.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) [puppet-server-release.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) [puppet-server-release.jar:na] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_51] {noformat}

    JIRA | 1 year ago | Brian Rak
    java.nio.channels.WritePendingException: null
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.nio.channels.WritePendingException

      null

      at org.eclipse.jetty.server.HttpConnection$SendCallback.reset()
    2. Jetty
      HttpWriter.close
      1. org.eclipse.jetty.server.HttpConnection$SendCallback.reset(HttpConnection.java:624)[puppet-server-release.jar:na]
      2. org.eclipse.jetty.server.HttpConnection$SendCallback.access$100(HttpConnection.java:594)[puppet-server-release.jar:na]
      3. org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:479)[puppet-server-release.jar:na]
      4. org.eclipse.jetty.server.HttpChannel.sendResponse(HttpChannel.java:768)[puppet-server-release.jar:na]
      5. org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:801)[puppet-server-release.jar:na]
      6. org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:142)[puppet-server-release.jar:na]
      7. org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:135)[puppet-server-release.jar:na]
      8. org.eclipse.jetty.server.HttpOutput.close(HttpOutput.java:166)[puppet-server-release.jar:na]
      9. org.eclipse.jetty.server.HttpWriter.close(HttpWriter.java:49)[puppet-server-release.jar:na]
      9 frames
    3. Java RT
      PrintWriter.close
      1. java.io.PrintWriter.close(PrintWriter.java:339)[na:1.8.0_51]
      1 frame
    4. kifshare
      servlet$update_servlet_response.invoke
      1. ring.util.servlet$set_body.invoke(servlet.clj:86)[na:na]
      2. ring.util.servlet$update_servlet_response.invoke(servlet.clj:112)[na:na]
      2 frames
    5. puppetlabs.trapperkeeper.services
      AbstractHandler$ff19274a.handle
      1. puppetlabs.trapperkeeper.services.webserver.jetty9_core$ring_handler$fn__8410.invoke(jetty9_core.clj:410)[na:na]
      2. puppetlabs.trapperkeeper.services.webserver.jetty9_core.proxy$org.eclipse.jetty.server.handler.AbstractHandler$ff19274a.handle(Unknown Source)[na:na]
      2 frames
    6. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1129)[puppet-server-release.jar:na]
      2. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1065)[puppet-server-release.jar:na]
      3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[puppet-server-release.jar:na]
      4. org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)[puppet-server-release.jar:na]
      5. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)[puppet-server-release.jar:na]
      6. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[puppet-server-release.jar:na]
      7. org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:95)[puppet-server-release.jar:na]
      8. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[puppet-server-release.jar:na]
      9. org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:159)[puppet-server-release.jar:na]
      10. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[puppet-server-release.jar:na]
      11. org.eclipse.jetty.server.Server.handle(Server.java:497)[puppet-server-release.jar:na]
      12. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)[puppet-server-release.jar:na]
      13. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[puppet-server-release.jar:na]
      14. org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)[puppet-server-release.jar:na]
      15. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[puppet-server-release.jar:na]
      16. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[puppet-server-release.jar:na]
      16 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_51]
      1 frame