Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Problems getting TPTP to work
Problems getting TPTP to work [message #128319] Fri, 11 April 2008 10:51 Go to next message
Eclipse User
Originally posted by: MacAdam.eden.invalid

Hi,

In the search for the causes of a memory leak I wanted to try out TPTP.
I downloaded the runtime for TPTPT-4.4.1, and installed the zipfile to
the parent directory of eclipse (trust me, these files are correctly
placed in D:\eclipse\features and D:\eclipse\plugins).

Next I tried to launch the sample application using the 'launch
profiling' button.

1. I had no 'Profile' choice, but choose 'Open Profile Dialog ...'.

2. In the window that opened, I entered the data for the sample
application in the Main tab. In the Monitor tab I selected 'Memory
Analysis' at 'Java Profiling - JRE 1.5 or newer).

After pressing the 'Profile' button I got a warning window with reason:
"One of the selected launch delegates has failed.

Reason:"
(Note, no reason given!)

This warning had the following details:
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:
Error: Unable to connect to the Agent Controller.Connection refused: connect
at
org.eclipse.tptp.platform.execution.client.core.internal.Nod eImpl.connect(NodeImpl.java:128)
at
org.eclipse.tptp.platform.execution.util.internal.AgentContr ollerFactory$EstablishConnection.run(AgentControllerFactory. java:126)
at java.lang.Thread.run(Unknown Source)

So what do I need to do to be able to use TPTP?

(And I saw the AgentControllerUnavailableException. But I can not see
what I need to do to get the AgentController to work, beside following
the instructions, and finding out that setConfig.bat can not find JAXP,
which by the way is part of JDK 1.6).

Abel
Re: Problems getting TPTP to work [message #128383 is a reply to message #128319] Sun, 13 April 2008 10:04 Go to previous messageGo to next message
Asaf Yaffe is currently offline Asaf Yaffe
Messages: 333
Registered: July 2009
Senior Member
Abel,
> Reason:"
> (Note, no reason given!)
>
> This warning had the following details:
> 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:
> Error: Unable to connect to the Agent Controller.Connection refused:
> connect
> at
> org.eclipse.tptp.platform.execution.client.core.internal.Nod eImpl.connect(NodeImpl.java:128)
>
> at
> org.eclipse.tptp.platform.execution.util.internal.AgentContr ollerFactory$EstablishConnection.run(AgentControllerFactory. java:126)
>
> at java.lang.Thread.run(Unknown Source)
>
> So what do I need to do to be able to use TPTP?

This is a known issue with the Integrated Agent Controller.

>
> (And I saw the AgentControllerUnavailableException. But I can not see
> what I need to do to get the AgentController to work, beside following
> the instructions, and finding out that setConfig.bat can not find JAXP,
> which by the way is part of JDK 1.6).

Try running SetConfig.bat from the directory it is located in (e.g., CD
to the 'bin' directory before running it). This should solve the
JAXP-related error and configure the Agent Controller.

HTH,
Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Re: Problems getting TPTP to work [message #128410 is a reply to message #128383] Mon, 14 April 2008 07:20 Go to previous messageGo to next message
Eclipse User
Originally posted by: MacAdam.eden.invalid

Asaf Yaffe wrote:
> Abel,
>> So what do I need to do to be able to use TPTP?
>
> This is a known issue with the Integrated Agent Controller.
>> ...
> Try running SetConfig.bat from the directory it is located in (e.g., CD
> to the 'bin' directory before running it). This should solve the
> JAXP-related error and configure the Agent Controller.
>
> HTH,
> Asaf
>
Hi Asaf,

Thank you for your response. I already tried to run SetConfig.bat from
the directory from the DOS prompt. It generated the same error, and did
not configure the controller :-(.

Looking in the batch file I started to fiddle around with the line
resulting in the error message. I changed it from
@java -classpath ..\lib\config.jar
org.eclipse.tptp.platform.agentcontroller.config.TestJAXP > nul 2>&1
into:
java -classpath
D:\eclipse\plugins\org.eclipse.tptp.platform.agent_controlle r\bin >java
-classpath
D:\eclipse\plugins\org.eclipse.tptp.platform.agentcontroller _4.2.101.v200802221314\config.jar
org.eclipse.tptp.platform.agentcontroller.config.TestJAXP > nul 2>&1

Running this last line on its own on the command prompt did not result
in an error message. But this same line in the batch file resulted in
the following error message:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/tptp/platform/agentcontroller/config/SetConfig
Caused by: java.lang.ClassNotFoundException:
org.eclipse.tptp.platform.agentcontroller.config.SetConfig
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

Any suggestions on what I can do next?

Abel
Re: Problems getting TPTP to work [message #128422 is a reply to message #128410] Mon, 14 April 2008 12:36 Go to previous messageGo to next message
Asaf Yaffe is currently offline Asaf Yaffe
Messages: 333
Registered: July 2009
Senior Member
Abel,

Please try downloading and using the standalone Agent Controller. Make
sure to run its SetConfig script before launching it.

HTH,
Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Re: Problems getting TPTP to work [message #128434 is a reply to message #128422] Mon, 14 April 2008 12:53 Go to previous messageGo to next message
Eclipse User
Originally posted by: MacAdam.eden.invalid

Asaf Yaffe wrote:
> Abel,
>
> Please try downloading and using the standalone Agent Controller. Make
> sure to run its SetConfig script before launching it.
>
> HTH,
> Asaf
>
OK, thanks.
Re: Problems getting TPTP to work [message #128446 is a reply to message #128410] Mon, 14 April 2008 12:53 Go to previous messageGo to next message
Igor Alelekov is currently offline Igor Alelekov
Messages: 139
Registered: July 2009
Senior Member
Abel,
Currently IAC can't be configured from command line.
When you configure IAC from command line, it can't find its own plugins
(jvmti profiler and others) to configure them and profiler will be
unavailable.

You can follow Asaf and use standalone Agent Controller instead of IAC.

Regards,
Igor
Re: Problems getting TPTP to work [message #128661 is a reply to message #128446] Sat, 19 April 2008 06:18 Go to previous messageGo to next message
Eclipse User
Originally posted by: himanshu.singh123.yahoo.co.in

Hi Igor,


Plz share the link with me from where I can download standalone Agent
Controller.

Currently I am using TPTP 4.4.1 All in one package which has complete
Eclipse Europa with TPTP profiling and monitering tools. I am also getting
the same problem.

Regards,
Himanshu
Re: Problems getting TPTP to work [message #128684 is a reply to message #128661] Mon, 21 April 2008 07:21 Go to previous message
Asaf Yaffe is currently offline Asaf Yaffe
Messages: 333
Registered: July 2009
Senior Member
Himanshu Singh wrote:
> Hi Igor,

Hope I am not stepping on your toes, Igor :)

>
> Plz share the link with me from where I can download standalone Agent
> Controller.

http://www.eclipse.org/tptp/home/downloads/
The standalone Agent Controller is in the "Agent Controller" section
(3rd from the top).

HTH,
Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Previous Topic:ProfileProject?
Next Topic:trouble profiling with TPTP
Goto Forum:
  


Current Time: Sun Oct 26 00:20:56 GMT 2014

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

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