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 98535 - java.lang.IllegalStateException caused by NPE in ProfilingPointsManager
Summary: java.lang.IllegalStateException caused by NPE in ProfilingPointsManager
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-21 18:46 UTC by Alexander Kouznetsov
Modified: 2007-05-08 15:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception (2.94 KB, text/plain)
2007-03-21 18:47 UTC, Alexander Kouznetsov
Details
CPU snapshot (368.81 KB, application/octet-stream)
2007-04-09 12:34 UTC, Alexander Kouznetsov
Details
Exception (2.93 KB, text/plain)
2007-04-09 12:35 UTC, Alexander Kouznetsov
Details
Exception (2.92 KB, text/plain)
2007-04-27 08:09 UTC, Alexander Kouznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2007-03-21 18:46:39 UTC
Profiler 070321
NetBeans IDE Dev (Build 200703201900)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251

Steps to reproduce:
- Insert some profiling points
- Switch between different windows
- RESULT: The following exception is often thrown:
java.lang.IllegalStateException: [Winsys] TopComponent
org.netbeans.modules.java.JavaDataObject$JavaEditor[Certificate.java
[r/o],0,0,766x377,invalid,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=256,maximumSize=,minimumSize=,preferredSize=]
throws runtime exception from its componentShowing() method. Repair it!
	at org.openide.windows.WindowManager.componentShowing(WindowManager.java:322)
        ...
Caused by: java.lang.NullPointerException
	at
org.netbeans.modules.profiler.ppoints.ProfilingPointsManager.documentOpened(ProfilingPointsManager.java:331)
Comment 1 Alexander Kouznetsov 2007-03-21 18:47:06 UTC
Created attachment 39773 [details]
Exception
Comment 2 Tomas Hurka 2007-03-22 11:04:22 UTC
I cannot reproduce it on todays build. Please provide more detailed steps how to reproduce it.
Comment 3 Alexander Kouznetsov 2007-04-09 12:33:39 UTC
Try the following steps:
- Insert three different profiling points in Anagram Game
- Close all editor windows
- Open attached snapshot
- Try Go To Source action for different classes
- RESULT: When new editor window is opened the exception is thrown
Comment 4 Alexander Kouznetsov 2007-04-09 12:34:56 UTC
Created attachment 40615 [details]
CPU snapshot
Comment 5 Alexander Kouznetsov 2007-04-09 12:35:27 UTC
Created attachment 40616 [details]
Exception
Comment 6 J Bachorik 2007-04-20 13:36:46 UTC
fixed in trunk
Comment 7 Alexander Kouznetsov 2007-04-27 08:03:51 UTC
Still reproducible with 
Profiler 070425
NetBeans IDE Dev (Build 070426)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251

The stack trace has been changed slightly:

java.lang.NullPointerException
	at
org.netbeans.modules.profiler.ppoints.ProfilingPointsManager.documentOpened(ProfilingPointsManager.java:341)
	at
org.netbeans.modules.profiler.ppoints.ProfilingPointsAnnotationProvider.annotate(ProfilingPointsAnnotationProvider.java:22)
	at
org.openide.text.CloneableEditorSupport.ensureAnnotationsLoaded(CloneableEditorSupport.java:340)
	at org.openide.text.CloneableEditor.initialize(CloneableEditor.java:251)
	at org.openide.text.CloneableEditor.componentShowing(CloneableEditor.java:149)
	at org.openide.windows.WindowManager.componentShowing(WindowManager.java:320)
Caused: java.lang.IllegalStateException: [Winsys] TopComponent
org.netbeans.modules.java.JavaDataObject$JavaEditor[Bidi.java
[r/o],0,0,902x462,invalid,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=256,maximumSize=,minimumSize=,preferredSize=]
throws runtime exception from its componentShowing() method. Repair it!
	at org.openide.windows.WindowManager.componentShowing(WindowManager.java:322)
...
Comment 8 Alexander Kouznetsov 2007-04-27 08:09:00 UTC
Created attachment 41800 [details]
Exception
Comment 9 J Bachorik 2007-04-27 08:45:06 UTC
fixed in trunk. please, be noticed that since M9 has already been branched and
the issue is not a showstopper it can't be incoroporated into JavaOne preview
Comment 10 Alexander Kouznetsov 2007-05-08 15:15:21 UTC
Verified with
Profiler 070504
NetBeans IDE Dev (Build 070507)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251