Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » Mat 1.50 failed on NullPointerException when parsing HPROF(MAT failed on NPE)
Mat 1.50 failed on NullPointerException when parsing HPROF [message #1720186] Fri, 15 January 2016 03:42 Go to next message
II HH is currently offline II HHFriend
Messages: 1
Registered: January 2016
Junior Member
I have a 617K HPROF file generated from JDK8 JVM . I am unable to parse it via MAT even though the HPROF is parsed OK through NetBeans IDE.

The error from MAT is very terse (see attached PNG)
Any assistance would be appreciated.

The HPROF file was generated from RedHat/JDK 8 and MAT runs on windows 7 using the same JDK8 version

Thanks

  • Attachment: MAT.NPE.png
    (Size: 35.90KB, Downloaded 616 times)
Re: Mat 1.50 failed on NullPointerException when parsing HPROF [message #1720465 is a reply to message #1720186] Mon, 18 January 2016 18:44 Go to previous message
Philippe Kernevez is currently offline Philippe KernevezFriend
Messages: 1
Registered: January 2016
Junior Member
I have the same error with a dump made on a linux (hot spot 1.8.0_65) that I try to read on both Windows or Mac.
I try MemoryAnalyzer with a Jdk 7 (1.7.0_60) or 8 (1.8.0_65), but it neither succeed.
I had the same problem with a dump made from the live process and from a gcore dump file. And from a binary format.

I don't have more information in the error windows, but I found that in the '.log' file ":

!ENTRY org.eclipse.mat.ui 1 0 2016-01-18 19:26:47.676
!MESSAGE Detected compressed references, because with uncompressed 64-bit references the array at 0x6c00009b0 would overlap the array at 0x6c0000580

!ENTRY org.eclipse.mat.ui 1 0 2016-01-18 19:26:47.787
!MESSAGE Heap jvm.hprof contains 501 265 objects

!ENTRY org.eclipse.core.jobs 4 2 2016-01-18 19:26:48.130
!MESSAGE An internal error occurred during: "Parsing heap dump from 'jvm.hprof'".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.mat.hprof.HprofParserHandlerImpl.resolveClassHierarchy(HprofParserHandlerImpl.java:587)
	at org.eclipse.mat.hprof.Pass2Parser.readInstanceDump(Pass2Parser.java:205)
	at org.eclipse.mat.hprof.Pass2Parser.readDumpSegments(Pass2Parser.java:159)
	at org.eclipse.mat.hprof.Pass2Parser.read(Pass2Parser.java:89)
	at org.eclipse.mat.hprof.HprofIndexBuilder.fill(HprofIndexBuilder.java:94)
	at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.parse(SnapshotFactoryImpl.java:222)
	at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.openSnapshot(SnapshotFactoryImpl.java:126)
	at org.eclipse.mat.snapshot.SnapshotFactory.openSnapshot(SnapshotFactory.java:145)
	at org.eclipse.mat.ui.snapshot.ParseHeapDumpJob.run(ParseHeapDumpJob.java:83)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.mat.ui 1 0 2016-01-18 19:27:08.010
!MESSAGE Detected compressed references, because with uncompressed 64-bit references the array at 0x6c00009b0 would overlap the array at 0x6c0000580

!ENTRY org.eclipse.mat.ui 1 0 2016-01-18 19:27:08.124
!MESSAGE Heap jvm.hprof contains 501 265 objects

!ENTRY org.eclipse.core.jobs 4 2 2016-01-18 19:27:08.359
!MESSAGE An internal error occurred during: "Parsing heap dump from 'jvm.hprof'".
!STACK 0
java.lang.NullPointerException


Does any body have an idea of the problem ?
Philippe
Previous Topic:MAT stuck at Computing Dominators
Next Topic:retained of linkedhashmap does not include values?
Goto Forum:
  


Current Time: Fri Mar 29 15:02:21 GMT 2024

Powered by FUDForum. Page generated in 0.02340 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top