Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » SampleClient TPTPAgent - Invalid Login Credentials
SampleClient TPTPAgent - Invalid Login Credentials [message #77635] Tue, 18 July 2006 14:10 Go to next message
Eclipse UserFriend
Originally posted by: martin.schuetz.vmasch.at

I'm trying the TPTPAgent-Sample
( http://www.eclipse.org/tptp/platform/documents/newtechAC/jav adoc/TPTPAgent.java)
to connect to AC and to query all available and runnning agents. I'm using
the same data for the ConnectionInfo-object (host "127.0.0.1" and port
"10002") as in the "Profile"-window via Eclipse (where I can see AC with all
available agents).

Executing the sample, I get the following output:
Connecting to AC..
Error occurred while connecting to
127.0.0.1:org.eclipse.tptp.platform.execution.exceptions.Age ntControllerUnavailableException:
Error: Unable to connect to the Agent Controller.Invalid Login Credentials
I set the AC-network access mode to "ALL" and security enabled to "FALSE"
.... I also configured the AC and tried the connect(ConnectionInfo connInfo,
User user)-method, but it doesn't work.
I'm using Eclipse 3.2.0, TPTP 4.2 and the new technology Agent Controller.
Thanks
Re: SampleClient TPTPAgent - Invalid Login Credentials [message #77667 is a reply to message #77635] Tue, 18 July 2006 15:56 Go to previous messageGo to next message
Thayaparan Shanmugaratnam is currently offline Thayaparan ShanmugaratnamFriend
Messages: 12
Registered: July 2009
Junior Member
Hi,

You may what to try connecting to the Agent Controller using the old API.
You will be able find a sample of how it is used if you extract the class
AutomationUtil and look at method connect().

AutomationUtil is located in:
/test-results/platform/org.eclipse.tptp.ac.testautomation/sr c/org.eclipse.tptp.ac.testautomation.internal.util

I hope this helps.

-Thay
Re: SampleClient TPTPAgent - Invalid Login Credentials [message #77716 is a reply to message #77635] Tue, 18 July 2006 22:05 Go to previous messageGo to next message
Randy D. Smith is currently offline Randy D. SmithFriend
Messages: 394
Registered: July 2009
Senior Member
Martin Schuetz wrote:
> I'm trying the TPTPAgent-Sample
> ( http://www.eclipse.org/tptp/platform/documents/newtechAC/jav adoc/TPTPAgent.java)

That's documentation for 4.1.0 sample code... how did you get here?

> to connect to AC and to query all available and runnning agents. I'm using
> the same data for the ConnectionInfo-object (host "127.0.0.1" and port
> "10002") as in the "Profile"-window via Eclipse (where I can see AC with all
> available agents).
>
> Executing the sample, I get the following output:
> Connecting to AC..
> Error occurred while connecting to
> 127.0.0.1:org.eclipse.tptp.platform.execution.exceptions.Age ntControllerUnavailableException:
> Error: Unable to connect to the Agent Controller.Invalid Login Credentials
> I set the AC-network access mode to "ALL" and security enabled to "FALSE"
> ... I also configured the AC and tried the connect(ConnectionInfo connInfo,
> User user)-method, but it doesn't work.
> I'm using Eclipse 3.2.0, TPTP 4.2 and the new technology Agent Controller.
> Thanks

If you're using that Callisto stuff, you can do as I did
(1) cd
<callisto_install_dir> /eclipse/plugins/org.eclipse.tptp.platform.execution_4.2.0.v 200606140100/src
(2) javac org/eclipse/tptp/platform/execution/samples/TPTPAgent.java -cp
.../tptpcore.jar
(3) java -cp ../tptpcore.jar
oreg/eclipse/tptp/platform/execution/sample/TPTPAgent

I get:
Connecting to AC..
Connected to localhost at port number 10006
---------------------------------------
Querying Available Agents ...


Available Agents ::org.eclipse.tptp.FileTransferAgent
Available Agents ::org.eclipse.tptp.JavaTimeCollector
Available Agents ::org.eclipse.tptp.legacy.DumpAgent
Available Agents ::org.eclipse.tptp.StressAgent
Available Agents ::org.eclipse.tptp.TimeCollector
Available Agents ::org.eclipse.tptp.legacy.Java
Available Agents ::Profiling
Available Agents ::Agent
---------------------------------------
Querying Available Agents by type...


---------------------------------------
Querying Running Agents...


# of Running Agents ::1
Running Agents ::ProcessController
---------------------------------------
Querying Running Agents by type ...


# of Running Agents ::0
---------------------------------------




Agent MetaData ::
Agent ID for the agent ac 1


Agent ID for the agent ac true 2



Thay... how do you "query all available and runnning agents" with the
RAC API? I thought that was one of the distinct advantages of the "new
tech AC"!
--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Re: SampleClient TPTPAgent - Invalid Login Credentials [message #77732 is a reply to message #77716] Wed, 19 July 2006 06:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: martin.schuetz.vmasch.at

I started my challenge via
http://www.eclipse.org/tptp/platform/documents/newtechAC/jav adoc/overview-summary.html
.... and I unfortunately mixed different versions.

Now it works,

Thanks!


"Randy D. Smith" <randy.d.smith@intel.com> schrieb im Newsbeitrag
news:e9jlvg$5g1$1@utils.eclipse.org...
> Martin Schuetz wrote:
>> I'm trying the TPTPAgent-Sample
>> ( http://www.eclipse.org/tptp/platform/documents/newtechAC/jav adoc/TPTPAgent.java)
>
> That's documentation for 4.1.0 sample code... how did you get here?
>
>> to connect to AC and to query all available and runnning agents. I'm
>> using the same data for the ConnectionInfo-object (host "127.0.0.1" and
>> port "10002") as in the "Profile"-window via Eclipse (where I can see AC
>> with all available agents).
>>
>> Executing the sample, I get the following output:
>> Connecting to AC..
>> Error occurred while connecting to
>> 127.0.0.1:org.eclipse.tptp.platform.execution.exceptions.Age ntControllerUnavailableException:
>> Error: Unable to connect to the Agent Controller.Invalid Login
>> Credentials
>> I set the AC-network access mode to "ALL" and security enabled to "FALSE"
>> ... I also configured the AC and tried the connect(ConnectionInfo
>> connInfo, User user)-method, but it doesn't work.
>> I'm using Eclipse 3.2.0, TPTP 4.2 and the new technology Agent
>> Controller.
>> Thanks
>
> If you're using that Callisto stuff, you can do as I did
> (1) cd
> <callisto_install_dir> /eclipse/plugins/org.eclipse.tptp.platform.execution_4.2.0.v 200606140100/src
> (2) javac org/eclipse/tptp/platform/execution/samples/TPTPAgent.java -cp
> ../tptpcore.jar
> (3) java -cp ../tptpcore.jar
> oreg/eclipse/tptp/platform/execution/sample/TPTPAgent
>
> I get:
> Connecting to AC..
> Connected to localhost at port number 10006
> ---------------------------------------
> Querying Available Agents ...
>
>
> Available Agents ::org.eclipse.tptp.FileTransferAgent
> Available Agents ::org.eclipse.tptp.JavaTimeCollector
> Available Agents ::org.eclipse.tptp.legacy.DumpAgent
> Available Agents ::org.eclipse.tptp.StressAgent
> Available Agents ::org.eclipse.tptp.TimeCollector
> Available Agents ::org.eclipse.tptp.legacy.Java
> Available Agents ::Profiling
> Available Agents ::Agent
> ---------------------------------------
> Querying Available Agents by type...
>
>
> ---------------------------------------
> Querying Running Agents...
>
>
> # of Running Agents ::1
> Running Agents ::ProcessController
> ---------------------------------------
> Querying Running Agents by type ...
>
>
> # of Running Agents ::0
> ---------------------------------------
>
>
>
>
> Agent MetaData ::
> Agent ID for the agent ac 1
>
>
> Agent ID for the agent ac true 2
>
>
>
> Thay... how do you "query all available and runnning agents" with the RAC
> API? I thought that was one of the distinct advantages of the "new tech
> AC"!
> --
> RDS
>
> Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
> Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Re: SampleClient TPTPAgent - Invalid Login Credentials [message #77856 is a reply to message #77732] Wed, 19 July 2006 16:30 Go to previous message
Randy D. Smith is currently offline Randy D. SmithFriend
Messages: 394
Registered: July 2009
Senior Member
Martin Schuetz wrote:
> I started my challenge via
> http://www.eclipse.org/tptp/platform/documents/newtechAC/jav adoc/overview-summary.html
> ... and I unfortunately mixed different versions.
>
> Now it works,
>
> Thanks!

I'm glad it works for you. I don't want to belabor the point, but I do
want to prevent anyone else going down this path... can you tell me more
explicitly how you got to the above so that I can bugzilla the
appropriate links to clean things up? I tried going through the main
Documentation link from TPTP, and then through Platform; then tried
through Platform link from TPTP, and then to Documentation... the
variations I tried didn't take me anywhere I saw any newtechAC references.

If you can recall the path you took, I'll try to get it cleaned up. Thanks.

--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Previous Topic:Test guidelines
Next Topic:Coverage RAC: missing feature.properties
Goto Forum:
  


Current Time: Fri Apr 19 04:03:27 GMT 2024

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

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

Back to the top