OpenNMS
  1. OpenNMS
  2. NMS-4118

null pointer exception from Admin ? Instrumentation Log Reader jsp page

    Details

    • Bugzilla Id:
      4083

      Description

      When I click on Admin ? Instrumentation Log Reader I get an error.

      This is a stock install of opennms 1.8.3 (via http://debian.opennms.org package archive) on Ubuntu 10.04.

      I'll attach the relevant error from jetty.log.

        Issue Links

          Activity

          Hide
          Adam Monsen added a comment -
              • NMS-4119 has been marked as a duplicate of this bug. ***
          Show
          Adam Monsen added a comment - NMS-4119 has been marked as a duplicate of this bug. ***
          Hide
          Adam Monsen added a comment -

          Created an attachment (id=1078)
          javax.el.ELException: java.lang.NullPointerException from jetty.log

          Show
          Adam Monsen added a comment - Created an attachment (id=1078) javax.el.ELException: java.lang.NullPointerException from jetty.log
          Hide
          Seth Leger added a comment -

          This was caused by trying to inspect the modification time on a null log entry (probably when the instrumentation log is empty). I've added a check for this case that will prevent this problem. Marking as fixed.

          commit e1373eda83c1df87b54e485be6f6bb05d9de94cb

          Show
          Seth Leger added a comment - This was caused by trying to inspect the modification time on a null log entry (probably when the instrumentation log is empty). I've added a check for this case that will prevent this problem. Marking as fixed. commit e1373eda83c1df87b54e485be6f6bb05d9de94cb
          Hide
          Jeff Gehlbach added a comment -

          Found a couple more NPE sources. Also, we should indicate to the user when we don't have any data and provide a hint on configuring logging so that we'll get some.

          Show
          Jeff Gehlbach added a comment - Found a couple more NPE sources. Also, we should indicate to the user when we don't have any data and provide a hint on configuring logging so that we'll get some.
          Hide
          Jeff Gehlbach added a comment -

          Additional fixes pushed to 1.8 in commit 758b39c0c41d0c6a891ea6f3da53c7d6c736a93d and cherry-picked to master in commit 3d441165408e1f65750e5f918387588f88c84e3c.

          Show
          Jeff Gehlbach added a comment - Additional fixes pushed to 1.8 in commit 758b39c0c41d0c6a891ea6f3da53c7d6c736a93d and cherry-picked to master in commit 3d441165408e1f65750e5f918387588f88c84e3c.

            People

            • Assignee:
              Jeff Gehlbach
              Reporter:
              Adam Monsen
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development