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 60009 - NPE when starting liveness memory profiling with LiveResults open
Summary: NPE when starting liveness memory profiling with LiveResults open
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: iformanek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-15 11:00 UTC by iformanek
Modified: 2007-02-12 22:10 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 iformanek 2005-06-15 11:00:14 UTC
Profiler.profileClass: **************************************************
Profiler.profileClass: profiling settings -------------------------------
name: Preset: Liveness
profilingType =4
overrideGlobalSettings =false
workingDir =
jvmArgs:
portNo =5140
javaPlatform =<project>
threadsMonitoringEnabled =false
cpuProfilingType =0
instrScheme =1
threadCPUTimerOn =false
instrumentGetterSetterMethods =false
instrumentEmptyMethods =false
instrumentMethodInvoke =true
instrumentSpawnedThreads =false
nProfiledThreadsLimit =32
sortResultsByThreadCPUTime =false
samplingInterval =10
instrumentationRootMethods =[]
codeFragmentSelection =null
codeRegionCPUResBufSize =1000
runGCOnGetResultsInMemoryProfiling =true
objAllocStackSamplingInterval =10
objAllocStackSamplingDepth =0
selectedInstrFilter =

Profiler.profileClass: session settings ---------------------------------
mainClass: java2d.Java2Demo
mainClassPath: C:\Software\jdk142
\demo\jfc\Java2D\Java2Demo.jar;C:\Software\netbeans41\ide5
\modules\ext\AbsoluteLayout.jar;D:\Testing\41-projects\profiler-
api.jar;D:\Testing\41-projects\Java2D\build\classes
mainArgs:
jvmArgs =
workingDir =C:\Documents and Settings\Ian Formanek
javaExecutable =C:\Software\jdk15_04_b05\bin\java.exe
javaVersionString =jdk15
portNo =5140
Profiler.profileClass: **************************************************
Instrumentation filter:
  Filter type: None
  Filter value:
*** JFluid message (Wed Jun 15 11:57:20 CEST 2005): Starting target 
application...
cmd.exe /K start cmd /K C:\Software\jdk15_04_b05\bin\java.exe -
agentpath:D:/Dev/profiler/nb41userdir/modules/profiler-ea-
libs/deployed/jdk15/windows/profilerinterface.dll -
Xbootclasspath/a:D:\Dev\profiler\nb41userdir\modules\profiler-ea-libs/jfluid-
server.jar;D:\Dev\profiler\nb41userdir\modules\profiler-ea-libs/jfluid-server-
15.jar -classpath C:\Software\jdk142
\demo\jfc\Java2D\Java2Demo.jar;C:\Software\netbeans41\ide5
\modules\ext\AbsoluteLayout.jar;D:\Testing\41-projects\profiler-
api.jar;D:\Testing\41-projects\Java2D\build\classes com.sun.tools.profiler.s
*********** Exception occurred ************ at 11:57 AM on Jun 15, 2005
java.lang.NullPointerException
        at 
com.sun.tools.profiler.results.cpu.FlatProfileContainerFree.getMethodNameAtRow
(FlatProfileContainerFree.java:49)
        at com.sun.tools.profiler.ui.cpu.FlatProfilePanel$4.getValueAt
(FlatProfilePanel.java:399)
        at com.sun.tools.profiler.ui.components.ExtendedTableModel.getValueAt
(ExtendedTableModel.java:113)
        at javax.swing.JTable.getValueAt(JTable.java:1852)
        at javax.swing.JTable.prepareRenderer(JTable.java:3902)
        at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:1645)
        at javax.swing.plaf.basic.BasicTableUI.paintCells
(BasicTableUI.java:1547)
        at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1470)
        at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
        at javax.swing.JComponent.paintComponent(JComponent.java:740)
        at javax.swing.JComponent.paint(JComponent.java:1003)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JViewport.paint(JViewport.java:728)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4937)
        at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4883)
        at javax.swing.JComponent.paint(JComponent.java:993)
        at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
        at sun.awt.SunGraphicsCallback.runOneComponent
(SunGraphicsCallback.java:60)
        at sun.awt.SunGraphicsCallback.runComponents
(SunGraphicsCallback.java:97)
        at java.awt.Container.paint(Container.java:1709)
        at org.netbeans.core.windows.view.ui.MainWindow.paint
(MainWindow.java:528)
        at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
        at sun.awt.RepaintArea.paint(RepaintArea.java:224)
        at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
        at java.awt.Component.dispatchEventImpl(Component.java:4031)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Window.dispatchEventImpl(Window.java:1766)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
[catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:234)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:153)
        at java.awt.Dialog$1.run(Dialog.java:515)
        at java.awt.Dialog.show(Dialog.java:536)
        at org.netbeans.core.windows.services.NbPresenter.superShow
(NbPresenter.java:800)
        at org.netbeans.core.windows.services.NbPresenter.doShow
(NbPresenter.java:843)
        at org.netbeans.core.windows.services.NbPresenter.run
(NbPresenter.java:831)
        at org.openide.util.Mutex.doEventAccess(Mutex.java:1044)
        at org.openide.util.Mutex.readAccess(Mutex.java:170)
        at org.netbeans.core.windows.services.NbPresenter.show
(NbPresenter.java:816)
        at java.awt.Component.show(Component.java:1300)
        at java.awt.Component.setVisible(Component.java:1253)
        at org.netbeans.modules.profiler.NetBeansProfiler$ProgressPanel$2.run
(NetBeansProfiler.java:1002)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:234)
        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-06-15 11:00:42 UTC
Self assign
Comment 2 iformanek 2005-06-18 17:36:52 UTC
This was probably this issue of missing reset () in live results window upon 
profiling restart, should be fixed.
Comment 3 ehucka 2006-10-09 12:11:06 UTC
Verification of old issues.
Comment 4 Alexander Kouznetsov 2007-02-12 22:10:11 UTC
Closing old issues.