System Report: only "full" is working
Description
Environment
Acceptance / Success Criteria
Attachments
- 27 Apr 2011, 10:36 AM
Lucidchart Diagrams
Activity
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
Details
Assignee
Seth LegerSeth LegerReporter
Daniel HammonDaniel HammonComponents
Affects versions
Priority
Major
Details
Details
Assignee
Reporter
Components
Affects versions
Priority
PagerDuty
PagerDuty Incident
PagerDuty
PagerDuty Incident
PagerDuty

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