System Report: only "full" is working

Description

The online system Report works only is I select Full (200MB+)
I left the output field empty:

xml, text result in blank pages
.zip results in an empty zip file
selecting ftp results in NullPointerexception:

Running the system-report tool from command line give me the same Issue like #NMS-4221

Environment

SLES 10 Java 1.5.0_18-b02

Acceptance / Success Criteria

None

Attachments

1
  • 27 Apr 2011, 10:36 AM

Lucidchart Diagrams

Activity

Show:

Daniel Hammon April 28, 2011 at 3:21 AM

Hi Seth,

thanks for fixing that.
As I don´t use this feature right now, I´ll wait for 1.8.12.

Daniel

Seth Leger April 27, 2011 at 1:57 PM

OK it appears that your JVM is throwing a reflection exception when trying to execute the toString() method when gathering the data for the Java information plugin. After asking around, most of the system report testing was done with Java 1.6 instead of the 1.5 version that you are using.

I'm guessing that Sun improved the MXBean classes in Java 1.6 so that they support the toString() method (which would make sense because toString() is a standard object method in Java) but that this call fails when you are using Java 1.5. I've gone ahead and removed the calls inside the plugin that call toString() because they were just for logging anyway.

So to get your system working, you have several options:

  • Don't use the Java information plugin when running the system report since it is the plugin that is causing problems.

  • Upgrade to Java 1.6 because all of our unit tests indicate that the plugin will always work properly with 1.6.

  • Download the latest source code to OpenNMS 1.8 (which contains my toString() fix), rebuild the features/system-report project, copy the resulting JAR file to /opt/opennms/lib/opennms_system_report.jar, and restart OpenNMS. This should fix the issue when using Java 1.5.

  • Wait until the next version of 1.8 is released and upgrade to it when it is available.

Thanks!

Daniel Hammon April 27, 2011 at 10:37 AM

I used the default with everything checked.
The stacktrace is attached and it looks very similar if I selct text or xml.

Daniel Hammon April 27, 2011 at 10:36 AM

system-report stacktrace from jetty.log

Seth Leger April 27, 2011 at 10:28 AM

Hi Daniel,

If you are not seeing any output when you have all of the plugins selected, then something is wrong. The JVM, OS, OpenNMS, and Top Event plugins should produce output regardless of the formatter. Can you check your jetty.log file to see if any exceptions are being generated when you run the system report from the UI? Thanks,

Seth

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

PagerDuty

Created February 23, 2011 at 11:35 AM
Updated January 27, 2017 at 4:20 PM
Resolved April 26, 2011 at 11:59 PM

Flag notifications