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

Bug 206731

Summary: Agent Controller Crashes / Profiling Crashes
Product: z_Archived Reporter: Thomas Steininger <tsteininger>
Component: TPTPAssignee: Bing Xu <xubing>
Status: CLOSED FIXED QA Contact:
Severity: blocker    
Priority: P1 CC: igor.alelekov, jkubasta, tsteininger
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: closed460
Attachments:
Description Flags
Log of the Agent Controller none

Description Thomas Steininger CLA 2007-10-18 05:43:07 EDT
Build ID: Build id: I20070625-1500

Steps To Reproduce:
1. Install new Eclipse 3.3
2. UpdateSite - Europa Discovery Site -> Inastall TPTP
3. Start Eclipse and try to Profile an Application that is running on JRE 1.6_03 -> Crash and metadata/.log shows the Error under MoreInformation.

The same error comes if i go to preferences and try under Profiling and Logging/Hosts the button 'Test connection'.


More information:
!ENTRY org.eclipse.tptp.platform.iac.administrator 4 0 2007-10-18 11:29:41.352
!MESSAGE unknown protocol: c
!STACK 0
java.net.MalformedURLException: unknown protocol: c
	at java.net.URL.<init>(Unknown Source)
	at java.net.URL.<init>(Unknown Source)
	at java.net.URL.<init>(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
	at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
	at org.eclipse.tptp.platform.iac.administrator.internal.common.AdminUtil.parseFile(AdminUtil.java:79)
	at org.eclipse.tptp.platform.iac.administrator.internal.common.AdminUtil.isConfigurationValid(AdminUtil.java:643)
	at org.eclipse.tptp.platform.iac.administrator.internal.startstop.AutoStartStop.startIAC(AutoStartStop.java:81)
	at org.eclipse.hyades.internal.execution.local.control.NodeImpl.connect(NodeImpl.java:283)
	at org.eclipse.hyades.security.internal.util.BaseConnectUtil.insecureConnect(BaseConnectUtil.java:369)
	at org.eclipse.hyades.security.internal.util.BaseConnectUtil.connect(BaseConnectUtil.java:255)
	at org.eclipse.hyades.security.internal.util.BaseConnectUtil.connect(BaseConnectUtil.java:540)
	at org.eclipse.tptp.platform.common.ui.trace.internal.util.PDCoreUtil.profileConnect(PDCoreUtil.java:827)
	at org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.PIDelegateHelper$JVMVersionDetector.run(PIDelegateHelper.java:474)
	at java.lang.Thread.run(Unknown Source)
Comment 1 Igor Alelekov CLA 2007-11-12 09:40:14 EST
This defect duplicates the bug #201819.
As a workaround you can use jvm 1.5 or install your Eclipse in directory without spaces.
Comment 2 Samson Wai CLA 2007-11-27 09:33:30 EST
Hi Bing. I have transferred my bugs to you for triage. Thanks.
Comment 3 Thomas Steininger CLA 2007-12-04 03:39:42 EST
Created attachment 84391 [details]
Log of the Agent Controller
Comment 4 Thomas Steininger CLA 2007-12-04 03:42:41 EST
Comment on attachment 84391 [details]
Log of the Agent Controller

After moving my eclipse to an place without whitespace in the path, i got one
step 
further but i get again failures.

e.g: eclipse.buildId=M20071023-1652
java.version=1.6.0_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_AT
Command-line arguments:  -os win32 -ws win32 -arch x86
This is a continuation of log file C:\elbn\.metadata\.bak_0.log
Created Time: 2007-12-03 10:53:11.206

Error
Tue Dec 04 09:33:05 CET 2007
[startIAC: Error Stream] RAServer generated the following output:
java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IProgressMonitor

Additionally i see that my application does not start, but the cpu-usage
increases  
to 100% and does not end!

I add - like recommended in
..\tptp\eclipse\plugins\org.eclipse.tptp.platform.ac.win_ia32_4.4.1.v200709261752\agent_controller\bin\readme.txt
- an Log
Comment 5 Bing Xu CLA 2008-01-15 12:22:03 EST
Hi Thomas, JVM 1.6 won't be supported by TPTP until 4.5.   So please try with JVM 1.5 or 1.4.2.
Comment 6 Thomas Steininger CLA 2008-01-16 02:40:37 EST
Thank you for the info.
Unfortunately i can't use my application with jre's less than jre6.
So it seems that i have to wait for TPTP 4.5.

After searching for a plan for 4.5 i found: 
http://www.eclipse.org/tptp/home/project_info/devplans/Eclipse%20TPTP%20Project%204.5%20Release%20Plan.htm

There i find under 'Target Operating Environments' the statement that it also will support only java 1.4.x and 1.5. 
This differs to your comment...
Comment 7 Igor Alelekov CLA 2008-01-16 02:43:27 EST
(In reply to comment #6)
> Unfortunately i can't use my application with jre's less than jre6.
> So it seems that i have to wait for TPTP 4.5.

Hi Thomas, you can use standalone Agent Controller as well.
Comment 8 Thomas Steininger CLA 2008-01-16 05:19:45 EST
Hi Igor. Thank you for the info.
Is there an simple description how to use that?
Comment 9 Igor Alelekov CLA 2008-01-16 05:26:14 EST
(In reply to comment #8)
> Hi Igor. Thank you for the info.
> Is there an simple description how to use that?

Sure :)
You should:
- Download and unzip standalone AC from http://www.eclipse.org/tptp/home/downloads/
- Manually execute once the SetConfig script.
- Launch AC with ACServer.exe (ACStart.sh on Linux)

Other details you can find at http://www.eclipse.org/tptp/home/downloads/installguide/InstallGuide44.html
Comment 10 jkubasta CLA 2008-01-30 10:26:02 EST
Bing, pls try to reproduce this with 4.5 on Java 6. (Have targeted this defect to 4.5 given the workarounds on Java 1.4.2 and 1.5).  Igor, pls let me know if you diasgree
Comment 11 Bing Xu CLA 2008-01-31 14:01:37 EST
Seems related to 201819.  

Will test this after new 4.5 build with Jonathan's fix tomorrow.  
Comment 12 Bing Xu CLA 2008-02-01 15:48:25 EST
Tested with build TPTP-4.5.0-200801310400 which contains fix for 201819.  Rename 'Eclipse' to 'My Eclipse' and use Sun JVM 1.6.0_01.  Profile external Java application works with both IAC and external AC.
Comment 13 Paul Slauenwhite CLA 2009-06-30 12:10:09 EDT
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.