Getting started with demo agent [message #34294] |
Fri, 07 October 2005 09:19  |
Eclipse User |
|
|
|
Hello folks,
I am trying to get started with a demo agent and can't quite get things
running. Here is my setup:
- Win XP, eclipse 3.1.1, TPTP 4.0.0 with all the other prerequisites (EMF
....) I can switch to the profiling and logging perspective so I think this
is all o.k.
- eclipseCon demo sources from the TPTP documentation page
( http://www.eclipse.org/tptp/home/documents/eclipseCon2005/Ec lipseCon_2005_Tutorial_22_Source_Code_Antony_Miguel_Paul_Sla uenwhite.zip)
- Imported eclipsecon.tutorial.datacollection and
eclipsecon.tutorial.datacollection.agent projects into the workspace. Fixed
a few compiler errors where package names have changed. I can now run
eclipsecon.tutorial.datacollection.agent as a java application and the agend
keeps telling me that it is not being monitored yet.
- Downloaded and unpacked the windows agent controller, ran SetConfig.bat
but left everything as default. Started the RAServer as an application (from
the command line). It doesn't say anything but keeps running until I kill it
so I guess this must be o.k.
- Create a new eclipseCon Agent launch configuration and leave the host
entry as "localhost". With RAServer and the agent running I start the launch
configuration. Here is the console output:
asked to connect to localhost:10002
connecting to RAC
connected to RAC
problem initialising loader
org.eclipse.hyades.internal.execution.local.control.NoSuchAp plicationException
at
org.eclipse.hyades.internal.execution.local.control.ProcessI mpl.launch(ProcessImpl.java:192)
at
eclipsecon.tutorial.datacollection.AgentLoader$ProcessLaunch .run(AgentLoader.java:302)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:152)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:28)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:3413)
at
eclipsecon.tutorial.datacollection.AgentLoader.init(AgentLoa der.java:206)
at
eclipsecon.tutorial.datacollection.AgentLoader.<init>(AgentLoader.java:63)
at
eclipsecon.tutorial.datacollection.launchconfig.AgentLaunche r$StatConRun.run(AgentLauncher.java:106)
at
org.eclipse.ui.internal.UILockListener.doPendingWork(UILockL istener.java:150)
at org.eclipse.ui.internal.UISynchronizer$1.run(UISynchronizer. java:36)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2716)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
....
So I figure:
- The eclipse launch can actually contact the RAServer
- The RAServer does not know anything about the demo Agent, even though it
is running.
How do I get the two acquainted?
Or what else can I do ?
Thanks for reading this far - and for responses!
Norbert Ploett
|
|
|
|
Re: Getting started with demo agent [message #38122 is a reply to message #34294] |
Mon, 31 October 2005 08:41  |
Eclipse User |
|
|
|
Hi Norbert,
This sample code was originally written for Hyades v3.2.0 due to a
defect in Hyades v3.1.0. However, the defect has since been fix so with the
appropriate refactoring (see
http://www.eclipse.org/tptp/home/downloads/migrateguide/4.0/ tptp_4_0_migration_guide.html),
it should work in later releases of Hyades/TPTP.
When installing the Agent Controller, did you follow all of the steps in
teh Agent Controller's getting_started.html, including adding the Agent
Controller's bin directory to the system's PATH variable? If so and you can
successfully profile a sample application, please post the Agent
Controller's servicelog.log.
Also, consider using the later release of this sample which is in the
source download for the 'Using and Extending the Test and Performance Tools
Platform' EclipseWorld presentation.
Paul
"Norbert Ploett" <norbert.ploett@siemens.com> wrote in message
news:1128691153.990373@baruth.khe.siemens.de...
> Hello folks,
>
> I am trying to get started with a demo agent and can't quite get things
> running. Here is my setup:
>
> - Win XP, eclipse 3.1.1, TPTP 4.0.0 with all the other prerequisites (EMF
> ...) I can switch to the profiling and logging perspective so I think this
> is all o.k.
> - eclipseCon demo sources from the TPTP documentation page
>
( http://www.eclipse.org/tptp/home/documents/eclipseCon2005/Ec lipseCon_2005_T
utorial_22_Source_Code_Antony_Miguel_Paul_Slauenwhite.zip)
> - Imported eclipsecon.tutorial.datacollection and
> eclipsecon.tutorial.datacollection.agent projects into the workspace.
Fixed
> a few compiler errors where package names have changed. I can now run
> eclipsecon.tutorial.datacollection.agent as a java application and the
agend
> keeps telling me that it is not being monitored yet.
> - Downloaded and unpacked the windows agent controller, ran SetConfig.bat
> but left everything as default. Started the RAServer as an application
(from
> the command line). It doesn't say anything but keeps running until I kill
it
> so I guess this must be o.k.
> - Create a new eclipseCon Agent launch configuration and leave the host
> entry as "localhost". With RAServer and the agent running I start the
launch
> configuration. Here is the console output:
>
> asked to connect to localhost:10002
> connecting to RAC
> connected to RAC
> problem initialising loader
>
org.eclipse.hyades.internal.execution.local.control.NoSuchAp plicationExcepti
on
> at
>
org.eclipse.hyades.internal.execution.local.control.ProcessI mpl.launch(Proce
ssImpl.java:192)
> at
>
eclipsecon.tutorial.datacollection.AgentLoader$ProcessLaunch .run(AgentLoader
..java:302)
> at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:152)
> at
org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:28)
> at org.eclipse.swt.widgets.Display.syncExec(Display.java:3413)
> at
> eclipsecon.tutorial.datacollection.AgentLoader.init(AgentLoa der.java:206)
> at
> eclipsecon.tutorial.datacollection.AgentLoader.<init>(AgentLoader.java:63)
> at
>
eclipsecon.tutorial.datacollection.launchconfig.AgentLaunche r$StatConRun.run
(AgentLauncher.java:106)
> at
>
org.eclipse.ui.internal.UILockListener.doPendingWork(UILockL istener.java:150
)
> at org.eclipse.ui.internal.UISynchronizer$1.run(UISynchronizer. java:36)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
>
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2716)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
> ...
>
> So I figure:
> - The eclipse launch can actually contact the RAServer
> - The RAServer does not know anything about the demo Agent, even though it
> is running.
>
> How do I get the two acquainted?
> Or what else can I do ?
>
>
> Thanks for reading this far - and for responses!
>
>
> Norbert Ploett
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04479 seconds