This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 205852 - java.io.IOException: Invalid HPROF version or format
Summary: java.io.IOException: Invalid HPROF version or format
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-02 14:03 UTC by Petr Cyhelsky
Modified: 2011-12-07 12:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 183375


Attachments
stacktrace (840 bytes, text/plain)
2011-12-02 14:03 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2011-12-02 14:03:36 UTC
Build: NetBeans IDE 7.1 (Build 201112012200)
VM: Java HotSpot(TM) 64-Bit Server VM, 22.0-b10, Java(TM) SE Runtime Environment, 1.7.0_02-b13
OS: Linux

Stacktrace: 
java.io.IOException: Invalid HPROF version or format
   at org.netbeans.lib.profiler.heap.HprofByteBuffer.readHeader(HprofByteBuffer.java:169)
   at org.netbeans.lib.profiler.heap.HprofMappedByteBuffer.<init>(HprofMappedByteBuffer.java:70)
   at org.netbeans.lib.profiler.heap.HprofByteBuffer.createHprofByteBuffer(HprofByteBuffer.java:89)
   at org.netbeans.lib.profiler.heap.HprofHeap.<init>(HprofHeap.java:129)
   at org.netbeans.lib.profiler.heap.HeapFactory.createHeap(HeapFactory.java:87)
   at org.netbeans.lib.profiler.heap.HeapFactory.createHeap(HeapFactory.java:69)
Comment 1 Petr Cyhelsky 2011-12-02 14:03:38 UTC
Created attachment 113761 [details]
stacktrace
Comment 2 Tomas Hurka 2011-12-02 14:24:40 UTC
Where are steps to reproduce it?
Comment 3 Petr Cyhelsky 2011-12-02 14:45:42 UTC
It is thrown from compare heap dump feature, when the comparison heap dump is in wrong  format - if the same heap dump is opened through open heap dump from main menu no exception is thrown and error message is shown - maybe the behavior should be the same?
Comment 4 Jiri Sedlacek 2011-12-05 14:23:18 UTC
Fixed by http://hg.netbeans.org/profiler-main/rev/658c8af0f2bc.
Comment 5 Quality Engineering 2011-12-07 12:14:46 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/658c8af0f2bc
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #205852 - check hprof file format when comparing heap dumps