Integrated: 7337: JMC fails to parse JFR with events from WebLogic Server

Guru Hb ghb at openjdk.java.net
Fri Jul 30 13:36:32 UTC 2021


On Fri, 30 Jul 2021 12:43:09 GMT, Guru Hb <ghb at openjdk.org> wrote:

> RC : NPE due to Invalid packageFieldIndex. 
> Disassembled the original jfr (attached in jbs) which had 3 chunks out of which the last chunk "WLF_3.jfr" with Event type (a) "com.oracle.weblogic.servlet.ServletRequestRunEvent" was causing the NPE. This could be a corrupt event or in complete event captured in the jfr.  
> This is a assertive fix and tried debugging the metadata parse (for any Ignored exception) and didn't find any noticeable place which can lead to events not indexed while collecting the events. 
> 
> After this fix compared the number of expected events of (a) with "jfr" tool in "jmc" (for WLF_3.jfr there were 32 events in (a) ) and didn't find any missing ones. 
> 
> Steps to re-produce NPE : load [WLS_3.jfr](https://bugs.openjdk.java.net/secure/attachment/95852/WLF_3.jfr.lz4)

This pull request has now been integrated.

Changeset: ad9b602d
Author:    Guru Hb <ghb at openjdk.org>
URL:       https://git.openjdk.java.net/jmc/commit/ad9b602d9219c726239f848672ee27da96611254
Stats:     8 lines in 1 file changed: 2 ins; 0 del; 6 mod

7337: JMC fails to parse JFR with events from WebLogic Server

Reviewed-by: hirt

-------------

PR: https://git.openjdk.java.net/jmc/pull/293


More information about the jmc-dev mailing list