NullPointerException issues (Java)

Problem

If your log data shows SEVERE: or ERROR: with NullPointerException issues, there may be issues that are interfering with reporting.

Ensure you have the most recent version of New Relic's Java agent to continue with these troubleshooting tips.

Solution

Case-sensitive searches will be helpful, as lowercase error: often appears in logs.

  1. Search your Java agent log file for lines with SEVERE: and ERROR: NullPointerException.
  2. If you find any lines with these messages, gather information to get support at New Relic.

Cause

Java agents between version 3.0.0 and 3.2.3 would incorrectly log the error messages. For example:

ERROR: javax/servlet/ServletOutputStream is marked as a weaved class, but no methods are matched to be weaved.

This was entirely erroneous and is not a cause for concern. If are still using these versions, update to the most recent version of New Relic's Java agent.

For more help

Join the discussion about Java monitoring in the New Relic Online Technical Community! The Technical Community is a public platform to discuss and troubleshoot your New Relic toolset.

If you need additional help, get support at support.newrelic.com.