| Summary: | Intermittently a NullPointerException when viewing db serialized correlations is thrown | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Alex Nan <apnan> | ||||
| Component: | TPTP | Assignee: | Alex Nan <apnan> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P1 | CC: | jkubasta, slavescu | ||||
| Version: | unspecified | Keywords: | plan | ||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 2000 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Alex Nan
A similar problem happens when generating a time correlation from the log view, i.e open a db serialized log file in the log view, right click and choose Correlation by Time: Caused by: java.lang.NullPointerException at org.eclipse.hyades.sd.logc.internal.loader.LogInteractions.createLogGraphNode(LogInteractions.java:1859) at org.eclipse.hyades.sd.logc.internal.loader.LogInteractions.generateGraphNodes(LogInteractions.java:1322) at org.eclipse.hyades.sd.logc.internal.loader.LogInteractions$3.run(LogInteractions.java:1016) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.hyades.sd.logc.internal.loader.LogInteractions.generateDiagram(LogInteractions.java:1012) at org.eclipse.hyades.sd.logc.internal.loader.LogInteractions.createPage(LogInteractions.java:1535) In 4.5 i5 the following exception occurrs: java.lang.NullPointerException at org.eclipse.hyades.sd.logc.internal.loader.LogInteractions$Implementation.createLogGraphNode(LogInteractions.java:2144) at org.eclipse.hyades.sd.logc.internal.loader.LogInteractions$Implementation.generateGraphNodes(LogInteractions.java:1607) at org.eclipse.hyades.sd.logc.internal.loader.LogInteractions$3.run(LogInteractions.java:1301) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.hyades.sd.logc.internal.loader.LogInteractions$Implementation.generateDiagram(LogInteractions.java:1297) at org.eclipse.hyades.sd.logc.internal.loader.LogInteractions$Implementation.createPage(LogInteractions.java:1820) at org.eclipse.hyades.sd.logc.internal.loader.LogInteractions$2.run(LogInteractions.java:807) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) Note that due to the refactoring work the line of code that fails has changed. The root cause of the problem is the fact that some CBEs don't have the parent (TRCAgent) set when loaded from the db. When opening the log interactions view from a monitor or host level the following exception occurrs sometimes: NullPointerException at org.eclipse.hyades.sd.logc.internal.loader.LogInteractions$Implementation.createLogGraphNode(LogInteractions.java:2026) at org.eclipse.hyades.sd.logc.internal.loader.LogInteractions$Implementation.generateGraphNodes(LogInteractions.java:1607) at org.eclipse.hyades.sd.logc.internal.loader.LogInteractions$3.run(LogInteractions.java:1301) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.hyades.sd.logc.internal.loader.LogInteractions$Implementation.generateDiagram(LogInteractions.java:1297) at org.eclipse.hyades.sd.logc.internal.loader.LogInteractions$Implementation.createPage(LogInteractions.java:1820) at org.eclipse.hyades.sd.logc.internal.loader.LogInteractions$2.run(LogInteractions.java:807) Created attachment 91950 [details] Patch for bug 204322 Attaching patch for bug 204322. Fixed. Verified with TPTP-4.5.0-200806050915. Closing. |