Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 174727 - NPE in OQL Console
NPE in OQL Console
Product: profiler
Classification: Unclassified
Component: Engine
All All
: P3 (vote)
: 6.x
Assigned To: Tomas Hurka
Depends on:
  Show dependency treegraph
Reported: 2009-10-16 11:02 UTC by Jiri Sedlacek
Modified: 2009-12-04 02:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT

heap dump (767.40 KB, application/octet-stream)
2009-10-16 11:04 UTC, Jiri Sedlacek

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Sedlacek 2009-10-16 11:02:59 UTC
Some heap dumps appear to be kind of broken, String.value contains null for some instances. This almost consistently
happens for me when dumping from JDK 6u16.

The problem is that for some OQL queries this could cause a NPE being thrown from the HeapWalker which is not very nice.
Try to run the following query for the attached heap dump:

  select toHtml(a) + " = " + a.toString() from java.lang.String a where a.hash == 0

A workaround seems to be using this modified query:

  select toHtml(a) + " = " + a.value.toString() from java.lang.String a where a.hash == 0

which reports javax.script.ScriptException in the Query Results view but doesn't affect the HeapWalker itself.
Comment 1 Jiri Sedlacek 2009-10-16 11:04:57 UTC
Created attachment 89603 [details]
heap dump
Comment 2 Tomas Hurka 2009-10-16 14:13:28 UTC
Fixed in profiler-main

changeset:   149337:09ba11a09821
user:        Tomas Hurka <>
date:        Fri Oct 16 15:11:29 2009 +0200
summary:     bugfix #174727, value field in String instacne can be null
Comment 3 Quality Engineering 2009-10-17 11:27:37 UTC
Integrated into 'main-golden', will be available in build *200910170201* on (upload may still be in progress)
User: Tomas Hurka <>
Log: bugfix #174727, value field in String instacne can be null

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo