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

Bug 197117

Summary: NullPointerException when JRE 1.5 Profiling
Product: z_Archived Reporter: Andreas Schildbach <andreas>
Component: TPTPAssignee: Bing Xu <xubing>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: jcayne, jkubasta
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: closed471

Description Andreas Schildbach CLA 2007-07-19 06:59:30 EDT
Build ID: I20070625-1500

Steps To Reproduce:
1. "Start/Stop IAC as needed" is enabled in the prefs.
2. Just try to "execution time profile" a class.

!MESSAGE Agent Controller is unavailable under port 10002.  Make sure that the service is started and the port number is correct under preferences. 
!STACK 0
java.lang.NullPointerException
        at org.eclipse.tptp.platform.iac.administrator.internal.startstop.AutoStartStop.hasProcessTerminated(AutoStartStop.java:275)
        at org.eclipse.tptp.platform.iac.administrator.internal.startstop.AutoStartStop.startIAC(AutoStartStop.java:113)
        at org.eclipse.tptp.platform.execution.client.core.internal.NodeImpl.connect(NodeImpl.java:117)
        at org.eclipse.tptp.platform.jvmti.client.internal.launcher.util.AgentControllerDelegate$1$EstablishConnection.run(AgentControllerDelegate.java:155)
        at java.lang.Thread.run(Thread.java:595)



More information:
Ubuntu 7.04, SUN JRE 1.5.0-11-1ubuntu2 (Ubuntu package), Eclipse 3.3 Europa
Comment 1 jkubasta CLA 2007-08-23 16:59:37 EDT
JVMPI is only supported on JRE 1.4.x and earlier, JVMTI on JRE 1.5.  Please confirm you selected 1.5 and higher.
Comment 2 Andreas Schildbach CLA 2007-08-24 07:56:54 EDT
Yes, I selected "JRE 1.5 or newer / execution time analysis".
Comment 3 Guru Nagarajan CLA 2007-10-17 08:20:43 EDT
Joanna,
  The error is a IAC error - unable to start IAC. Pls assign this to IAC owner
Comment 4 Bing Xu CLA 2008-04-04 12:19:54 EDT
Andreas, this is fixed by patch to bug 220197.   Can you try any 4.5 build after March 04, 2008 to see if that fixes your problem.
Comment 5 Bing Xu CLA 2008-04-14 16:44:02 EDT
Andreas, any updates?
Comment 6 Andreas Schildbach CLA 2008-04-15 07:27:56 EDT
Where can I download the new version? I looked had a look at my Ganymede installation, but this still seems to contain version 4.3 of TPTP Profiling.
Comment 7 jkubasta CLA 2008-04-15 13:58:08 EDT
Joel, please give Andreas a link to the correct build. 
Comment 8 Bing Xu CLA 2008-04-15 15:10:01 EDT
Andreas, you can download the all-in-one from http://www.eclipse.org/tptp/home/downloads/?buildId=TPTP-4.5.0-200804031156C.
Comment 9 Joel Cayne CLA 2008-04-15 15:19:03 EDT
The equivalent driver to what Bing has provided but renamed to M6, which may be useful for tracking further issues, can be downloaded from http://www.eclipse.org/tptp/home/downloads/?buildId=TPTP-4.5.0M6-200804031156.
Comment 10 Andreas Schildbach CLA 2008-04-15 16:19:36 EDT
I just installed tptp.runtime.allInOne.linux.gtk.x86-TPTP-4.5.0M6.zip on Ubuntu 7.10, SUN JRE 1.5.0-13-0ubuntu1 (I cannot easily revert to the original testing environment). I am able to execution time profile a simple "hello world" class. Thanks for your help!
Comment 11 Bing Xu CLA 2008-04-15 16:37:44 EDT

*** This bug has been marked as a duplicate of bug 220197 ***
Comment 12 Kathy Chan CLA 2010-11-18 18:54:01 EST
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.