Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 166062

Summary: Tomcat profiling using ARM is failing
Product: z_Archived Reporter: Ashish Patel <ashishp>
Component: TPTPAssignee: Matt Mings <mmings>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1 CC: huangys
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ashish Patel CLA 2006-11-28 10:24:27 EST
When I try to profile a servlet application using Tomcat for the first time, profiling fails with the following NPE and the user sees nothing happening on the screen.  When I profile using the JVMPI agent (Basic memory analysis), profiling works.  After this if I go back and profile using ARM it works.  There seems to be something missing in the initialization when ARM is used for the first time.

!SESSION 2006-11-27 21:24:16.359 -----------------------------------------------
eclipse.buildId=M20060921-0945
java.fullversion=J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-20061001 (JIT enabled)
J9VM - 20060915_08260_lHdSMR
JIT  - 20060908_1811_r8
GC   - 20060906_AA
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_CA
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 2 1 2006-11-27 21:26:00.593
!MESSAGE NLS unused message: JarPackageWizardPage_error_label in: org.eclipse.tptp.platform.instrumentation.ui.internal.util.messages

!ENTRY org.eclipse.osgi 2 1 2006-11-27 21:26:00.593
!MESSAGE NLS unused message: JarPackageWizardPage_error_caption in: org.eclipse.tptp.platform.instrumentation.ui.internal.util.messages

!ENTRY org.eclipse.osgi 2 1 2006-11-27 21:26:00.593
!MESSAGE NLS unused message: JarPackageWizardPage_configure_label in: org.eclipse.tptp.platform.instrumentation.ui.internal.util.messages

!ENTRY org.eclipse.osgi 2 1 2006-11-27 21:26:00.593
!MESSAGE NLS unused message: JarPackageWizardPage_refactorings_text in: org.eclipse.tptp.platform.instrumentation.ui.internal.util.messages

!ENTRY org.eclipse.osgi 2 1 2006-11-27 21:26:00.593
!MESSAGE NLS unused message: JarPackageWizardPage_configure_tooltip in: org.eclipse.tptp.platform.instrumentation.ui.internal.util.messages

!ENTRY org.eclipse.osgi 2 1 2006-11-27 21:26:00.609
!MESSAGE NLS unused message: JarPackageWizardPage_no_refactorings_selected in: org.eclipse.tptp.platform.instrumentation.ui.internal.util.messages

!ENTRY org.eclipse.osgi 2 1 2006-11-27 21:26:00.609
!MESSAGE NLS unused message: JarPackageWizardPage_error_cantExportJARIntoItself in: org.eclipse.tptp.platform.instrumentation.ui.internal.util.messages

!ENTRY org.eclipse.osgi 2 1 2006-11-27 21:26:00.609
!MESSAGE NLS missing message: JarPackageWizardPage_instrument_label in: org.eclipse.tptp.platform.instrumentation.ui.internal.util.messages

!ENTRY org.eclipse.tptp.platform.profile.server.core 4 0 2006-11-27 21:26:10.515
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
	at org.eclipse.tptp.platform.instrumentation.ui.internal.launcher.deleg.application.InstrumentDelegateHelper.deleteConfigFile(InstrumentDelegateHelper.java:157)
	at org.eclipse.tptp.platform.instrumentation.ui.internal.launcher.deleg.application.InstrumentDelegateHelper.preLaunch(InstrumentDelegateHelper.java:101)
	at org.eclipse.tptp.platform.instrumentation.ui.internal.launcher.deleg.application.InstrumentAttachLauncherDelegate.preLaunch(InstrumentAttachLauncherDelegate.java:172)
	at org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUtility.delegateInit(LauncherUtility.java:1163)
	at org.eclipse.hyades.trace.ui.internal.launcher.ProfileAttachDelegate.launch(ProfileAttachDelegate.java:126)
	at org.eclipse.tptp.platform.profile.server.core.internal.ProfileOnServerAdapter.attachToAgents(ProfileOnServerAdapter.java:80)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:615)
	at org.eclipse.tptp.platform.profile.server.wst.internal.reflect.EclipseClass.invokeStatic(EclipseClass.java:104)
	at org.eclipse.tptp.platform.profile.server.wst.internal.ApplicationServerListener.attachToAgents(ApplicationServerListener.java:62)
	at org.eclipse.tptp.platform.profile.server.wst.internal.ServerListener$1.run(ApplicationServerListener.java:90)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3325)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:615)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
	at org.eclipse.core.launcher.Main.run(Main.java:977)
	at org.eclipse.core.launcher.Main.main(Main.java:952)

!ENTRY org.eclipse.tptp.platform.profile.server.core 4 0 2006-11-27 21:31:25.890
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
	at org.eclipse.tptp.platform.instrumentation.ui.internal.launcher.deleg.application.InstrumentDelegateHelper.deleteConfigFile(InstrumentDelegateHelper.java:157)
	at org.eclipse.tptp.platform.instrumentation.ui.internal.launcher.deleg.application.InstrumentDelegateHelper.preLaunch(InstrumentDelegateHelper.java:101)
	at org.eclipse.tptp.platform.instrumentation.ui.internal.launcher.deleg.application.InstrumentAttachLauncherDelegate.preLaunch(InstrumentAttachLauncherDelegate.java:172)
	at org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUtility.delegateInit(LauncherUtility.java:1163)
	at org.eclipse.hyades.trace.ui.internal.launcher.ProfileAttachDelegate.launch(ProfileAttachDelegate.java:126)
	at org.eclipse.tptp.platform.profile.server.core.internal.ProfileOnServerAdapter.attachToAgents(ProfileOnServerAdapter.java:80)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:615)
	at org.eclipse.tptp.platform.profile.server.wst.internal.reflect.EclipseClass.invokeStatic(EclipseClass.java:104)
	at org.eclipse.tptp.platform.profile.server.wst.internal.ApplicationServerListener.attachToAgents(ApplicationServerListener.java:62)
	at org.eclipse.tptp.platform.profile.server.wst.internal.ServerListener$1.run(ApplicationServerListener.java:90)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3325)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:615)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
	at org.eclipse.core.launcher.Main.run(Main.java:977)
	at org.eclipse.core.launcher.Main.main(Main.java:952)
Comment 1 Matt Mings CLA 2006-11-28 11:46:29 EST
Set target for 4.4
Comment 2 Matt Mings CLA 2007-01-15 16:01:29 EST
Updating Priority
Comment 3 Matt Mings CLA 2007-02-07 11:43:30 EST
Moving to 4.4i2, cannot check into 4.4i1, because cvs is closed
Comment 4 Matt Mings CLA 2007-02-19 13:48:34 EST
fixed checked into head
Comment 5 Ashish Patel CLA 2007-10-25 16:42:11 EDT
cls