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 61420 - Profiler throws NullPointerExc when starting
Summary: Profiler throws NullPointerExc when starting
Status: CLOSED WORKSFORME
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: iformanek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-26 16:45 UTC by mullan
Modified: 2007-02-12 22:02 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 mullan 2005-07-26 16:45:13 UTC
Here is the trace/info from the message log:

Profiler.attachToApp: ***************************************************
Profiler.attachToApp: profiling settings --------------------------------
name: Preset: Entire Application
profilingType =8
overrideGlobalSettings =false
workingDir =
jvmArgs: 
portNo =5140
javaPlatform =<project>
threadsMonitoringEnabled =false
cpuProfilingType =0
instrScheme =3
threadCPUTimerOn =false
instrumentGetterSetterMethods =true
instrumentEmptyMethods =false
instrumentMethodInvoke =true
instrumentSpawnedThreads =true
nProfiledThreadsLimit =32
sortResultsByThreadCPUTime =false
samplingInterval =10
instrumentationRootMethods =[Source Code defined via methods: 1 methods:
  class: null
    method: main  ([Ljava/lang/String;)V
  ]
codeFragmentSelection =null
codeRegionCPUResBufSize =1000
runGCOnGetResultsInMemoryProfiling =true
objAllocStackSamplingInterval =10
objAllocStackSamplingDepth =0
selectedInstrFilter =Exclude Java Core Classes

Profiler.attachToApp: attach settings ----------------------------------
remote =false
direct =true
ctrlBreak =true
pid =-1
workingDir =
host =
transient port =-1

Profiler.attachToApp: ***************************************************
Instrumentation filter:
  Filter type: Exclusive
  Filter value: java/ javax/ sun/ sunw/ org/omg/CORBA org/omg/CosNaming/ COM/rsa/ 
*********** Exception occurred ************ at 11:30 AM on Jul 26, 2005
java.lang.NullPointerException
	at
com.sun.tools.profiler.classfile.ClassRepository.lookupClass(ClassRepository.java:108)
	at
com.sun.tools.profiler.classfile.ClassRepository.lookupClassOnAllPaths(ClassRepository.java:383)
	at
com.sun.tools.profiler.classfile.ClassRepository.getMethodMinAndMaxBCI(ClassRepository.java:567)
	at
com.sun.tools.profiler.instrumentation.Instrumentor.setStatusInfoFromSourceCodeSelection(Instrumentor.java:187)
	at
com.sun.tools.profiler.ProfilerClient.initiateRecursiveCPUProfInstrumentation(ProfilerClient.java:274)
	at
org.netbeans.modules.profiler.NetBeansProfiler.instrumentSelectedRoots(NetBeansProfiler.java:573)
	at org.netbeans.profiler.common.Profiler.performInstrumentation(Profiler.java:139)
	at
org.netbeans.modules.profiler.NetBeansProfiler.attachToApp(NetBeansProfiler.java:473)
	at
org.netbeans.modules.profiler.NetBeansProfiler.rerunLastProfiling(NetBeansProfiler.java:624)
	at
org.netbeans.modules.profiler.actions.RerunAction.performAction(RerunAction.java:67)
	at
org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:78)
	at
org.openide.util.actions.CallableSystemAction.doPerformAction(CallableSystemAction.java:116)
	at
org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:76)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
	at java.awt.Component.processMouseEvent(Component.java:5488)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	at org.openide.awt.ToolbarButton.processMouseEvent(ToolbarButton.java:29)
	at java.awt.Component.processEvent(Component.java:5253)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
[catch] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 iformanek 2005-08-03 07:48:38 UTC
The issue is caused by the fact that class is null in the selected root method.
Can you remember the steps that you performed that lead to this exception, 
specifically how you selected the root method?
Comment 2 iformanek 2005-08-09 07:41:50 UTC
Thanks, please repopen if you manage to reproduce.
Comment 3 ehucka 2006-10-09 12:09:58 UTC
Verification of old issues.
Comment 4 Alexander Kouznetsov 2007-02-12 22:02:38 UTC
Closing old issues.