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 213236 - NullPointerException at org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor2.checkAndScanMethod
Summary: NullPointerException at org.netbeans.lib.profiler.instrumentation.RecursiveMe...
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-30 12:51 UTC by Petr Cyhelsky
Modified: 2012-06-05 06:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 155191


Attachments
stacktrace (2.13 KB, text/plain)
2012-05-30 12:51 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2012-05-30 12:51:18 UTC
Build: NetBeans IDE Dev (Build 201205300001)
VM: Java HotSpot(TM) Client VM, 23.0-b21, Java(TM) SE Runtime Environment, 1.7.0_04-b20
OS: Linux

User Comments:
GUEST: profiling project

GUEST: tried to attach the profiler. Does not work totally fluent. 

Seeing lots of errors like this: java.io.IOException: JFluid wire protocol error: code does not correspond to command or response. Value -1

cyhelsky: instrumented cpu profiling -> EAGER scheme




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor2.checkAndScanMethod(RecursiveMethodInstrumentor2.java:374)
   at org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor2.checkAndScanMethod(RecursiveMethodInstrumentor2.java:435)
   at org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor2.processInvoke(RecursiveMethodInstrumentor2.java:340)
   at org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor.scanBytecode(RecursiveMethodInstrumentor.java:299)
   at org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor2.checkAndScanMethod(RecursiveMethodInstrumentor2.java:422)
   at org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor2.processInvoke(RecursiveMethodInstrumentor2.java:340)
Comment 1 Petr Cyhelsky 2012-05-30 12:51:24 UTC
Created attachment 120066 [details]
stacktrace
Comment 2 Petr Cyhelsky 2012-06-01 07:37:29 UTC
steps: profile anagram game with custom settings where instrumentation scheme is set to eager -> NPE
Comment 3 Tomas Hurka 2012-06-01 18:20:39 UTC
Fixed in profiler-main

changeset:   223186:e60cd94375b8
user:        Tomas Hurka <thurka@netbeans.org>
date:        Fri Jun 01 20:18:10 2012 +0200
summary:     bugfix #213236, invoke addSubclass() only if addedClassInfo is not null
Comment 4 Quality Engineering 2012-06-05 06:04:24 UTC
Integrated into 'main-golden', will be available in build *201206050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e60cd94375b8
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #213236, invoke addSubclass() only if addedClassInfo is not null