java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • This is probably in the same neighborhood as this issue: https://java.net/jira/browse/JERSEY-2683 However this one (the NPE) happens much more often. It tends to show up where servers are loaded and there is no easy way to repro it. Happens a few times a day on loaded servers. What's interesting about this one is that most of the time it occurs 2-3 times a day but in some rare cases a running server gets into a situation where this error appears and then it just won't stop appearing rendering all following servlet requests with errors. {code} org.eclipse.jetty.servlet.ServletHandler: /pixel.gif java.lang.NullPointerException: null ! at java.util.LinkedList$ListItr.next(LinkedList.java:891) ! at com.sun.jersey.spi.container.servlet.WebComponent$Writer.writeHeaders(WebComponent.java:339) ! at com.sun.jersey.spi.container.servlet.WebComponent$Writer.finish(WebComponent.java:266) ! at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:311) ! at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1510) ! at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419) ! at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409) ! at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409) ! at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:540) ! at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:715) ! at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) ! at io.dropwizard.jetty.NonblockingServletHolder.handle(NonblockingServletHolder.java:49) ! at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1515) ! at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:83) ! at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:295) ! at io.dropwizard.jetty.BiDiGzipFilter.doFilter(BiDiGzipFilter.java:127) ! at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1486) ! at io.dropwizard.servlets.ThreadNameFilter.doFilter(ThreadNameFilter.java:29) ! at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1486) ! at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:519) ! at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1097) ! at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:448) ! at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1031) ! at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:136) ! at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) ! at com.codahale.metrics.jetty9.InstrumentedHandler.handle(InstrumentedHandler.java:173) ! at io.dropwizard.jetty.RoutingHandler.handle(RoutingHandler.java:51) ! at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) ! at org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:162) ! at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) ! at org.eclipse.jetty.server.Server.handle(Server.java:446) ! at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:271) ! at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:246) ! at org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:358) ! at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:601) ! at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:532) ! at java.lang.Thread.run(Thread.java:745) {code} Related discussion where I tried to tackle this without success: https://groups.google.com/forum/#!topic/dropwizard-user/xQZxPfjz6eI Thank you!
    via by rantav,
  • GitHub comment 870#139157510
    via GitHub by nicolas-f
    ,
  • GitHub comment 7#191298412
    via GitHub by ctoestreich
    ,
  • Build 350 chunkloader crash
    via GitHub by gustav9797
    ,
    • java.lang.NullPointerException: null at java.util.LinkedList$ListItr.next(LinkedList.java:891) at com.sun.jersey.spi.container.servlet.WebComponent$Writer.writeHeaders(WebComponent.java:339) at com.sun.jersey.spi.container.servlet.WebComponent$Writer.finish(WebComponent.java:266) at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:311) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1510) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:540) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:715) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at io.dropwizard.jetty.NonblockingServletHolder.handle(NonblockingServletHolder.java:49) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1515) at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:83) at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:295) at io.dropwizard.jetty.BiDiGzipFilter.doFilter(BiDiGzipFilter.java:127) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1486) at io.dropwizard.servlets.ThreadNameFilter.doFilter(ThreadNameFilter.java:29) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1486) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:519) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1097) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:448) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1031) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:136) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at com.codahale.metrics.jetty9.InstrumentedHandler.handle(InstrumentedHandler.java:173) at io.dropwizard.jetty.RoutingHandler.handle(RoutingHandler.java:51) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:162) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:446) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:271) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:246) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:358) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:601) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:532) at java.lang.Thread.run(Thread.java:745)

    Users with the same issue

    Unknown visitor1 times, last one,