Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Problems with Integrated Agent Controller
Problems with Integrated Agent Controller [message #115997] Fri, 19 October 2007 06:58 Go to next message
Eclipse User
Originally posted by: francesco.derose.gmail.com

Hello!

I am using Eclipse 3.3.0 on Linux and TPTP 4.4.1. I am using sun's jvm
version 1.5.0.

I would like to profile an application I am writing but I cannot get to
do so. According to the documentation, I should be able to use the
Integrated Agent Controller, but when I start profiling, I get this
error message:

One of the selected launch delegates has failed.

Reason:

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.
java.lang.NullPointerException
at
org.eclipse.tptp.platform.iac.administrator.internal.startst op.AutoStartStop.hasProcessTerminated(AutoStartStop.java:275 )
at
org.eclipse.tptp.platform.iac.administrator.internal.startst op.AutoStartStop.startIAC(AutoStartStop.java:113)
at
org.eclipse.tptp.platform.execution.client.core.internal.Nod eImpl.connect(NodeImpl.java:117)
at
org.eclipse.tptp.platform.execution.util.internal.AgentContr ollerPool$1$EstablishConnection.run(AgentControllerPool.java :164)
at java.lang.Thread.run(Thread.java:595)



What could be the problem? I also tried to telnet on port 10002 to see
if there is a daemon listening, and I get Connection refused.

Thank you for your help!

Francesco
Re: Problems with Integrated Agent Controller [message #116010 is a reply to message #115997] Fri, 19 October 2007 08:59 Go to previous messageGo to next message
Eclipse User
Originally posted by: mauro.molinari.cardinis.com

Francesco De Rose ha scritto:
> Hello!
>
> I am using Eclipse 3.3.0 on Linux and TPTP 4.4.1. I am using sun's jvm
> version 1.5.0.
>
> I would like to profile an application I am writing but I cannot get to
> do so. According to the documentation, I should be able to use the
> Integrated Agent Controller, but when I start profiling, I get this
> error message:
>
> One of the selected launch delegates has failed.
>
> Reason:
>
> 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.
> java.lang.NullPointerException
> at
> org.eclipse.tptp.platform.iac.administrator.internal.startst op.AutoStartStop.hasProcessTerminated(AutoStartStop.java:275 )
>
> at
> org.eclipse.tptp.platform.iac.administrator.internal.startst op.AutoStartStop.startIAC(AutoStartStop.java:113)
>
> at
> org.eclipse.tptp.platform.execution.client.core.internal.Nod eImpl.connect(NodeImpl.java:117)
>
> at
> org.eclipse.tptp.platform.execution.util.internal.AgentContr ollerPool$1$EstablishConnection.run(AgentControllerPool.java :164)
>
> at java.lang.Thread.run(Thread.java:595)
>
>
>
> What could be the problem? I also tried to telnet on port 10002 to see
> if there is a daemon listening, and I get Connection refused.
>
> Thank you for your help!
>
> Francesco

Hi Francesco,
try using the stand-alone agent controller.
Have a look at this too:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=200697

Cheers,
Mauro.
Re: Problems with Integrated Agent Controller [message #116112 is a reply to message #115997] Sun, 21 October 2007 22:51 Go to previous message
Tomas Vondra is currently offline Tomas Vondra
Messages: 4
Registered: July 2009
Junior Member
Hello,

I have problems with IAC too. I'm running Gentoo linux on AMD64
(x86_64), and that causes a lot of problems. I've read a lot of post on
various lists, solved some of the issues, but still it does not work.

I've done this:

1) installed eclipse 3.3 and then TPTP tools - the IAC obviously does
not work 'out of the box' (it's not started automatically, nor it can
be started manually and then used as a standalone AC)

2) fixed the 'screwed' symblinks in the

org.eclipse.tptp.platform.ac.linux_ia32_4.4.1.v200709261752/ agent_controller/lib

directory (removed them, created them from scratch) using this:

for i in `ls *.so.4.4.0`; do
rm ${i/.4.4.0/} ${i/.4.4.0/.4};
ln -s $i ${i/.4.4.0/};
ln -s $i ${i/.4.4.0/.4};
done;

and fixed access rights on them 'chmod ug+x *'

3) fixed access rights on files in the agent_controller/bin directory
with the same command as above, i.e. 'chmod ug+x *'

4) copied the 'config.jar' from

org.eclipse.tptp.platform.agentcontroller_4.2.1.v20070919124 5/

to agent_controller/lib as it is missing there (and the SetConfig.sh
fails due to that).

5) executed SetConfig.sh (succesfully generated config allowing access
to everyone, using the Sun JDK 1.6.0.03, with security disabled)

Now I can run the AC manually (it starts succesfully) it still does not
work from eclipse. The "Test connection" from the "Profiling and Logging
/ Hosts" preferences results in "connection success" but when I try to
profile an application, I receive

Could not find agent library on the library path or in the local
directory: JPIBootLoader

And of course - automatic starting of the IAC does not work too.

I had the same problem on my other machine (laptop with a 32bit Linux),
but the steps 1, 2 and 3 solved it, so I think this might be one of the
'32bit vs 64bit' issues - I've found some bugzilla items, but not sure
what is the current status.

Is there some solution I'm not aware of, or is it just another reason
for switching back to 32bit environment?

Thanks
Tomas
Previous Topic:How to get the type of the class being analyzed?
Next Topic:[new AC] Hox to process command with a body from Java ?
Goto Forum:
  


Current Time: Tue Jul 22 15:44:27 EDT 2014

Powered by FUDForum. Page generated in 0.01509 seconds