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 251067 - NPE in j.lang.system:-2
Summary: NPE in j.lang.system:-2
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-10 12:43 UTC by Jiri Sedlacek
Modified: 2015-03-27 03:23 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 Jiri Sedlacek 2015-03-10 12:43:21 UTC
Attach to External Process, Settings: Local, Dynamic   
1. From "Select Process To Attach" dialog,click JDev process
2. Profile Objects, All Classes
3. From "Results" window, right-click int[]=>Profile Class
4. Click "Apply" toolbar button,"Question" dialog displayed
5. Click "Yes" button   

Uncaught exception 
java.lang.NullPointerException 
  j.lang.System.arraycopy(Native Method) 
  org.netbeans.lib.profiler.instrumentation.SingleMethodScaner.initBytecodesArray(SingleMethodScaner.java:198) 

See the related bugdb for details.
Comment 1 Tomas Hurka 2015-03-18 09:19:22 UTC
I am not able to reproduce it.
Comment 2 Jiri Sedlacek 2015-03-23 12:32:19 UTC
Perfectly reproducible following exactly the steps in bugdb. Please check again.
Comment 3 Tomas Hurka 2015-03-24 13:57:10 UTC
Ok, fixed in profiler-main

changeset:   285200:477d044bc204
user:        Tomas Hurka <thurka@netbeans.org>
date:        Tue Mar 24 14:55:55 2015 +0100
summary:     bugfix #251067, STILL_ALIVE notification added to inform client that profiler application is still running; cacheLoadedClasses() request merged together to speedup getClassFileBytes()
Comment 4 Quality Engineering 2015-03-27 03:23:16 UTC
Integrated into 'main-silver', will be available in build *201503270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/477d044bc204
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #251067, STILL_ALIVE notification added to inform client that profiler application is still running; cacheLoadedClasses() request merged together to speedup getClassFileBytes()