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

Bug 244213

Summary: Attempting to profile results in an IWAT0435E connection failure and no data collectors
Product: z_Archived Reporter: Reid Kleckner <rnk>
Component: TPTPAssignee: Bing Xu <xubing>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P1 CC: briggs, chenbs, ewchan, jcayne, johan, jrivers, knb, paulslau, pruggia, sambitbasu, samira.negm, xubing
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: closed471

Description Reid Kleckner CLA 2008-08-14 13:37:02 EDT
Build ID: I20080617-2000

Steps To Reproduce:
1. Install TPTP.
2. Open a class with a main method and profile it as a Java Application.
3. An error appears below the "Edit configuration and launch" header, and in the Monitor tab.


More information:
The Monitor tab has all of its buttons disabled, and it displays the connection failure error below:
IWAT0435E An error occurred when connecting to the host.

Below the header, there is this error message:
[Monitor]: The launch requires at least one data collector to be selected.

So far as I can see, there are no data collectors and I can't add one, since there is no content in the middle pane of the monitor tab and all of the buttons there are disabled.

Another interesting symptom of this problem is that when I try to profile my application, it launches a background task called "Fetching children of data collectors" which starts at 0%, and then continues to 40% or so and then stops, and nothing happens.

I've seen a number of emails describing similar problems:
http://dev.eclipse.org/newslists/news.eclipse.tptp/msg06431.html
http://dev.eclipse.org/newslists/news.eclipse.tptp/msg06436.html
http://dev.eclipse.org/newslists/news.eclipse.tptp/msg03746.html

I've tried the solutions at the ends of those threads, and they don't apply or don't work.  Therefore I'm guessing that this behaviour is not a configuration problem and is an actual bug.
Comment 1 Eugene Chan CLA 2008-08-14 14:31:53 EDT
Could you tried with latest TPTP 4.5.1 build? This may related to a known problem of IAC in 4.5.0.
Comment 2 Reid Kleckner CLA 2008-08-14 22:24:56 EDT
(In reply to comment #1)
> Could you tried with latest TPTP 4.5.1 build? This may related to a known
> problem of IAC in 4.5.0.
> 

I unzipped the all-in-one TPTP zip package over my eclipse directory, and it had exactly the same symptoms etc.  I looked in "Help -> Software Updates..." to see what version of TPTP Eclipse thinks it has, and it listed the old numbers, which are a mix of 4.5, 4.4, and 4.3.  Do I need to uninstall TPTP before unpacking the zip?  Or do I need to hit it until it works?  :)
Comment 3 Pablo Ruggia CLA 2008-09-27 18:26:36 EDT
Same thing happens to me.
Using TPTP all-in-one package, Ubuntu Linux 8.04. JDK 1.6.x
I've just created an empty java project with a single class with a main method.
IWAT0435E An error ocurred when connecting to host
Comment 4 Pablo Ruggia CLA 2008-09-27 18:27:53 EDT
I'm using this distribution: tptp.runtime.allInOne.linux.gtk.x86-TPTP-4.5.1.zip
Comment 5 András Ökrös CLA 2008-10-03 09:04:20 EDT
Same here.. Still no resolution?
Comment 6 Eugene Chan CLA 2008-10-03 09:21:24 EDT
Bing, could you take a look at this problem? It sounds like IAC is not function as expected on Linux paltform.
Comment 7 András Ökrös CLA 2008-10-03 09:37:35 EDT
Hmm, actually I encountered this error on Win Xp/Ganymede 3.4, with the latest downloadable TPTP plugins from the Ganymede update site.
Comment 8 Bing Xu CLA 2008-10-03 09:51:43 EDT
Can someone try this:

1. download and unzip TPTP 4.5.1 all-in-one to a new directory, not on top of existing Eclipse or using Software Update.

2. Start Eclipse using a new workbench.

3. Kill any ACServer process that is running.

4. From Preference->Agent Controller or Profile dialog page, click on Test Connection.

If connection fails, please attach the service config and log file under <workspace>/.metadata/.plugins/org.eclipse.tptp.platform.iac.administrator/config.

