Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » TPTP still doesn't work
TPTP still doesn't work [message #114891] Wed, 10 October 2007 09:18 Go to next message
Eclipse User
Originally posted by: n.sherlock.gmail.com

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.

org.eclipse.tptp.platform.execution.exceptions.AgentControll erUnavailableException:
at
org.eclipse.tptp.platform.execution.util.internal.AgentContr ollerFactory.createConnection(AgentControllerFactory.java:55 )
at
org.eclipse.tptp.platform.execution.util.internal.AgentContr ollerPool.createConnection(AgentControllerPool.java:190)
at
org.eclipse.tptp.platform.execution.util.internal.AgentContr ollerPool.getConnection(AgentControllerPool.java:152)
at
org.eclipse.tptp.platform.execution.util.internal.AgentContr ollerPool.getConnection(AgentControllerPool.java:83)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.uti l.AgentControllerDelegate.getConnection(AgentControllerDeleg ate.java:47)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.uti l.AgentControllerDelegate.getConnection(AgentControllerDeleg ate.java:52)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.connectToAgentController(TIDelegateHelper.java :395)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.launch(TIDelegateHelper.java:310)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIJ avaLauncherDelegate.launch(TIJavaLauncherDelegate.java:37)
at
org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.delegateInit(LauncherUtility.java:1163)
at
org.eclipse.tptp.trace.ui.provisional.launcher.PrimaryLaunch Delegate.run(PrimaryLaunchDelegate.java:196)
at java.lang.Thread.run(Unknown Source)

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.

Cheers,
Nicholas Sherlock
Re: TPTP still doesn't work [message #114917 is a reply to message #114891] Wed, 10 October 2007 09:30 Go to previous messageGo to next message
Eclipse User
Originally posted by: mauro.molinari.cardinis.com

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.

I hope to have been of help.

Mauro.
Re: TPTP still doesn't work [message #114980 is a reply to message #114917] Wed, 10 October 2007 11:19 Go to previous messageGo to next message
Igor Alelekov is currently offline Igor Alelekov
Messages: 139
Registered: July 2009
Senior Member
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
Re: TPTP still doesn't work [message #115008 is a reply to message #114891] Wed, 10 October 2007 11:30 Go to previous messageGo to next message
Eclipse User
Originally posted by: ffr.softwareag.com

Hi Nicholas,

perhaps it's not that complicated.

Are you using TPTP from an extension location?
Or, is EMF used from an extension location?
Or, is the drive where your TPTP installation resides write protected?

If one of these applies, the IAC can't start because of a misconfigured or
readonly configuration file (i.e. serviceconfig.xml).

Regards

Frank

"Nicholas Sherlock" <n.sherlock@gmail.com> wrote in message
news:fei5dr$qlt$1@build.eclipse.org...
> 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.
>
> org.eclipse.tptp.platform.execution.exceptions.AgentControll erUnavailableException:
> at
> org.eclipse.tptp.platform.execution.util.internal.AgentContr ollerFactory.createConnection(AgentControllerFactory.java:55 )
> at
> org.eclipse.tptp.platform.execution.util.internal.AgentContr ollerPool.createConnection(AgentControllerPool.java:190)
> at
> org.eclipse.tptp.platform.execution.util.internal.AgentContr ollerPool.getConnection(AgentControllerPool.java:152)
> at
> org.eclipse.tptp.platform.execution.util.internal.AgentContr ollerPool.getConnection(AgentControllerPool.java:83)
> at
> org.eclipse.tptp.platform.jvmti.client.internal.launcher.uti l.AgentControllerDelegate.getConnection(AgentControllerDeleg ate.java:47)
> at
> org.eclipse.tptp.platform.jvmti.client.internal.launcher.uti l.AgentControllerDelegate.getConnection(AgentControllerDeleg ate.java:52)
> at
> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.connectToAgentController(TIDelegateHelper.java :395)
> at
> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.launch(TIDelegateHelper.java:310)
> at
> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIJ avaLauncherDelegate.launch(TIJavaLauncherDelegate.java:37)
> at
> org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.delegateInit(LauncherUtility.java:1163)
> at
> org.eclipse.tptp.trace.ui.provisional.launcher.PrimaryLaunch Delegate.run(PrimaryLaunchDelegate.java:196)
> at java.lang.Thread.run(Unknown Source)
>
> 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.
>
> Cheers,
> Nicholas Sherlock
Re: TPTP still doesn't work [message #115173 is a reply to message #114980] Wed, 10 October 2007 16:24 Go to previous messageGo to next message
Eclipse User
Originally posted by: mauro.molinari.cardinis.com

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.

