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 92576 - Load Heap Dump shold show any message if wrong format
Summary: Load Heap Dump shold show any message if wrong format
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
: 98592 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-01-15 17:11 UTC by Ivan Sidorkin
Modified: 2007-10-17 10:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception (1.07 KB, application/octet-stream)
2007-02-05 13:06 UTC, Alexander Kouznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Sidorkin 2007-01-15 17:11:16 UTC
- Select im main menu Profiler->Load Heap Dump...
- select any non Heap Dump file and press Open Button

nothing happend plus exception in log

 Will be good to have Error message about wrong format 
Also will be nice to use filter for Open Heap Dump File dialog
Comment 1 Jiri Sedlacek 2007-01-15 18:11:37 UTC
Filter is not defined because heap dumps in hprof format can have several
extensions - .hprof, .bin and others. Will show an error message when dump
cannot be loaded.
Comment 2 Alexander Kouznetsov 2007-02-05 12:21:00 UTC
Reproduced with:

Profiler 070205
NetBeans IDE Dev (Build 200702011900)
1.5.0_10; Java HotSpot(TM) Client VM 1.5.0_10-b03
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251

Exception (attached) is thrown when incorrect file is selected:
java.nio.BufferUnderflowException

Since there are several common extentsions it would be better to provide the
appropriate filter as well as All Files filter. The absence of filter seems to
be a usability issue.
Comment 3 Alexander Kouznetsov 2007-02-05 13:06:42 UTC
Created attachment 38040 [details]
Exception
Comment 4 Tomas Hurka 2007-03-23 09:50:41 UTC
*** Issue 98592 has been marked as a duplicate of this issue. ***
Comment 5 Jiri Sedlacek 2007-08-20 17:02:57 UTC
Implemented a dialog notifying about loading heapdump failure. Still needs to correctly handle 
java.nio.Buffer.nextGetIndex and provide correct localized message in IOException. Reassigning.
Comment 6 Tomas Hurka 2007-09-12 09:50:41 UTC
Fixed in trunk.
Comment 7 Ivan Sidorkin 2007-10-17 10:51:01 UTC
verified in NetBeans IDE 6.0 Beta 2 (Build 200710160000)