Comment 9 Bing Xu CLA 2008-10-16 12:00:41 EDT
(In reply to comment #8)
> Can someone try this:
> 1. download and unzip TPTP 4.5.1 all-in-one to a new directory, not on top of
> existing Eclipse or using Software Update.
> 2. Start Eclipse using a new workbench.
> 3. Kill any ACServer process that is running.
> 4. From Preference->Agent Controller or Profile dialog page, click on Test
> Connection.
> If connection fails, please attach the service config and log file under
> <workspace>/.metadata/.plugins/org.eclipse.tptp.platform.iac.administrator/config.

Has anyone tried this?   It would help us try to reproduce the problem because so far it worked on our testing machine. 
Comment 10 Sambit Basu CLA 2008-10-17 17:23:44 EDT
I did try the above mentioned steps. 

1. OK

2. OK

3. No ACServer process is running.

4. There is no Test Connection in either Preference -> Agent Controller or Profile dialog. One that I found is on Profile -> Test dialog. When I cliked "Test connection", I got a "Security Message" with which says:

IWAT0284E The Agent Controller is not available on host localhost.
 Make sure that:
* for localhost, the Internal Agent Controller is supported on your local platform. 
* the Agent Controller is installed.
* the Agent Controller is configured to communicate with your machine.
* you have the correct host name and port number for the Agent Controller.

org.eclipse.hyades.internal.execution.local.control.AgentControllerUnavailableException

Comment 11 Pablo Ruggia CLA 2008-10-20 08:19:03 EDT
Same thing here, no ACServer running.
Couldn't find the dialog you are saying.

Thanks !
Comment 12 Bing Xu CLA 2008-10-20 12:52:18 EDT
(In reply to comment #10)
> I did try the above mentioned steps. 
> 1. OK
> 2. OK
> 3. No ACServer process is running.
> 4. There is no Test Connection in either Preference -> Agent Controller or
> Profile dialog. One that I found is on Profile -> Test dialog. When I cliked
> "Test connection", I got a "Security Message" with which says:
> IWAT0284E The Agent Controller is not available on host localhost.
>  Make sure that:
> * for localhost, the Internal Agent Controller is supported on your local
> platform. 
> * the Agent Controller is installed.
> * the Agent Controller is configured to communicate with your machine.
> * you have the correct host name and port number for the Agent Controller.
> org.eclipse.hyades.internal.execution.local.control.AgentControllerUnavailableException


What's the output of these command on your system:

1. uname -a
2. more /etc/*release
3. java -version

And can you post your IAC config and log files.
Comment 13 Pablo Ruggia CLA 2008-10-20 12:55:23 EDT
Linux pruggia-laptop 2.6.24-19-generic #1 SMP Wed Aug 20 22:56:21 UTC 2008 i686 GNU/Linux

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.1"

java version "1.5.0_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
Java HotSpot(TM) Server VM (build 1.5.0_15-b04, mixed mode)
Comment 14 Pablo Ruggia CLA 2008-10-20 13:25:39 EDT
Here is what my .log file inside the workspace say:

!SESSION 2008-10-20 15:22:29.032 -----------------------------------------------
eclipse.buildId=M20080911-1700
java.version=1.5.0_15
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86

!ENTRY org.eclipse.tptp.platform.iac.administrator 4 0 2008-10-20 15:23:51.447
!MESSAGE RAServer generated the following output:  [Error Stream]:/home/pruggia/Desktop/eclipse/dropins/eclipse/plugins/org.eclipse.tptp.platform.ac.linux_ia32_4.4.1.v200808290100/agent_controller/bin/ACStart.sh: 52: [[: not found


!ENTRY org.eclipse.tptp.platform.iac.administrator 4 0 2008-10-20 15:23:51.534
!MESSAGE RAServer generated the following output:  [Error Stream]:ACServer: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory


!ENTRY org.eclipse.tptp.platform.iac.administrator 4 0 2008-10-20 15:23:54.687
!MESSAGE RAServer generated the following output:  [Error Stream]:/home/pruggia/Desktop/eclipse/dropins/eclipse/plugins/org.eclipse.tptp.platform.ac.linux_ia32_4.4.1.v200808290100/agent_controller/bin/ACStart.sh: 52: [[: not found


!ENTRY org.eclipse.tptp.platform.iac.administrator 4 0 2008-10-20 15:23:54.702
!MESSAGE RAServer generated the following output:  [Error Stream]:ACServer: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory


!ENTRY org.eclipse.tptp.platform.iac.administrator 4 0 2008-10-20 15:23:57.959
!MESSAGE RAServer generated the following output:  [Error Stream]:/home/pruggia/Desktop/eclipse/dropins/eclipse/plugins/org.eclipse.tptp.platform.ac.linux_ia32_4.4.1.v200808290100/agent_controller/bin/ACStart.sh: 52: [[: not found


!ENTRY org.eclipse.tptp.platform.iac.administrator 4 0 2008-10-20 15:23:57.975
!MESSAGE RAServer generated the following output:  [Error Stream]:ACServer: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory


!ENTRY org.eclipse.tptp.platform.iac.administrator 4 0 2008-10-20 15:24:01.530
!MESSAGE RAServer generated the following output:  [Error Stream]:/home/pruggia/Desktop/eclipse/dropins/eclipse/plugins/org.eclipse.tptp.platform.ac.linux_ia32_4.4.1.v200808290100/agent_controller/bin/ACStart.sh: 52: [[: not found


!ENTRY org.eclipse.tptp.platform.iac.administrator 4 0 2008-10-20 15:24:01.531
!MESSAGE RAServer generated the following output:  [Error Stream]:ACServer: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory


!ENTRY org.eclipse.core.jobs 4 2 2008-10-20 15:24:03.551
!MESSAGE An internal error occurred during: "Fetching children of data collector".
!STACK 0
org.eclipse.swt.SWTException: Device is disposed
	at org.eclipse.swt.SWT.error(SWT.java:3777)
	at org.eclipse.swt.SWT.error(SWT.java:3695)
	at org.eclipse.swt.SWT.error(SWT.java:3666)
	at org.eclipse.swt.widgets.Display.error(Display.java:1142)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:4012)
	at org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.PIDelegateHelper$JVMVersionDetector.<init>(PIDelegateHelper.java:373)
	at org.eclipse.tptp.platform.instrumentation.ui.internal.launcher.PICollectorFiltration.include(PICollectorFiltration.java:30)
	at org.eclipse.tptp.trace.ui.internal.launcher.core.DataCollectorTreeContentProvider$DeferredDataCollectorAdapter.fetchDeferredChildren(DataCollectorTreeContentProvider.java:324)
	at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.tptp.platform.iac.administrator 4 0 2008-10-20 15:24:03.588
!MESSAGE [stopAC] Tried to kill RAServer with the shutdown command, but an error occurred. Message (if any):/home/pruggia/Desktop/eclipse/dropins/eclipse/plugins/org.eclipse.tptp.platform.ac.linux_ia32_4.4.1.v200808290100/agent_controller/bin/ACStop.sh: 35: [[: not found
Comment 15 Bing Xu CLA 2008-10-20 13:47:47 EDT
From the log, this seems caused by same problem reported in https://bugs.eclipse.org/bugs/show_bug.cgi?id=240677.  Can you confirm?
Comment 16 Pablo Ruggia CLA 2008-10-20 13:53:58 EDT
I'm sure that is the problem.
But I can't install the old libaries cause they are not in the repository.

Thanks !
Comment 17 Bing Xu CLA 2008-10-21 14:03:44 EDT
Joel, does Pablo have other options to solve this?

*** This bug has been marked as a duplicate of bug 240677 ***
Comment 18 Joel Cayne CLA 2008-10-21 14:23:56 EDT
Hi Pablo,

If you can, install the rpm for compat-libstdc++ package in Ubuntu or the equivalent glibc/gcc.
Comment 19 Pablo Ruggia CLA 2008-10-21 14:34:06 EDT
I have gcc 4.2.3 installed.
Which one should I have ?
Thanks !
Comment 20 Joel Cayne CLA 2008-10-21 14:51:06 EDT
If you can get the equivalent of gcc-2.96 it should work.
Comment 21 Sambit Basu CLA 2008-10-21 21:42:31 EDT
I can confirm the fix. I am running Ubuntu 7.10 (Gutsy). I installed libstdc++2.10-glibc2.2 which was in the repository. And now the error is gone and I can see the Profile dialog. Didn't even have to restart eclipse.
Comment 22 Pablo Ruggia CLA 2008-10-21 21:54:31 EDT
I'm running 8.04, that version isn't in the repositories anymore or i'm not able to find it =(
Comment 23 Joel Cayne CLA 2008-10-23 12:08:13 EDT
Pablo,

You can try downloading the package from the Ubuntu site for installation.
Comment 24 Pablo Ruggia CLA 2008-10-23 12:14:54 EDT
Of course, and i'm sure that it will work.
Anyway, will this be corrected or at least added to a FAQ so people don't have get to bugzilla to understand what's happening ?
Being Ubuntu the most spreaded distro, TPTP should work without installing anything.
Bug 240677 should be marked as critical or major and be solved for next release.

Thank you very much for the help with this problem, continue with this great work !
Comment 25 Pablo Ruggia CLA 2008-10-28 20:03:51 EDT
Installed package libstdc++2.10-glibc2.2_2.95.4-22_i386 package in Ubuntu 8.04 and all went ok.
I've created a blog post about this here: http://goodenoughjava.blogspot.com/2008/10/profiling-with-eclipse-tptp-problem.html
Comment 26 N. Berntsen CLA 2009-03-17 14:47:10 EDT
on mandriva 2009.0 this installs the necessary dependency.

# urpmi libstdc++-libc6.2-2.so.3

/\/
Comment 27 Samira CLA 2010-02-08 05:15:35 EST
what about windows

I'm using win xp, java 1.6
and I'm using the "ALL in one" version from site: http://www.eclipse.org/downloads/download.php?file=/tptp/4.6.1/TPTP-4.6.1/tptp.runtime.allInOne.win32.win32.x86-TPTP-4.6.1.zip

what should i do to fix this issue?
Comment 28 jrivers CLA 2010-02-19 17:14:01 EST
I hope somebody is still reading these comments.  I see that bug #240677 was closed in 4.6, however we've installed TPTP 4.6 and this problem is still happening.  It actually worked once but since then my eclipse gets stuck on "Fetching children of data collector" / "Filtering data collectors".  

For what it's worth, the only feature with a 4.6 version is "TPTP Platform" (org.eclipse.tptp.platform.core).

Running RHEL 5.3 with eclipse 3.5.1 and tptp 4.6.1.
Comment 29 Eugene Chan CLA 2010-02-19 17:19:03 EST
Could you try with the all-in-one TPTP 4.6.1 release available in http://www.eclipse.org/tptp/home/downloads/?ver=4.6.1?

Also before you start the Eclipse workbench, check and make sure there is no dangling java.exe nor ACServer.exe running on the same host as the Eclipse workbench that may be results of failed launch in previous Eclipse session.

HTH.
Comment 30 Nick Briggs CLA 2010-07-29 20:35:18 EDT
(In reply to comment #29)
> Could you try with the all-in-one TPTP 4.6.1 release available in
> http://www.eclipse.org/tptp/home/downloads/?ver=4.6.1?
> 
> Also before you start the Eclipse workbench, check and make sure there is no
> dangling java.exe nor ACServer.exe running on the same host as the Eclipse
> workbench that may be results of failed launch in previous Eclipse session.
> 
> HTH.

The linking problems may be fixed, but there's another problem with the same symptoms:

All the scripts and executables in the, for example, /usr/lib/eclipse/plugins/org.eclipse.tptp.platform.ac.linux_ia32_4.4.300.v201006031900/agent_controller/bin directory need to have execute permission on them.

It errors with:


!ENTRY org.eclipse.tptp.platform.iac.administrator 4 0 2010-07-29 17:15:08.710
!MESSAGE Cannot run program "/usr/lib/eclipse/plugins/org.eclipse.tptp.platform.ac.linux_ia32_4.4.300.v201006031900/agent_controller/bin/ACStart.sh" (in directory "/usr/lib/eclipse/plugins/org.eclipse.
tptp.platform.ac.linux_ia32_4.4.300.v201006031900/agent_controller/bin"): java.io.IOException: error=13, Permission denied
!STACK 0
java.io.IOException: Cannot run program "/usr/lib/eclipse/plugins/org.eclipse.tptp.platform.ac.linux_ia32_4.4.300.v201006031900/agent_controller/bin/ACStart.sh" (in directory "/usr/lib/eclipse/plugins/
org.eclipse.tptp.platform.ac.linux_ia32_4.4.300.v201006031900/agent_controller/bin"): java.io.IOException: error=13, Permission denied
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
	at java.lang.Runtime.exec(Runtime.java:593)
	at org.eclipse.tptp.platform.iac.administrator.internal.startstop.AutoStartStop.startIAC(AutoStartStop.java:110)
	at org.eclipse.hyades.internal.execution.local.control.NodeImpl.connect(NodeImpl.java:283)
	at org.eclipse.hyades.security.internal.util.BaseConnectUtil.insecureConnect(BaseConnectUtil.java:370)
	at org.eclipse.hyades.security.internal.util.BaseConnectUtil.connect(BaseConnectUtil.java:256)
	at org.eclipse.hyades.security.internal.util.BaseConnectUtil.connect(BaseConnectUtil.java:541)
	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.DefaultJVMVersionDetector.connect(DefaultJVMVersionDetector.java:100)
	at org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.DefaultJVMVersionDetector.getJVMVersion(DefaultJVMVersionDetector.java:59)
	at org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.PIDelegateHelper$JVMVersionDetector.retrieveVersionOutput(PIDelegateHelper.java:398)
	at org.eclipse.tptp.trace.ui.internal.launcher.application.PICollectorFiltration.include(PICollectorFiltration.java:29)
	at org.eclipse.tptp.trace.ui.internal.launcher.core.DataCollectorTreeContentProvider$DeferredDataCollectorAdapter.fetchDeferredChildren(DataCollectorTreeContentProvider.java:324)
	at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:235)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.io.IOException: java.io.IOException: error=13, Permission denied
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
	at java.lang.ProcessImpl.start(ProcessImpl.java:65)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
	... 14 more
Comment 31 Kathy Chan CLA 2010-11-18 18:55:39 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.