Thanks again!

Mauro.
Re: TPTP still doesn't work [message #115379 is a reply to message #114891] Sun, 14 October 2007 01:21 Go to previous messageGo to next message
Eclipse User
Originally posted by: n.sherlock.gmail.com

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:

<?xml version="1.0" encoding="UTF-8"?>
<AgentControllerConfiguration>
<AgentControllerEnvironment configuration="default">
<Variable name="JAVA_PATH" position="replace" value="D:\Program
Files\Java\jre1.6.0_02\bin\java.exe"/>
<Variable name="RASERVER_HOME" position="replace" value="D:\tptpagent"/>
<Variable name="TPTP_AC_HOME" position="replace" value="%RASERVER_HOME%"/>
<Variable name="PLUGINS_HOME" position="replace"
value="D:\tptpagent\plugins"/>
<Variable name="PATH" position="prepend" value="%RASERVER_HOME%\bin"/>
<Variable name="SYS_TEMP_DIR" position="replace" value="%TEMP%"/>
<Variable name="LOCAL_AGENT_TEMP_DIR" position="replace"
value="%SYS_TEMP_DIR%"/>
<Variable name="CLASSPATH_ORG_APACHE_COMMONS_LOGGING"
position="append"
value=" D:\tptpagent\plugins\org.apache.commons.logging_1.0.4.v20070 6111724.jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_CORE_COMMANDS" position="append"
value=" D:\tptpagent\plugins\org.eclipse.core.commands_3.3.0.I200706 05-0010.jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_CORE_RUNTIME" position="append"
value=" D:\tptpagent\plugins\org.eclipse.core.runtime_3.3.100.v20070 530.jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_EQUINOX_COMMON"
position="append"
value=" D:\tptpagent\plugins\org.eclipse.equinox.common_3.3.0.v20070 426.jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_OSGI" position="append"
value=" D:\tptpagent\plugins\org.eclipse.osgi_3.3.1.R33x_v20070828.j ar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_EMF_COMMON" position="append"
value=" D:\tptpagent\plugins\org.eclipse.emf.common_2.2.2.v200710030 400.jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_EMF_ECORE" position="append"
value=" D:\tptpagent\plugins\org.eclipse.emf.ecore_2.2.4.v2007100304 00.jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_EMF_ECORE_XMI" position="append"
value=" D:\tptpagent\plugins\org.eclipse.emf.ecore.xmi_2.2.4.v200710 030400.jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_JFACE" position="append"
value=" D:\tptpagent\plugins\org.eclipse.jface_3.3.1.M20070910-0800b .jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_SWT" position="append"
value="D:\tptpagent\plugins\swt.jar"/>
<Variable name="CLASSPATH_ORG_ECLIPSE_TPTP_PLATFORM_MODELS"
position="append"
value=" D:\tptpagent\plugins\org.eclipse.tptp.platform.models_4.3.10 0.v200709030100\fastxpath.jar;D:\tptpagent\plugins\org.eclip se.tptp.platform.models_4.3.100.v200709030100\tptp-models.ja r "/>
<Variable name="CLASSPATH_ORG_JUNIT" position="append"
value=" D:\tptpagent\plugins\org.junit_3.8.2.v200706111738\junit.jar "/>
<Variable name="CLASSPATH_COM_IBM_ICU" position="append"
value="D:\tptpagent\plugins\com.ibm.icu_3.6.1.v20070906.jar "/>
<Variable name="CLASSPATH_ORG_APACHE_JAKARTA_COMMONS_LOGGING"
position="append" value="%CLASSPATH_ORG_APACHE_COMMONS_LOGGING%"/>
<Variable name="CLASSPATH" position="append"
value=" D:\tptpagent\plugins\org.eclipse.core.runtime_3.3.100.v20070 530.jar "/>
<Variable name="CLASSPATH" position="append"
value=" D:\tptpagent\plugins\org.eclipse.equinox.common_3.3.0.v20070 426.jar "/>
<Variable name="CLASSPATH" position="append"
value=" D:\tptpagent\plugins\org.eclipse.osgi_3.3.1.R33x_v20070828.j ar "/>
</AgentControllerEnvironment>
<ApplicationAliases>
<Application configuration="default" executable="java.exe"
location="%SYS_TEMP_DIR%" path="%JAVA_PATH%">
<Variable name="CLASSPATH" position="append"
value="%CLASSPATH_ORG_ECLIPSE_EQUINOX_COMMON%"/>
<Variable name="PATH" position="prepend" value="%RASERVER_HOME%\bin"/>
</Application>
</ApplicationAliases>
<Plugin path="%PLUGINS_HOME%"/>
<Agent path="%TPTP_AC_HOME%\agents"/>
<Logging directory="%TPTP_AC_HOME%\config" format="CBE"
level="INFORMATION"/>
<ProcessController>%TPTP_AC_HOME%\bin\tptpProcessController.exe </ProcessController>
<Connection name="Dev">
<TransportLayer loadlib="socketTL" type="TPTP_SOCKET">
<Configuration>
<Port>10006</Port>
<SecurityEnabled>false</SecurityEnabled>
</Configuration>
<CommandExtractor>tptpCmdExtr</CommandExtractor>
</TransportLayer>
<TransportLayer loadlib="namedPipeTL" type="TPTP_LOG">
<Configuration>
<PipeName>acmasterlog</PipeName>
</Configuration>
<CommandExtractor>tptpCmdExtr</CommandExtractor>
</TransportLayer>
<TransportLayer loadlib="namedPipeTL" type="TPTP_NAMEDPIPE">
<Configuration>
<PipeName>acmaster</PipeName>
</Configuration>
<CommandExtractor>tptpCmdExtr</CommandExtractor>
</TransportLayer>
<TransportLayer loadlib="sharedMemTL" type="TPTP_SHAREDMEM">
<Configuration>
<MemName>acbuffer</MemName>
</Configuration>
<CommandExtractor>tptpCmdExtr</CommandExtractor>
</TransportLayer>
<TransportLayer loadlib="tptpCCTL" type="TPTP_CCTL">
<Configuration>
<Port>10002</Port>
<SecuredPort>10003</SecuredPort>
<FilePort>10005</FilePort>
<IsDataMultiplexed>false</IsDataMultiplexed>
<ProcessPolling>true</ProcessPolling>
<Jvm>D:\Program Files\Java\jre1.6.0_02\bin\client\jvm.dll</Jvm>
<Version>4.4.1</Version>
<SecurityEnabled>false</SecurityEnabled>
<Hosts configuration="default">
<Allow host="LOCAL"/>
</Hosts>
</Configuration>
<CommandExtractor>tptpCmdExtr</CommandExtractor>
</TransportLayer>
<TransportLayer loadlib="tptpACTL" type="TPTP_ACTL">
<Configuration/>
<CommandExtractor>tptpCmdExtr</CommandExtractor>
</TransportLayer>
</Connection>
<PeerConnectionTransport>TPTP_CCTL</PeerConnectionTransport >
</AgentControllerConfiguration>


Cheers,
Nicholas Sherlock
Re: TPTP still doesn't work [message #115555 is a reply to message #115379] Tue, 16 October 2007 03:24 Go to previous messageGo to next message
Eclipse User
Originally posted by: n.sherlock.gmail.com

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.

Cheers,
Nicholas Sherlock
Re: TPTP still doesn't work [message #115568 is a reply to message #115555] Tue, 16 October 2007 04:22 Go to previous messageGo to next message
Eclipse User
Originally posted by: n.sherlock.gmail.com

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..! :)

Cheers,
Nicholas Sherlock
Re: TPTP still doesn't work [message #115581 is a reply to message #115568] Tue, 16 October 2007 08:25 Go to previous message
Eclipse User
Originally posted by: mauro.molinari.cardinis.com

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..! :)

Great! :-)

Cheers,
Mauro.
Previous Topic:Getting started with TPTP
Next Topic:tptp ant execution / birt reporting error.
Goto Forum:
  


Current Time: Tue Oct 21 15:28:33 GMT 2014

Powered by FUDForum. Page generated in 0.02273 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software