JDK-8023105 : jmap fails with NullPointerException at HeapHprofBinWriter.writeSymbolID()
  • Type: Bug
  • Component: tools
  • Sub-Component: hprof
  • Affected Version: 7u25
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: x86
  • Submitted: 2013-08-15
  • Updated: 2014-02-07
  • Resolved: 2013-11-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbd_minorResolved
Related Reports
Duplicate :  
Description
Java SE 7 Update 25 64-bit jmap fails with NullPointerException at 
HeapHprofBinWriter.writeSymbolID(HeapHprofBinWriter.java:905).


% /jdk1.7.0_25/bin/amd64/jmap -dump:format=b,file=heap.bin /jdk1.7.0_25/bin/amd64/java fag_core.6820
Attaching to core fag_core.6820 from executable /jdk1.7.0_25/bin/amd64/java, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 23.25-b01
Dumping heap to heap.bin ...
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at sun.tools.jmap.JMap.runTool(JMap.java:197)
        at sun.tools.jmap.JMap.main(JMap.java:128)
Caused by: java.lang.NullPointerException
        at sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeSymbolID(HeapHprofBinWriter.java:905)
        at sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeFieldDescriptors(HeapHprofBinWriter.java:743)
        at sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeClassDumpRecord(HeapHprofBinWriter.java:508)
        at sun.jvm.hotspot.utilities.HeapHprofBinWriter.access$000(HeapHprofBinWriter.java:297)
        at sun.jvm.hotspot.utilities.HeapHprofBinWriter$1.visit(HeapHprofBinWriter.java:446)
        at sun.jvm.hotspot.memory.SystemDictionary$2.visit(SystemDictionary.java:179)
        at sun.jvm.hotspot.memory.Dictionary.classesDo(Dictionary.java:69)
        at sun.jvm.hotspot.memory.SystemDictionary.classesDo(SystemDictionary.java:190)
        at sun.jvm.hotspot.memory.SystemDictionary.allClassesDo(SystemDictionary.java:183)
        at sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeClassDumpRecords(HeapHprofBinWriter.java:443)
        at sun.jvm.hotspot.utilities.HeapHprofBinWriter.write(HeapHprofBinWriter.java:413)
        at sun.jvm.hotspot.tools.HeapDumper.run(HeapDumper.java:56)
        at sun.jvm.hotspot.tools.Tool.start(Tool.java:221)
        at sun.jvm.hotspot.tools.HeapDumper.main(HeapDumper.java:77)
        ... 6 more
% 
Comments
Oops yes.
20-11-2013

I think you meant that you created JDK-8028623, but yes, go ahead and close this one.
19-11-2013

I just created 8023105 to describe this issue, didn't realise that there was already a Java bug open. I would like to close this as a duplicate of that as I've made more notes there.
19-11-2013

7u40-defer-request justification: Unfortunately too late for 7u40, will look at this for 7u60.
16-08-2013