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 62323 - AIOOB Exception when taking CPU snapshot of Tomcat 5.5. app (Part of app CPU profiling)
Summary: AIOOB Exception when taking CPU snapshot of Tomcat 5.5. app (Part of app CPU ...
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-15 16:50 UTC by iformanek
Modified: 2007-03-14 09:47 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-08-15 16:50:21 UTC
AIOOB Exception when taking CPU snapshot of Tomcat 5.5. app (Part of app CPU 
profiling, 3 mthods of Servlet filter selected).

Profiler.connectToStartedApp: **************************************************
Profiler.connectToStartedApp: profiling settings -------------------------------
name: Preset: Part of Application
profilingType =16
overrideGlobalSettings =false
workingDir =
jvmArgs:
portNo =5140
javaPlatform =<project>
threadsMonitoringEnabled =false
cpuProfilingType =0
instrScheme =1
threadCPUTimerOn =false
instrumentGetterSetterMethods =true
instrumentEmptyMethods =false
instrumentMethodInvoke =true
instrumentSpawnedThreads =false
nProfiledThreadsLimit =32
sortResultsByThreadCPUTime =false
samplingInterval =10
instrumentationRootMethods =[Source Code defined via methods: 1 methods:
  class: NewSimpleFilter
    method: doBeforeProcessing  
(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V
  , Source Code defined via methods: 1 methods:
  class: NewSimpleFilter
    method: doAfterProcessing  
(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V
  , Source Code defined via methods: 1 methods:
  class: NewSimpleFilter
    method: doFilter  
(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/Fil
terChain;)V
  ]
codeFragmentSelection =null
codeRegionCPUResBufSize =1000
runGCOnGetResultsInMemoryProfiling =true
allocTrackEvery =10
allocStackTraceLimit =0
selectedInstrFilter =Profile All Classes

Profiler.connectToStartedApp: session settings ---------------------------------
mainClass:
mainClassPath: C:\Program Files\netbeans-4.1-m8v2\enterprise1\jakarta-tomcat-
5.5.7\common\lib\jsp-api.jar:C:\Program Files\netbeans-4.1-m8v2\enterprise1
\jakarta-tomcat-5.5.7\common\lib\servlet-api.jar
mainArgs:
jvmArgs =
workingDir =C:\bin
javaExecutable =C:\Program Files\jdk15_04\bin\java.exe
javaVersionString =jdk15
portNo =5140
Profiler.connectToStartedApp: **************************************************
Instrumentation filter:
  Filter type: None
  Filter value:
*** Profiler message (Mon Aug 15 17:47:29 CEST 2005): Class NewSimpleFilter not 
found on class path. It will be instrumented in classLoadHook.
*** Profiler message (Mon Aug 15 17:47:29 CEST 2005): Class NewSimpleFilter not 
found on class path. It will be instrumented in classLoadHook.
*** Profiler message (Mon Aug 15 17:47:29 CEST 2005): Class NewSimpleFilter not 
found on class path. It will be instrumented in classLoadHook.
*** Profiler warning (Mon Aug 15 17:47:35 CEST 2005): class 
org/apache/commons/logging/LogFactory$1, ldr = 0 not found anywhere
*** Profiler warning (Mon Aug 15 17:47:35 CEST 2005): class 
org/apache/commons/logging/Log, ldr = 0 not found anywhere
*** Profiler warning (Mon Aug 15 17:47:35 CEST 2005): class 
org/apache/commons/logging/impl/Jdk14Logger, ldr = 0 not found anywhere
*** Profiler warning (Mon Aug 15 17:47:35 CEST 2005): class 
org/apache/commons/logging/LogFactory$3, ldr = 0 not found anywhere
*** Profiler warning (Mon Aug 15 17:47:35 CEST 2005): class 
org/apache/commons/logging/LogFactory, ldr = 0 not found anywhere
*** Profiler warning (Mon Aug 15 17:47:36 CEST 2005): class 
org/apache/commons/logging/impl/LogFactoryImpl$1, ldr = 0 not found anywhere
*** Profiler warning (Mon Aug 15 17:47:36 CEST 2005): class 
org/apache/commons/logging/impl/LogFactoryImpl, ldr = 0 not found anywhere
*** Profiler warning (Mon Aug 15 17:47:36 CEST 2005): class 
org/apache/commons/logging/LogFactory$2, ldr = 0 not found anywhere
*********** Exception occurred ************ at 5:48 PM on Aug 15, 2005
java.lang.ArrayIndexOutOfBoundsException: 1036072
        at 
com.sun.tools.profiler.results.cpu.FullInstrCPUCallGraphBuilder.updateCallGraphs
(FullInstrCPUCallGraphBuilder.java:41)
        at 
com.sun.tools.profiler.results.cpu.CPUCallGraphBuilder.readDataFromBuffer
(CPUCallGraphBuilder.java:44)
        at com.sun.tools.profiler.ProfilerClient.processProfilingResults
(ProfilerClient.java:790)
        at com.sun.tools.profiler.ProfilerClient.readAndProcessProfilingResults
(ProfilerClient.java:781)
        at com.sun.tools.profiler.ProfilerClient.access$2200
(ProfilerClient.java:44)
        at 
com.sun.tools.profiler.ProfilerClient$ServerListener.handleServerCommand
(ProfilerClient.java:1307)
[catch] at com.sun.tools.profiler.ProfilerClient$ServerListener.run
(ProfilerClient.java:1250)
Comment 1 Jiri Sedlacek 2005-08-22 13:42:12 UTC
(M8v3) Same problem reported by another user. Created new WebProject, added new 
servlet and just changed its processRequest to return some text. Entire 
application without appserver code, bundled SJSAS 8.1 PE, after hitting root 
method clicked on live results:

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 =false
nProfiledThreadsLimit =32
sortResultsByThreadCPUTime =false
samplingInterval =10
instrumentationRootMethods =[Source Code defined via methods: 1 methods:
  class: org.apache.jsp.index_jsp
    method: _jspService 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;
)V
  , Source Code defined via methods: 1 methods:
  class: test.NewServlet
    method: doGet 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;
)V
  , Source Code defined via methods: 1 methods:
  class: test.NewServlet
    method: doPost 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;
)V
  ]
