Has anyone else managed to solve this problem? I'm on Windows XP,
Eclipse 3.3.0, my Java is Sun's jre1.6.0_02. My firewall is disabled and
all IAC security is set to minimum. IAC is enabled. When I open the
profile dialog, it takes ages for the data collectors display to
populate. Then, when I attempt to profile, it hangs at 33% with this
message:

org.eclipse.core.runtime.CoreException
Agent Controller is unavailable under port 10002. Make sure that the
service is started and the port number is correct under preferences.

None of the TPTP versions have ever worked for me, despite multiple
clean installs of Eclipse. I've even tried the standalone agent
controller in the past (Pre 4.4) and never got anywhere. This was with
TPTP 4.4.1.v200709010100.

Nicholas Sherlock ha scritto:
> Hey all,
>
> Has anyone else managed to solve this problem? I'm on Windows XP,
> Eclipse 3.3.0, my Java is Sun's jre1.6.0_02. My firewall is disabled and
> all IAC security is set to minimum. IAC is enabled. When I open the
> profile dialog, it takes ages for the data collectors display to
> populate. Then, when I attempt to profile, it hangs at 33% with this
> message:
>
> org.eclipse.core.runtime.CoreException
> Agent Controller is unavailable under port 10002. Make sure that the
> service is started and the port number is correct under preferences.
>

Hi Nicholas,
I can suggest you some trials:
1) make sure you have no ACServer.exe and TPTPController.exe processes
runnning; if so, terminate them with Task Manager; start Eclipse and try
to profile your application: after Eclipse gives you that error message,
are ACServer.exe and TPTPController.exe processes running? They should

2) if you have problems with the IAC, try the stand-alone: restart
completely from scratch (so, no ACServer.exe nor
TPTPProcessController.exe running), download the stand-alone agent
controller from the TPTP download page (please take the one which
corresponds to the TPTP build id you're using), unpack it anywhere in
your system, open a DOS prompt in its bin folder and run SetConfig.exe,
following the on-screen instructions (please note that you should
configure it to use a Java 1.5 JRE, because 1.6 might not be totally
supported... at least this is what I understood); then, start
ACServer.exe and leave the DOS prompt open; start Eclipse and try to
profile your application

3) if you still have errors with the stand-alone agent controller and
the error given is a time-out problem, you might be encountering bug 201474:https://bugs.eclipse.org/bugs/show_bug.cgi?id=201474
If so, you may help to definitively solve this problem; you'll also find
an attached modified SocketTL.dll for the stand-alone agent controller,
which works in my case.

Igor Alelekov ha scritto:
> Hi Mauro,
> To get the defect 201474 fixed please use any last TPTP 4.4.1
> development build.
> The build from September 10th you are using doesn't contain the fix.
> Regards,
> Igor

You're right, sorry!
Actually, with the latest development build it works, using the
stand-alone agent controller.
It doesn't work yet with the IAC.
I'm writing in the bug report.

Okay, I installed a fresh copy of Eclipse Europa, with a fresh
workspace. Then I installed emf-sdo-xsd-SDK-2.3.1.zip, then
tptp.runtime-TPTP-4.4.1-200710120100.zip, and that seemed to go fine.
Next I installed the Agent Controller
(agntctrl.win_ia32-TPTP-4.4.1-200710130100.zip) to D:\tptpcontroller.
Next I ran SetConfig.bat. I chose the default JRE (it was correct),
Sun's 1.6.0_02. I chose LOCAL for security. Security enabled: FALSE.
JBoss was "null". Same for JOnAS. The configuration file in
d:\tptpcontroller\config\serviceconfig.xml was updated. Next I ran
ACServer, it said:

Nicholas Sherlock wrote:
> Nicholas Sherlock wrote:
>> Has anyone else managed to solve this problem?
>
> Okay, I installed a fresh copy of Eclipse Europa, with a fresh
> workspace. Then I installed emf-sdo-xsd-SDK-2.3.1.zip, then
> tptp.runtime-TPTP-4.4.1-200710120100.zip, and that seemed to go fine.
> Next I installed the Agent Controller
> (agntctrl.win_ia32-TPTP-4.4.1-200710130100.zip) to D:\tptpcontroller.
> Next I ran SetConfig.bat. I chose the default JRE (it was correct),
> Sun's 1.6.0_02. I chose LOCAL for security. Security enabled: FALSE.
> JBoss was "null". Same for JOnAS. The configuration file in
> d:\tptpcontroller\config\serviceconfig.xml was updated. Next I ran
> ACServer, it said:
>
> Error reading the Agent Controller configuration file. Please check for
> valid configuration.
>
> What went wrong? Here's my configuration file:

I've spent a bit of time in a debugger, and here's what went wrong. I'd
previously had the Agent Controller installed in d:\eclipse\agent.
Somehow the new installation is still looking in the old location. What
do I have to do to correct this? Some error reporting "Couldn't open
configuration file "C:\LOCATION" would have been great.

Nicholas Sherlock wrote:
> I've spent a bit of time in a debugger, and here's what went wrong. I'd
> previously had the Agent Controller installed in d:\eclipse\agent.
> Somehow the new installation is still looking in the old location. What
> do I have to do to correct this? Some error reporting "Couldn't open
> configuration file "C:\LOCATION" would have been great.

Yay! After correcting the system environment variables (TPTP_AC_HOME
etc.) I can finally profile with the standalone agent controller with
Java 1.6! Now I can bury myself in optimization and code coverage
analysis for a few weeks..! :)

Nicholas Sherlock ha scritto:
> Nicholas Sherlock wrote:
> Yay! After correcting the system environment variables (TPTP_AC_HOME
> etc.) I can finally profile with the standalone agent controller with
> Java 1.6! Now I can bury myself in optimization and code coverage
> analysis for a few weeks..! :)