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 158878 - Cannot open heap dump
Summary: Cannot open heap dump
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: Macintosh (x86) Mac OS X
: P2 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2009-02-20 10:26 UTC by Tomas Hurka
Modified: 2009-05-22 12:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2009-02-20 10:26:11 UTC
this Mac OS X & JDK 6 only bug.
No heap dump can be opened with Mac OS X & JDK 6 and latest NetBeans dev. build.

java.lang.NullPointerException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.netbeans.modules.profiler.heapwalk.oql.OQLEngine.init(OQLEngine.java:343)
        at org.netbeans.modules.profiler.heapwalk.oql.OQLEngine.<init>(OQLEngine.java:54)
        at org.netbeans.modules.profiler.heapwalk.OQLController.<init>(OQLController.java:83)
        at org.netbeans.modules.profiler.heapwalk.HeapFragmentWalker.<init>(HeapFragmentWalker.java:82)
        at org.netbeans.modules.profiler.heapwalk.HeapWalker.createMainFragment(HeapWalker.java:168)
        at org.netbeans.modules.profiler.heapwalk.HeapWalker.<init>(HeapWalker.java:92)
        at org.netbeans.modules.profiler.heapwalk.HeapWalker.<init>(HeapWalker.java:96)
        at org.netbeans.modules.profiler.heapwalk.HeapWalkerManager.openHeapWalker(HeapWalkerManager.java:165)
        at org.netbeans.modules.profiler.heapwalk.ui.OpenHeapWalkerAction$1.run(OpenHeapWalkerAction.java:96)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
SEVERE [org.netbeans.lib.profiler.infolog]: Cannot create HeapWalker [/Users/thurka/Projects/Source/TestApp/small_heap.bin]
Comment 1 Tomas Hurka 2009-02-20 10:28:32 UTC
javascript engine is not available on Mac OS X JDK 6. 

workaround: Run NetBeans on JDK5.
Comment 2 Tomas Hurka 2009-02-20 13:41:46 UTC
Fixed in profiler-main
changeset:   117667:ea82989ff908
user:        Tomas Hurka <thurka@netbeans.org>
date:        Fri Feb 20 14:37:59 2009 +0100
summary:     bugfix #158878, make sure we have JavaScript engine

Comment 3 Quality Engineering 2009-03-08 07:59:33 UTC
Integrated into 'main-golden', will be available in build *200903080201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ea82989ff908
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #158878, make sure we have JavaScript engine