codeFragmentSelection =null
codeRegionCPUResBufSize =1000
runGCOnGetResultsInMemoryProfiling =true
allocTrackEvery =10
allocStackTraceLimit =0
selectedInstrFilter =Quick Filter...

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

Profiler.attachToApp: ***************************************************
Instrumentation filter:
  Filter type: Inclusive
  Filter value: test/
*** Profiler message (Mon Aug 22 14:05:07 CEST 2005): Class 
org.apache.jsp.index_jsp not found on class path. It will be instrumented in 
classLoadHook.
*** Profiler message (Mon Aug 22 14:05:07 CEST 2005): Class test.NewServlet not 
found on class path. It will be instrumented in classLoadHook.
*** Profiler message (Mon Aug 22 14:05:07 CEST 2005): Class test.NewServlet not 
found on class path. It will be instrumented in classLoadHook.
*** Profiler warning (Mon Aug 22 14:07:14 CEST 2005): class $Proxy7, ldr = 0 
not found anywhere
*** Profiler warning (Mon Aug 22 14:07:15 CEST 2005): class $Proxy1, ldr = 0 
not found anywhere
*** Profiler warning (Mon Aug 22 14:07:15 CEST 2005): class 
com/sun/enterprise/management/support/$Proxy3, ldr = 0 not found anywhere
*** Profiler warning (Mon Aug 22 14:07:22 CEST 2005): class $Proxy5, ldr = 0 
not found anywhere
*** Profiler warning (Mon Aug 22 14:07:24 CEST 2005): class 
com/sun/enterprise/admin/dottedname/$Proxy4, ldr = 0 not found anywhere
*** Profiler warning (Mon Aug 22 14:07:25 CEST 2005): class $Proxy8, ldr = 0 
not found anywhere
*** Profiler warning (Mon Aug 22 14:07:26 CEST 2005): class $Proxy2, ldr = 0 
not found anywhere
*** Profiler warning (Mon Aug 22 14:07:26 CEST 2005): class $Proxy14, ldr = 0 
not found anywhere
*** Profiler warning (Mon Aug 22 14:07:27 CEST 2005): class $Proxy6, ldr = 0 
not found anywhere
*** Profiler warning (Mon Aug 22 14:07:30 CEST 2005): class $Proxy15, ldr = 0 
not found anywhere
*** Profiler warning (Mon Aug 22 14:07:32 CEST 2005): class 
com/sun/enterprise/management/monitor/$Proxy12, ldr = 0 not found anywhere
*** Profiler warning (Mon Aug 22 14:07:32 CEST 2005): class $Proxy0, ldr = 0 
not found anywhere
*********** Exception occurred ************ at 2:07 PM on Aug 22, 2005
java.lang.ArrayIndexOutOfBoundsException: 260
    at 
com.sun.tools.profiler.results.cpu.FullInstrCPUCallGraphBuilder.updateCallGraphs
(FullInstrCPUCallGraphBuilder.java:41)
    at com.sun.tools.profiler.results.cpu.CPUCallGraphBuilder.readDataFromBuffer
(CPUCallGraphBuilder.java:44)
    at com.sun.tools.profiler.ProfilerClient.processProfilingResults
(ProfilerClient.java:790)
    at com.sun.tools.profiler.ProfilerClient.readAndProcessProfilingResults
(ProfilerClient.java:781)
    at com.sun.tools.profiler.ProfilerClient.access$2200(ProfilerClient.java:44)
    at com.sun.tools.profiler.ProfilerClient$ServerListener.handleServerCommand
(ProfilerClient.java:1307)
[catch] at com.sun.tools.profiler.ProfilerClient$ServerListener.run
(ProfilerClient.java:1250)
Comment 2 Tomas Hurka 2006-02-15 14:28:16 UTC
Fixed in profiler 5.0 FCS.
Comment 3 Alexander Kouznetsov 2007-03-14 09:47:57 UTC
Closing old issues