java.lang.NullPointerException: null

JIRA | Michael Smith | 7 months 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

    Testing conducted via https://github.com/james-stocks/pxp-agent/blob/fire_and_forget/acceptance/tests/send_undeliverable_messages.rb. When messages are delivered over an extended period, with the client frequently connecting and disconnecting, we see occasional messages about {code} 2016-08-04 06:56:11,039 INFO [qtp773892839-21] [o.s.j.c.CachingConnectionFactory] Established shared JMS Connection: ActiveMQConnection {id=ID:avs2m7wxujv5hro-51257-1470317380794-659:1,clientId=null,started=false} 2016-08-04 06:56:11,041 TRACE [DefaultMessageListenerContainer-1] [p.p.b.activemq] Consuming message b38cd34d-dca3-42b8-be8c-d2ba0d7a0dd2 for ["pcp://test-development/ruby-pcp-client-12097"] from accept 2016-08-04 06:56:11,042 TRACE [DefaultMessageListenerContainer-1] [p.p.b.activemq] Delivering message b38cd34d-dca3-42b8-be8c-d2ba0d7a0dd2 for pcp://test-development/ruby-pcp-client-12097 to delivery queue 2016-08-04 06:56:11,042 INFO [DefaultMessageListenerContainer-1] [o.s.j.c.CachingConnectionFactory] Established shared JMS Connection: ActiveMQConnection {id=ID:avs2m7wxujv5hro-51257-1470317380794-661:1,clientId=null,started=false} 2016-08-04 06:56:11,045 ERROR [DefaultMessageListenerContainer-1] [p.p.b.core] Error in deliver-message java.lang.NullPointerException: null at puppetlabs.trapperkeeper.services.webserver.experimental.jetty9_websockets$eval30229$fn__30230.invoke(jetty9_websockets.clj:31) ~[na:na] at puppetlabs.trapperkeeper.services.webserver.experimental.jetty9_websockets$eval30206$fn__30207$G__30197__30214.invoke(jetty9_websockets.clj:21) ~[na:na] at puppetlabs.trapperkeeper.services.webserver.experimental.jetty9_websockets$eval30233$fn__30234.invoke(jetty9_websockets.clj:27) ~[na:na] at puppetlabs.trapperkeeper.services.webserver.experimental.jetty9_websockets$eval30206$fn__30207$G__30197__30214.invoke(jetty9_websockets.clj:21) ~[na:na] at puppetlabs.trapperkeeper.services.webserver.experimental.jetty9_websockets$eval30237$fn__30250.invoke(jetty9_websockets.clj:40) ~[na:na] at puppetlabs.experimental.websockets.client$eval15968$fn__15980$G__15955__15987.invoke(client.clj:3) ~[na:na] {code} This appears to happen due to the pattern {code} 2016-08-04 06:56:11,033 DEBUG [DefaultMessageListenerContainer-1] [p.p.b.core] Delivering c456644e-9e61-4d07-ab76-ab15abb91117 for pcp://test-development/ruby-pcp-client-12097 to test-development at /10.32.162.203:50036 2016-08-04 06:56:11,034 DEBUG [qtp773892839-17] [p.p.b.core] client test-development disconnected from /10.32.162.203:50036 1000 ... 2016-08-04 06:56:11,045 ERROR [DefaultMessageListenerContainer-1] [p.p.b.core] Error in deliver-message ... 2016-08-04 06:56:11,046 TRACE [DefaultMessageListenerContainer-1] [p.p.b.core] Failed to deliver c456644e-9e61-4d07-ab76-ab15abb91117 for pcp://test-development/ruby-pcp-client-12097: java.lang.NullPointerException {code} Full log at https://gist.github.com/james-stocks/e7c850fab49074c66bd201ddc9ac59ce. I believe this is normal behavior: in that occasionally the broker will attempt to deliver a message to a client just as it disconnects, and fail. The broker takes the correct action - reschedule the message for delivery later - but the ERROR report makes it appear to be abnormal.

    JIRA | 7 months ago | Michael Smith
    java.lang.NullPointerException: null

    Root Cause Analysis

    1. java.lang.NullPointerException

      null

      at puppetlabs.trapperkeeper.services.webserver.experimental.jetty9_websockets$eval30229$fn__30230.invoke()
    2. puppetlabs.trapperkeeper.services
      jetty9_websockets$eval30237$fn__30250.invoke
      1. puppetlabs.trapperkeeper.services.webserver.experimental.jetty9_websockets$eval30229$fn__30230.invoke(jetty9_websockets.clj:31)[na:na]
      2. puppetlabs.trapperkeeper.services.webserver.experimental.jetty9_websockets$eval30206$fn__30207$G__30197__30214.invoke(jetty9_websockets.clj:21)[na:na]
      3. puppetlabs.trapperkeeper.services.webserver.experimental.jetty9_websockets$eval30233$fn__30234.invoke(jetty9_websockets.clj:27)[na:na]
      4. puppetlabs.trapperkeeper.services.webserver.experimental.jetty9_websockets$eval30206$fn__30207$G__30197__30214.invoke(jetty9_websockets.clj:21)[na:na]
      5. puppetlabs.trapperkeeper.services.webserver.experimental.jetty9_websockets$eval30237$fn__30250.invoke(jetty9_websockets.clj:40)[na:na]
      5 frames
    3. puppetlabs.experimental.websockets
      client$eval15968$fn__15980$G__15955__15987.invoke
      1. puppetlabs.experimental.websockets.client$eval15968$fn__15980$G__15955__15987.invoke(client.clj:3)[na:na]
      1 frame