Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Monitoring agents using extended SampleClientAC via (NewTec)AgentController
Monitoring agents using extended SampleClientAC via (NewTec)AgentController [message #82201] Thu, 31 August 2006 10:24 Go to next message
Eclipse UserFriend
Originally posted by: martin.schuetz.vmasch.at

Hi,



I'm using a logging and a statistical agent to get data of predefined Web
Services with a JAX-RPC handler within Axis (using Eclipse WTP with Tomcat).
The collected information is gainable via AgentController (NewTec ACServer
4.2). When connecting to the AgentController via an extended version of
org.eclipse.tptp.platform.execution.samples.SampleClientAC (using
org.eclipse.tptp.platform.execution.client.agent.IAgent instead of
org.eclipse.tptp.platform.execution.client.agent.ICollector) all works fine.

But when I'm stopping the extended ClientAC and try to reattach to an agent
I can query the names of agents, but during monitoring the agent I get no
more data (e.g. CBE from the logging agent). To get worse ... after stopping
(or trying to reattach) both agents, Tomcat shuts down.



Any ideas to (at least) avoid Tomcat shutting down?



Thanks in advance,



Martin



(Eclipse 3.2.0 and TPTP 4.2)
Re: Monitoring agents using extended SampleClientAC via (NewTec)AgentController [message #82293 is a reply to message #82201] Thu, 31 August 2006 19:58 Go to previous messageGo to next message
Dave Smith is currently offline Dave SmithFriend
Messages: 14
Registered: July 2009
Junior Member
Do the Tomcat logs give any indication of why it shut down?

Dave

"Martin Schuetz" <martin.schuetz@vmasch.at> wrote in message
news:ed6dd4$od0$1@utils.eclipse.org...
> Hi,
>
>
>
> I'm using a logging and a statistical agent to get data of predefined Web
> Services with a JAX-RPC handler within Axis (using Eclipse WTP with
Tomcat).
> The collected information is gainable via AgentController (NewTec ACServer
> 4.2). When connecting to the AgentController via an extended version of
> org.eclipse.tptp.platform.execution.samples.SampleClientAC (using
> org.eclipse.tptp.platform.execution.client.agent.IAgent instead of
> org.eclipse.tptp.platform.execution.client.agent.ICollector) all works
fine.
>
> But when I'm stopping the extended ClientAC and try to reattach to an
agent
> I can query the names of agents, but during monitoring the agent I get no
> more data (e.g. CBE from the logging agent). To get worse ... after
stopping
> (or trying to reattach) both agents, Tomcat shuts down.
>
>
>
> Any ideas to (at least) avoid Tomcat shutting down?
>
>
>
> Thanks in advance,
>
>
>
> Martin
>
>
>
> (Eclipse 3.2.0 and TPTP 4.2)
>
>
Re: Monitoring agents using extended SampleClientAC via (NewTec)AgentController [message #82308 is a reply to message #82293] Fri, 01 September 2006 02:52 Go to previous messageGo to next message
Vishnu is currently offline VishnuFriend
Messages: 19
Registered: July 2009
Junior Member
Hi Martin,

Also, please provide some more information about the scenario you have.
- What kind of extensions did you add to the SampleClientAC?
- What is the sequence of operations you are trying on the client-side?
When you say stopping Client, do you mean stopping the client program or
sending a stop command to the agent?
- What happens to the AC and agents when you find this issue? Do they
crash?
- Are these the agents developed by you or the standard TPTP agents?

Thanks
Vishnu

"Dave Smith" <smith@ca.ibm.com> wrote in message
news:ed7f25$6au$1@utils.eclipse.org...
> Do the Tomcat logs give any indication of why it shut down?
>
> Dave
>
> "Martin Schuetz" <martin.schuetz@vmasch.at> wrote in message
> news:ed6dd4$od0$1@utils.eclipse.org...
>> Hi,
>>
>>
>>
>> I'm using a logging and a statistical agent to get data of predefined Web
>> Services with a JAX-RPC handler within Axis (using Eclipse WTP with
> Tomcat).
>> The collected information is gainable via AgentController (NewTec
>> ACServer
>> 4.2). When connecting to the AgentController via an extended version of
>> org.eclipse.tptp.platform.execution.samples.SampleClientAC (using
>> org.eclipse.tptp.platform.execution.client.agent.IAgent instead of
>> org.eclipse.tptp.platform.execution.client.agent.ICollector) all works
> fine.
>>
>> But when I'm stopping the extended ClientAC and try to reattach to an
> agent
>> I can query the names of agents, but during monitoring the agent I get no
>> more data (e.g. CBE from the logging agent). To get worse ... after
> stopping
>> (or trying to reattach) both agents, Tomcat shuts down.
>>
>>
>>
>> Any ideas to (at least) avoid Tomcat shutting down?
>>
>>
>>
>> Thanks in advance,
>>
>>
>>
>> Martin
>>
>>
>>
>> (Eclipse 3.2.0 and TPTP 4.2)
>>
>>
>
>
Re: Monitoring agents using extended SampleClientAC via (NewTec)AgentController [message #82399 is a reply to message #82308] Sat, 02 September 2006 17:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: martin.schuetz.vmasch.at

Hi,

> What kind of extensions did you add to the SampleClientAC?
I've just added additional code to store specific data from CBE's in a
database.

> What is the sequence of operations you are trying on the client-side? When
> you say stopping Client, do you mean stopping the client program or
> sending a stop command to the agent?
Szenario 1: I start Tomcat and AC and connect from extended SampleAgentAC to
logging agent
(((IAgent)TCollector).startMonitoring(TPTPDataPath.DATA_PATH _TWO_WAY);) and
from an Eclipse-platform to statistical agent. When I disconnect statistical
(via "pause monitoring") and logging
(((IAgent)TCollector).stopMonitoring();) agents Tomcat shuts down.
Szenario 2: I start Tomcat and AC and connect from extended SampleAgentAC to
logging agent and from an Eclipse-platform to statistical agent. When I
start monitoring the statistical agent I'm able to arbitraily sart/stop
monitoring the logging agent (as long as I'm not stopping the client
program) ... when I'm stopping the client program it is possible to query
the AC for agents (and I'm getting all agents), but I cannot start
monitoring them (in this case the logging agent). If I now disconnect from
statistical agent Tomcat shuts down again.

> What happens to the AC and agents when you find this issue? Do they
> crash?
I can not find any problems here ... AC works fine.

> Are these the agents developed by you or the standard TPTP agents?
Logging agent (section from JAX-RPC-handler):
LoggingAgent loggingAgent = new LoggingAgent("loggingAgent");
.... (create and fill cbe)
cbe.validate();
loggingAgent.write(EventFormatter.toCanonicalXMLString(cbe, false));

Statisitcal agent (starting as own thread) is similar to
DemoStatisticalAgent (eclipsecon.tutorial.demo.agents) from
http://www.eclipse.org/tptp/home/documents/conferences/eclip seCon2006/EclipseCon_2006_Tutorial_22_Source_Code_Paul_Slaue nwhite.zip

Thanks,
Martin


"Vishnu Naikawadi" <vishnu.naikawadi@intel.com> schrieb im Newsbeitrag
news:ed878m$14u$1@utils.eclipse.org...
> Hi Martin,
>
> Also, please provide some more information about the scenario you have.
> - What kind of extensions did you add to the SampleClientAC?
> - What is the sequence of operations you are trying on the client-side?
> When you say stopping Client, do you mean stopping the client program or
> sending a stop command to the agent?
> - What happens to the AC and agents when you find this issue? Do they
> crash?
> - Are these the agents developed by you or the standard TPTP agents?
>
> Thanks
> Vishnu
>
> "Dave Smith" <smith@ca.ibm.com> wrote in message
> news:ed7f25$6au$1@utils.eclipse.org...
>> Do the Tomcat logs give any indication of why it shut down?
>>
>> Dave
>>
>> "Martin Schuetz" <martin.schuetz@vmasch.at> wrote in message
>> news:ed6dd4$od0$1@utils.eclipse.org...
>>> Hi,
>>>
>>>
>>>
>>> I'm using a logging and a statistical agent to get data of predefined
>>> Web
>>> Services with a JAX-RPC handler within Axis (using Eclipse WTP with
>> Tomcat).
>>> The collected information is gainable via AgentController (NewTec
>>> ACServer
>>> 4.2). When connecting to the AgentController via an extended version of
>>> org.eclipse.tptp.platform.execution.samples.SampleClientAC (using
>>> org.eclipse.tptp.platform.execution.client.agent.IAgent instead of
>>> org.eclipse.tptp.platform.execution.client.agent.ICollector) all works
>> fine.
>>>
>>> But when I'm stopping the extended ClientAC and try to reattach to an
>> agent
>>> I can query the names of agents, but during monitoring the agent I get
>>> no
>>> more data (e.g. CBE from the logging agent). To get worse ... after
>> stopping
>>> (or trying to reattach) both agents, Tomcat shuts down.
>>>
>>>
>>>
>>> Any ideas to (at least) avoid Tomcat shutting down?
>>>
>>>
>>>
>>> Thanks in advance,
>>>
>>>
>>>
>>> Martin
>>>
>>>
>>>
>>> (Eclipse 3.2.0 and TPTP 4.2)
>>>
>>>
>>
>>
>
>
Re: Monitoring agents using extended SampleClientAC via (NewTec)AgentController [message #82682 is a reply to message #82308] Wed, 06 September 2006 14:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: martin.schuetz.vmasch.at

Is it possible to reattach to a preliminary monitored agent from another
client program?

Martin

"Vishnu Naikawadi" <vishnu.naikawadi@intel.com> schrieb im Newsbeitrag
news:ed878m$14u$1@utils.eclipse.org...
> Hi Martin,
>
> Also, please provide some more information about the scenario you have.
> - What kind of extensions did you add to the SampleClientAC?
> - What is the sequence of operations you are trying on the client-side?
> When you say stopping Client, do you mean stopping the client program or
> sending a stop command to the agent?
> - What happens to the AC and agents when you find this issue? Do they
> crash?
> - Are these the agents developed by you or the standard TPTP agents?
>
> Thanks
> Vishnu
>
> "Dave Smith" <smith@ca.ibm.com> wrote in message
> news:ed7f25$6au$1@utils.eclipse.org...
>> Do the Tomcat logs give any indication of why it shut down?
>>
>> Dave
>>
>> "Martin Schuetz" <martin.schuetz@vmasch.at> wrote in message
>> news:ed6dd4$od0$1@utils.eclipse.org...
>>> Hi,
>>>
>>>
>>>
>>> I'm using a logging and a statistical agent to get data of predefined
>>> Web
>>> Services with a JAX-RPC handler within Axis (using Eclipse WTP with
>> Tomcat).
>>> The collected information is gainable via AgentController (NewTec
>>> ACServer
>>> 4.2). When connecting to the AgentController via an extended version of
>>> org.eclipse.tptp.platform.execution.samples.SampleClientAC (using
>>> org.eclipse.tptp.platform.execution.client.agent.IAgent instead of
>>> org.eclipse.tptp.platform.execution.client.agent.ICollector) all works
>> fine.
>>>
>>> But when I'm stopping the extended ClientAC and try to reattach to an
>> agent
>>> I can query the names of agents, but during monitoring the agent I get
>>> no
>>> more data (e.g. CBE from the logging agent). To get worse ... after
>> stopping
>>> (or trying to reattach) both agents, Tomcat shuts down.
>>>
>>>
>>>
>>> Any ideas to (at least) avoid Tomcat shutting down?
>>>
>>>
>>>
>>> Thanks in advance,
>>>
>>>
>>>
>>> Martin
>>>
>>>
>>>
>>> (Eclipse 3.2.0 and TPTP 4.2)
>>>
>>>
>>
>>
>
>
Re: Monitoring agents using extended SampleClientAC via (NewTec)AgentController [message #82740 is a reply to message #82682] Wed, 06 September 2006 16:59 Go to previous messageGo to next message
Vishnu is currently offline VishnuFriend
Messages: 19
Registered: July 2009
Junior Member
If you release the agent from the first client program, yes, you can attach
to the same agent instance from another client if it is still available.

Looks like you are having problem when both the agents are running
simultaneously. Do you see the same problem if you operate these agents
independently (I mean just try to run one agent at a time and issue commands
only to that agent from a client program)?

Thanks
Vishnu


"Martin Schuetz" <martin.schuetz@vmasch.at> wrote in message
news:edmlnr$vh$1@utils.eclipse.org...
> Is it possible to reattach to a preliminary monitored agent from another
> client program?
>
> Martin
>
> "Vishnu Naikawadi" <vishnu.naikawadi@intel.com> schrieb im Newsbeitrag
> news:ed878m$14u$1@utils.eclipse.org...
>> Hi Martin,
>>
>> Also, please provide some more information about the scenario you have.
>> - What kind of extensions did you add to the SampleClientAC?
>> - What is the sequence of operations you are trying on the
>> client-side? When you say stopping Client, do you mean stopping the
>> client program or sending a stop command to the agent?
>> - What happens to the AC and agents when you find this issue? Do they
>> crash?
>> - Are these the agents developed by you or the standard TPTP agents?
>>
>> Thanks
>> Vishnu
>>
>> "Dave Smith" <smith@ca.ibm.com> wrote in message
>> news:ed7f25$6au$1@utils.eclipse.org...
>>> Do the Tomcat logs give any indication of why it shut down?
>>>
>>> Dave
>>>
>>> "Martin Schuetz" <martin.schuetz@vmasch.at> wrote in message
>>> news:ed6dd4$od0$1@utils.eclipse.org...
>>>> Hi,
>>>>
>>>>
>>>>
>>>> I'm using a logging and a statistical agent to get data of predefined
>>>> Web
>>>> Services with a JAX-RPC handler within Axis (using Eclipse WTP with
>>> Tomcat).
>>>> The collected information is gainable via AgentController (NewTec
>>>> ACServer
>>>> 4.2). When connecting to the AgentController via an extended version of
>>>> org.eclipse.tptp.platform.execution.samples.SampleClientAC (using
>>>> org.eclipse.tptp.platform.execution.client.agent.IAgent instead of
>>>> org.eclipse.tptp.platform.execution.client.agent.ICollector) all works
>>> fine.
>>>>
>>>> But when I'm stopping the extended ClientAC and try to reattach to an
>>> agent
>>>> I can query the names of agents, but during monitoring the agent I get
>>>> no
>>>> more data (e.g. CBE from the logging agent). To get worse ... after
>>> stopping
>>>> (or trying to reattach) both agents, Tomcat shuts down.
>>>>
>>>>
>>>>
>>>> Any ideas to (at least) avoid Tomcat shutting down?
>>>>
>>>>
>>>>
>>>> Thanks in advance,
>>>>
>>>>
>>>>
>>>> Martin
>>>>
>>>>
>>>>
>>>> (Eclipse 3.2.0 and TPTP 4.2)
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: Monitoring agents using extended SampleClientAC via (NewTec)AgentController [message #82783 is a reply to message #82740] Wed, 06 September 2006 20:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: martin.schuetz.vmasch.at

This is a multi-part message in MIME format.

------=_NextPart_000_0017_01C6D202.13065EF0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

There's no problem with the reattachment of the statistical agent (which =
is attached via Eclipse). The problem arises while reattaching to the =
logging agent (via the client program) ... first I'm querying for =
running agents (... get the logging agent ...) and then I attach to =
logging agent (and start monitoring:=20
< =
(IAgent)agentCollector).startMonitoring(TPTPDataPath.DATA_PA TH_RECEIVE); =
>.
There are no exceptions, but=20
< (IAgent)agentCollector).addDataListener( new IDataProcessor() { ... =
public synchronized void incomingData() ...} >
(here I'm converting the received CBE's) is not invoked any more.

Running (and attaching) to the agents separately or simultaneously makes =
no difference!

Many thanks!

Martin


"Vishnu Naikawadi" <vishnu.naikawadi@intel.com> schrieb im Newsbeitrag =
news:edmuqh$uvb$1@utils.eclipse.org...
> If you release the agent from the first client program, yes, you can =
attach=20
> to the same agent instance from another client if it is still =
available.
>=20
> Looks like you are having problem when both the agents are running=20
> simultaneously. Do you see the same problem if you operate these =
agents=20
> independently (I mean just try to run one agent at a time and issue =
commands=20
> only to that agent from a client program)?
>=20
> Thanks
> Vishnu
>=20
>=20
> "Martin Schuetz" <martin.schuetz@vmasch.at> wrote in message=20
> news:edmlnr$vh$1@utils.eclipse.org...
>> Is it possible to reattach to a preliminary monitored agent from =
another=20
>> client program?
>>
>> Martin
>>
>> "Vishnu Naikawadi" <vishnu.naikawadi@intel.com> schrieb im =
Newsbeitrag=20
>> news:ed878m$14u$1@utils.eclipse.org...
>>> Hi Martin,
>>>
>>> Also, please provide some more information about the scenario you =
have.
>>> - What kind of extensions did you add to the SampleClientAC?
>>> - What is the sequence of operations you are trying on the=20
>>> client-side? When you say stopping Client, do you mean stopping the=20
>>> client program or sending a stop command to the agent?
>>> - What happens to the AC and agents when you find this issue? Do =
they=20
>>> crash?
>>> - Are these the agents developed by you or the standard TPTP =
agents?
>>>
>>> Thanks
>>> Vishnu
>>>
>>> "Dave Smith" <smith@ca.ibm.com> wrote in message=20
>>> news:ed7f25$6au$1@utils.eclipse.org...
>>>> Do the Tomcat logs give any indication of why it shut down?
>>>>
>>>> Dave
>>>>
>>>> "Martin Schuetz" <martin.schuetz@vmasch.at> wrote in message
>>>> news:ed6dd4$od0$1@utils.eclipse.org...
>>>>> Hi,
>>>>>
>>>>>
>>>>>
>>>>> I'm using a logging and a statistical agent to get data of =
predefined=20
>>>>> Web
>>>>> Services with a JAX-RPC handler within Axis (using Eclipse WTP =
with
>>>> Tomcat).
>>>>> The collected information is gainable via AgentController (NewTec=20
>>>>> ACServer
>>>>> 4.2). When connecting to the AgentController via an extended =
version of
>>>>> org.eclipse.tptp.platform.execution.samples.SampleClientAC (using
>>>>> org.eclipse.tptp.platform.execution.client.agent.IAgent instead of
>>>>> org.eclipse.tptp.platform.execution.client.agent.ICollector) all =
works
>>>> fine.
>>>>>
>>>>> But when I'm stopping the extended ClientAC and try to reattach to =
an
>>>> agent
>>>>> I can query the names of agents, but during monitoring the agent I =
get=20
>>>>> no
>>>>> more data (e.g. CBE from the logging agent). To get worse ... =
after
>>>> stopping
>>>>> (or trying to reattach) both agents, Tomcat shuts down.
>>>>>
>>>>>
>>>>>
>>>>> Any ideas to (at least) avoid Tomcat shutting down?
>>>>>
>>>>>
>>>>>
>>>>> Thanks in advance,
>>>>>
>>>>>
>>>>>
>>>>> Martin
>>>>>
>>>>>
>>>>>
>>>>> (Eclipse 3.2.0 and TPTP 4.2)
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>=20
>=20
>
------=_NextPart_000_0017_01C6D202.13065EF0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2963" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>There's no problem with the =
reattachment=20
of&nbsp;the statistical agent (which is attached via Eclipse). The=20
problem&nbsp;arises while reattaching to the logging agent (via the =
client=20
program) ... first I'm querying for running agents (... get the logging =
agent=20
....)&nbsp;and then I attach&nbsp;to&nbsp;logging agent (and start =
monitoring:=20
</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2> &lt;&nbsp;(IAgent)agentCollector).startMonitoring(TP TPDataPath.D=
ATA_PATH_RECEIVE);=20
&gt;.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;There are no exceptions, =
but=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT =
size=3D2>&lt;&nbsp;(IAgent)</FONT><FONT=20
color=3D#0000c0 size=3D2>agentCollector</FONT><FONT =
size=3D2>).addDataListener(=20
</FONT><B><FONT color=3D#7f0055 size=3D2>new</B></FONT><FONT size=3D2>=20
IDataProcessor() { ... <B><FONT color=3D#7f0055 =
size=3D2>public</B></FONT><FONT=20
size=3D2> </FONT><B><FONT color=3D#7f0055 =
size=3D2>synchronized</B></FONT><FONT=20
size=3D2> </FONT><B><FONT color=3D#7f0055 size=3D2>void</B></FONT><FONT =
size=3D2>=20
incomingData() ...</FONT>} &gt;</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>(here I'm converting the received =
CBE's) is not=20
invoked any more.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Running (and attaching) to the agents =
separately or=20
simultaneously&nbsp;makes no difference!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Many thanks!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Martin</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"Vishnu Naikawadi" &lt;</FONT><A=20
href=3D"mailto:vishnu.naikawadi@intel.com"><FONT face=3DArial=20
size=3D2>vishnu.naikawadi@intel.com</FONT></A><FONT face=3DArial =
size=3D2>&gt; schrieb=20
im Newsbeitrag </FONT><A =
href=3D"news:edmuqh$uvb$1@utils.eclipse.org"><FONT=20
face=3DArial =
size=3D2>news:edmuqh$uvb$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; If you release =
the agent=20
from the first client program, yes, you can attach <BR>&gt; to the same =
agent=20
instance from another client if it is still available.<BR>&gt; <BR>&gt; =
Looks=20
like you are having problem when both the agents are running <BR>&gt;=20
simultaneously. Do you see the same problem if you operate these agents =
<BR>&gt;=20
independently (I mean just try to run one agent at a time and issue =
commands=20
<BR>&gt; only to that agent from a client program)?<BR>&gt; <BR>&gt;=20
Thanks<BR>&gt; Vishnu<BR>&gt; <BR>&gt; <BR>&gt; "Martin Schuetz" =
&lt;</FONT><A=20
href=3D"mailto:martin.schuetz@vmasch.at"><FONT face=3DArial=20
size=3D2>martin.schuetz@vmasch.at</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote in=20
message <BR>&gt; </FONT><A =
href=3D"news:edmlnr$vh$1@utils.eclipse.org"><FONT=20
face=3DArial size=3D2>news:edmlnr$vh$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>&gt;&gt; Is it possible to reattach to a preliminary =
monitored=20
agent from another <BR>&gt;&gt; client program?<BR>&gt;&gt;<BR>&gt;&gt;=20
Martin<BR>&gt;&gt;<BR>&gt;&gt; "Vishnu Naikawadi" &lt;</FONT><A=20
href=3D"mailto:vishnu.naikawadi@intel.com"><FONT face=3DArial=20
size=3D2>vishnu.naikawadi@intel.com</FONT></A><FONT face=3DArial =
size=3D2>&gt; schrieb=20
im Newsbeitrag <BR>&gt;&gt; </FONT><A=20
href=3D"news:ed878m$14u$1@utils.eclipse.org"><FONT face=3DArial=20
size=3D2>news:ed878m$14u$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>&gt;&gt;&gt; Hi Martin,<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; =
Also,=20
please provide some more information about the scenario you=20
have.<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; - What kind of extensions did =
you add to=20
the SampleClientAC?<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; - What is the =
sequence of=20
operations you are trying on the <BR>&gt;&gt;&gt; client-side? When you =
say=20
stopping Client, do you mean stopping the <BR>&gt;&gt;&gt; client =
program or=20
sending a stop command to the agent?<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; - =
What=20
happens to the AC and agents when you find this issue? Do they =
<BR>&gt;&gt;&gt;=20
crash?<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; - Are these the agents =
developed by you=20
or the standard TPTP agents?<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;=20
Thanks<BR>&gt;&gt;&gt; Vishnu<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; "Dave =
Smith"=20
&lt;</FONT><A href=3D"mailto:smith@ca.ibm.com"><FONT face=3DArial=20
size=3D2>smith@ca.ibm.com</FONT></A><FONT face=3DArial size=3D2>&gt; =
wrote in message=20
<BR>&gt;&gt;&gt; </FONT><A =
href=3D"news:ed7f25$6au$1@utils.eclipse.org"><FONT=20
face=3DArial =
size=3D2>news:ed7f25$6au$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>&gt;&gt;&gt;&gt; Do the Tomcat logs give any indication =
of why it=20
shut down?<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;=20
Dave<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; "Martin Schuetz" =
&lt;</FONT><A=20
href=3D"mailto:martin.schuetz@vmasch.at"><FONT face=3DArial=20
size=3D2>martin.schuetz@vmasch.at</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote in=20
message<BR>&gt;&gt;&gt;&gt; </FONT><A=20
href=3D"news:ed6dd4$od0$1@utils.eclipse.org"><FONT face=3DArial=20
size=3D2>news:ed6dd4$od0$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>&gt;&gt;&gt;&gt;&gt;=20
Hi,<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&gt;&g=
t;<BR>&gt;&gt;&gt;&gt;&gt;=20
I'm using a logging and a statistical agent to get data of predefined=20
<BR>&gt;&gt;&gt;&gt;&gt; Web<BR>&gt;&gt;&gt;&gt;&gt; Services with a =
JAX-RPC=20
handler within Axis (using Eclipse WTP with<BR>&gt;&gt;&gt;&gt;=20
Tomcat).<BR>&gt;&gt;&gt;&gt;&gt; The collected information is gainable =
via=20
AgentController (NewTec <BR>&gt;&gt;&gt;&gt;&gt;=20
ACServer<BR>&gt;&gt;&gt;&gt;&gt; 4.2). When connecting to the =
AgentController=20
via an extended version of<BR>&gt;&gt;&gt;&gt;&gt;=20
org.eclipse.tptp.platform.execution.samples.SampleClientAC=2 0
(using<BR>&gt;&gt;&gt;&gt;&gt;=20
org.eclipse.tptp.platform.execution.client.agent.IAgent instead=20
of<BR>&gt;&gt;&gt;&gt;&gt;=20
org.eclipse.tptp.platform.execution.client.agent.ICollector) all=20
works<BR>&gt;&gt;&gt;&gt; =
fine.<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;=20
But when I'm stopping the extended ClientAC and try to reattach to=20
an<BR>&gt;&gt;&gt;&gt; agent<BR>&gt;&gt;&gt;&gt;&gt; I can query the =
names of=20
agents, but during monitoring the agent I get <BR>&gt;&gt;&gt;&gt;&gt;=20
no<BR>&gt;&gt;&gt;&gt;&gt; more data (e.g. CBE from the logging agent). =
To get=20
worse ... after<BR>&gt;&gt;&gt;&gt; stopping<BR>&gt;&gt;&gt;&gt;&gt; (or =
trying=20
to reattach) both agents, Tomcat shuts=20
down.<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&gt;=
&gt;<BR>&gt;&gt;&gt;&gt;&gt;=20
Any ideas to (at least) avoid Tomcat shutting=20
down?<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&gt;=
&gt;<BR>&gt;&gt;&gt;&gt;&gt;=20
Thanks in=20
advance,<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&=
gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;=20
Martin<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&gt=
;&gt;<BR>&gt;&gt;&gt;&gt;&gt;=20
(Eclipse 3.2.0 and TPTP=20
4.2)<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&gt;<=
BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt;<BR>&gt;&gt;<BR>&gt;&g=
t;=20
<BR>&gt; <BR>&gt;</FONT></BODY></HTML>

------=_NextPart_000_0017_01C6D202.13065EF0--
Re: Monitoring agents using extended SampleClientAC via (NewTec)AgentController [message #83150 is a reply to message #82783] Mon, 11 September 2006 23:25 Go to previous messageGo to next message
Vishnu is currently offline VishnuFriend
Messages: 19
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_000C_01C6D5BE.F6EDF410
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Martin,

My guess is that either the data channel from the first session didn't =
get closed properly or the logging agent didn't get released from the =
first session. I tried similar steps but was not able to reproduce the =
problem. Can you please list the code (if it is fine with you) in the =
client program related to few steps involving the steps - agent =
creation, data path establishment and agent release, etc? Can you also =
please debug and find out after which step it fails or hangs during the =
second run? Do you see any error messages in the AC log file (run AC =
with logging set to DEBUG mode)?

Thanks
Vishnu
"Martin Schuetz" <martin.schuetz@vmasch.at> wrote in message =
news:ednaag$cfg$1@utils.eclipse.org...
There's no problem with the reattachment of the statistical agent =
(which is attached via Eclipse). The problem arises while reattaching to =
the logging agent (via the client program) ... first I'm querying for =
running agents (... get the logging agent ...) and then I attach to =
logging agent (and start monitoring:=20
< =
(IAgent)agentCollector).startMonitoring(TPTPDataPath.DATA_PA TH_RECEIVE); =
>.
There are no exceptions, but=20
< (IAgent)agentCollector).addDataListener( new IDataProcessor() { ... =
public synchronized void incomingData() ...} >
(here I'm converting the received CBE's) is not invoked any more.

Running (and attaching) to the agents separately or simultaneously =
makes no difference!

Many thanks!

Martin


"Vishnu Naikawadi" <vishnu.naikawadi@intel.com> schrieb im Newsbeitrag =
news:edmuqh$uvb$1@utils.eclipse.org...
> If you release the agent from the first client program, yes, you can =
attach=20
> to the same agent instance from another client if it is still =
available.
>=20
> Looks like you are having problem when both the agents are running=20
> simultaneously. Do you see the same problem if you operate these =
agents=20
> independently (I mean just try to run one agent at a time and issue =
commands=20
> only to that agent from a client program)?
>=20
> Thanks
> Vishnu
>=20
>=20
> "Martin Schuetz" <martin.schuetz@vmasch.at> wrote in message=20
> news:edmlnr$vh$1@utils.eclipse.org...
>> Is it possible to reattach to a preliminary monitored agent from =
another=20
>> client program?
>>
>> Martin
>>
>> "Vishnu Naikawadi" <vishnu.naikawadi@intel.com> schrieb im =
Newsbeitrag=20
>> news:ed878m$14u$1@utils.eclipse.org...
>>> Hi Martin,
>>>
>>> Also, please provide some more information about the scenario you =
have.
>>> - What kind of extensions did you add to the SampleClientAC?
>>> - What is the sequence of operations you are trying on the=20
>>> client-side? When you say stopping Client, do you mean stopping =
the=20
>>> client program or sending a stop command to the agent?
>>> - What happens to the AC and agents when you find this issue? =
Do they=20
>>> crash?
>>> - Are these the agents developed by you or the standard TPTP =
agents?
>>>
>>> Thanks
>>> Vishnu
>>>
>>> "Dave Smith" <smith@ca.ibm.com> wrote in message=20
>>> news:ed7f25$6au$1@utils.eclipse.org...
>>>> Do the Tomcat logs give any indication of why it shut down?
>>>>
>>>> Dave
>>>>
>>>> "Martin Schuetz" <martin.schuetz@vmasch.at> wrote in message
>>>> news:ed6dd4$od0$1@utils.eclipse.org...
>>>>> Hi,
>>>>>
>>>>>
>>>>>
>>>>> I'm using a logging and a statistical agent to get data of =
predefined=20
>>>>> Web
>>>>> Services with a JAX-RPC handler within Axis (using Eclipse WTP =
with
>>>> Tomcat).
>>>>> The collected information is gainable via AgentController =
(NewTec=20
>>>>> ACServer
>>>>> 4.2). When connecting to the AgentController via an extended =
version of
>>>>> org.eclipse.tptp.platform.execution.samples.SampleClientAC =
(using
>>>>> org.eclipse.tptp.platform.execution.client.agent.IAgent instead =
of
>>>>> org.eclipse.tptp.platform.execution.client.agent.ICollector) all =
works
>>>> fine.
>>>>>
>>>>> But when I'm stopping the extended ClientAC and try to reattach =
to an
>>>> agent
>>>>> I can query the names of agents, but during monitoring the agent =
I get=20
>>>>> no
>>>>> more data (e.g. CBE from the logging agent). To get worse ... =
after
>>>> stopping
>>>>> (or trying to reattach) both agents, Tomcat shuts down.
>>>>>
>>>>>
>>>>>
>>>>> Any ideas to (at least) avoid Tomcat shutting down?
>>>>>
>>>>>
>>>>>
>>>>> Thanks in advance,
>>>>>
>>>>>
>>>>>
>>>>> Martin
>>>>>
>>>>>
>>>>>
>>>>> (Eclipse 3.2.0 and TPTP 4.2)
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>=20
>=20
>
------=_NextPart_000_000C_01C6D5BE.F6EDF410
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2873" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Martin,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My guess is&nbsp;that either the data =
channel from=20
the first session didn't get closed properly or the logging agent didn't =
get=20
released from the first session. I tried similar steps but was not able =
to=20
reproduce the problem. Can you please list the code (if it is fine with =
you) in=20
the client program related to few steps involving the steps - agent =
creation,=20
data path establishment and agent release, etc? Can you also please =
debug and=20
find out after which step it fails or hangs during the second run? Do =
you see=20
any error messages in the AC log file (run AC with logging set to DEBUG=20
mode)?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Vishnu</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Martin Schuetz" &lt;<A=20
=
href=3D"mailto:martin.schuetz@vmasch.at">martin.schuetz@vmasch.at</A>&gt;=
wrote=20
in message <A=20
=
href=3D"news:ednaag$cfg$1@utils.eclipse.org">news:ednaag$cfg$1@utils.ecli=
pse.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>There's no problem with the =
reattachment=20
of&nbsp;the statistical agent (which is attached via Eclipse). The=20
problem&nbsp;arises while reattaching to the logging agent (via the =
client=20
program) ... first I'm querying for running agents (... get the =
logging agent=20
...)&nbsp;and then I attach&nbsp;to&nbsp;logging agent (and start =
monitoring:=20
</FONT></DIV>
<DIV><FONT face=3DArial=20
=
size=3D2> &lt;&nbsp;(IAgent)agentCollector).startMonitoring(TP TPDataPath.D=
ATA_PATH_RECEIVE);=20
&gt;.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;There are no exceptions, =
but=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT =
size=3D2>&lt;&nbsp;(IAgent)</FONT><FONT=20
color=3D#0000c0 size=3D2>agentCollector</FONT><FONT =
size=3D2>).addDataListener(=20
</FONT><B><FONT color=3D#7f0055 size=3D2>new</B></FONT><FONT size=3D2> =

IDataProcessor() { ... <B><FONT color=3D#7f0055 =
size=3D2>public</B></FONT><FONT=20
size=3D2> </FONT><B><FONT color=3D#7f0055 =
size=3D2>synchronized</B></FONT><FONT=20
size=3D2> </FONT><B><FONT color=3D#7f0055 =
size=3D2>void</B></FONT><FONT size=3D2>=20
incomingData() ...</FONT>} &gt;</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>(here I'm converting the received =
CBE's) is not=20
invoked any more.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Running (and attaching) to the agents =
separately=20
or simultaneously&nbsp;makes no difference!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Many thanks!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Martin</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"Vishnu Naikawadi" &lt;</FONT><A=20
href=3D"mailto:vishnu.naikawadi@intel.com"><FONT face=3DArial=20
size=3D2>vishnu.naikawadi@intel.com</FONT></A><FONT face=3DArial =
size=3D2>&gt;=20
schrieb im Newsbeitrag </FONT><A=20
href=3D"news:edmuqh$uvb$1@utils.eclipse.org"><FONT face=3DArial=20
size=3D2>news:edmuqh$uvb$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; If you =
release the agent=20
from the first client program, yes, you can attach <BR>&gt; to the =
same agent=20
instance from another client if it is still available.<BR>&gt; =
<BR>&gt; Looks=20
like you are having problem when both the agents are running <BR>&gt;=20
simultaneously. Do you see the same problem if you operate these =
agents=20
<BR>&gt; independently (I mean just try to run one agent at a time and =
issue=20
commands <BR>&gt; only to that agent from a client program)?<BR>&gt; =
<BR>&gt;=20
Thanks<BR>&gt; Vishnu<BR>&gt; <BR>&gt; <BR>&gt; "Martin Schuetz" =
&lt;</FONT><A=20
href=3D"mailto:martin.schuetz@vmasch.at"><FONT face=3DArial=20
size=3D2>martin.schuetz@vmasch.at</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote=20
in message <BR>&gt; </FONT><A =
href=3D"news:edmlnr$vh$1@utils.eclipse.org"><FONT=20
face=3DArial =
size=3D2>news:edmlnr$vh$1@utils.eclipse.org</FONT></A><FONT=20
face=3DArial size=3D2>...<BR>&gt;&gt; Is it possible to reattach to a =
preliminary=20
monitored agent from another <BR>&gt;&gt; client=20
program?<BR>&gt;&gt;<BR>&gt;&gt; Martin<BR>&gt;&gt;<BR>&gt;&gt; =
"Vishnu=20
Naikawadi" &lt;</FONT><A =
href=3D"mailto:vishnu.naikawadi@intel.com"><FONT=20
face=3DArial size=3D2>vishnu.naikawadi@intel.com</FONT></A><FONT =
face=3DArial=20
size=3D2>&gt; schrieb im Newsbeitrag <BR>&gt;&gt; </FONT><A=20
href=3D"news:ed878m$14u$1@utils.eclipse.org"><FONT face=3DArial=20
size=3D2>news:ed878m$14u$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>&gt;&gt;&gt; Hi =
Martin,<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; Also,=20
please provide some more information about the scenario you=20
have.<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; - What kind of extensions did =
you add=20
to the SampleClientAC?<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; - What is the =

sequence of operations you are trying on the <BR>&gt;&gt;&gt; =
client-side?=20
When you say stopping Client, do you mean stopping the =
<BR>&gt;&gt;&gt; client=20
program or sending a stop command to the=20
agent?<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; - What happens to the AC and =
agents=20
when you find this issue? Do they <BR>&gt;&gt;&gt;=20
crash?<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; - Are these the agents =
developed by=20
you or the standard TPTP agents?<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;=20
Thanks<BR>&gt;&gt;&gt; Vishnu<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; "Dave =
Smith"=20
&lt;</FONT><A href=3D"mailto:smith@ca.ibm.com"><FONT face=3DArial=20
size=3D2>smith@ca.ibm.com</FONT></A><FONT face=3DArial size=3D2>&gt; =
wrote in=20
message <BR>&gt;&gt;&gt; </FONT><A=20
href=3D"news:ed7f25$6au$1@utils.eclipse.org"><FONT face=3DArial=20
size=3D2>news:ed7f25$6au$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>&gt;&gt;&gt;&gt; Do the Tomcat logs give any =
indication of why=20
it shut down?<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;=20
Dave<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; "Martin Schuetz" =
&lt;</FONT><A=20
href=3D"mailto:martin.schuetz@vmasch.at"><FONT face=3DArial=20
size=3D2>martin.schuetz@vmasch.at</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote=20
in message<BR>&gt;&gt;&gt;&gt; </FONT><A=20
href=3D"news:ed6dd4$od0$1@utils.eclipse.org"><FONT face=3DArial=20
size=3D2>news:ed6dd4$od0$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>&gt;&gt;&gt;&gt;&gt;=20
=
Hi,<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&gt;&g=
t;<BR>&gt;&gt;&gt;&gt;&gt;=20
I'm using a logging and a statistical agent to get data of predefined=20
<BR>&gt;&gt;&gt;&gt;&gt; Web<BR>&gt;&gt;&gt;&gt;&gt; Services with a =
JAX-RPC=20
handler within Axis (using Eclipse WTP with<BR>&gt;&gt;&gt;&gt;=20
Tomcat).<BR>&gt;&gt;&gt;&gt;&gt; The collected information is gainable =
via=20
AgentController (NewTec <BR>&gt;&gt;&gt;&gt;&gt;=20
ACServer<BR>&gt;&gt;&gt;&gt;&gt; 4.2). When connecting to the =
AgentController=20
via an extended version of<BR>&gt;&gt;&gt;&gt;&gt;=20
org.eclipse.tptp.platform.execution.samples.SampleClientAC=2 0
(using<BR>&gt;&gt;&gt;&gt;&gt;=20
org.eclipse.tptp.platform.execution.client.agent.IAgent instead=20
of<BR>&gt;&gt;&gt;&gt;&gt;=20
org.eclipse.tptp.platform.execution.client.agent.ICollector) all=20
works<BR>&gt;&gt;&gt;&gt;=20
fine.<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; But when I'm =
stopping=20
the extended ClientAC and try to reattach to an<BR>&gt;&gt;&gt;&gt;=20
agent<BR>&gt;&gt;&gt;&gt;&gt; I can query the names of agents, but =
during=20
monitoring the agent I get <BR>&gt;&gt;&gt;&gt;&gt; =
no<BR>&gt;&gt;&gt;&gt;&gt;=20
more data (e.g. CBE from the logging agent). To get worse ...=20
after<BR>&gt;&gt;&gt;&gt; stopping<BR>&gt;&gt;&gt;&gt;&gt; (or trying =
to=20
reattach) both agents, Tomcat shuts=20
=
down.<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&gt;=
&gt;<BR>&gt;&gt;&gt;&gt;&gt;=20
Any ideas to (at least) avoid Tomcat shutting=20
=
down?<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&gt;=
&gt;<BR>&gt;&gt;&gt;&gt;&gt;=20
Thanks in=20
=
advance,<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&=
gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;=20
=
Martin<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&gt=
;&gt;<BR>&gt;&gt;&gt;&gt;&gt;=20
(Eclipse 3.2.0 and TPTP=20
=
4.2)<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&gt;<=
BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt;<BR>&gt;&gt;<BR>&gt;&g=
t;=20
<BR>&gt; <BR>&gt;</FONT> </BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000C_01C6D5BE.F6EDF410--
Re: Monitoring agents using extended SampleClientAC via (NewTec)AgentController [message #83170 is a reply to message #83150] Tue, 12 September 2006 06:59 Go to previous message
Eclipse UserFriend
Originally posted by: martin.schuetz.vmasch.at

This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C6D649.CB6AD250
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Vishnu,

thanks for your effort! You're right, I forgot to correctly release =
access from agentCollector (after pause/stop monitoring).

Many thanks,

Martin
"Vishnu Naikawadi" <vishnu.naikawadi@intel.com> schrieb im Newsbeitrag =
news:ee4raa$6n3$1@utils.eclipse.org...
Martin,

My guess is that either the data channel from the first session didn't =
get closed properly or the logging agent didn't get released from the =
first session. I tried similar steps but was not able to reproduce the =
problem. Can you please list the code (if it is fine with you) in the =
client program related to few steps involving the steps - agent =
creation, data path establishment and agent release, etc? Can you also =
please debug and find out after which step it fails or hangs during the =
second run? Do you see any error messages in the AC log file (run AC =
with logging set to DEBUG mode)?

Thanks
Vishnu
"Martin Schuetz" <martin.schuetz@vmasch.at> wrote in message =
news:ednaag$cfg$1@utils.eclipse.org...
There's no problem with the reattachment of the statistical agent =
(which is attached via Eclipse). The problem arises while reattaching to =
the logging agent (via the client program) ... first I'm querying for =
running agents (... get the logging agent ...) and then I attach to =
logging agent (and start monitoring:=20
< =
(IAgent)agentCollector).startMonitoring(TPTPDataPath.DATA_PA TH_RECEIVE); =
>.
There are no exceptions, but=20
< (IAgent)agentCollector).addDataListener( new IDataProcessor() { =
.... public synchronized void incomingData() ...} >
(here I'm converting the received CBE's) is not invoked any more.

Running (and attaching) to the agents separately or simultaneously =
makes no difference!

Many thanks!

Martin


"Vishnu Naikawadi" <vishnu.naikawadi@intel.com> schrieb im =
Newsbeitrag news:edmuqh$uvb$1@utils.eclipse.org...
> If you release the agent from the first client program, yes, you =
can attach=20
> to the same agent instance from another client if it is still =
available.
>=20
> Looks like you are having problem when both the agents are running =

> simultaneously. Do you see the same problem if you operate these =
agents=20
> independently (I mean just try to run one agent at a time and =
issue commands=20
> only to that agent from a client program)?
>=20
> Thanks
> Vishnu
>=20
>=20
> "Martin Schuetz" <martin.schuetz@vmasch.at> wrote in message=20
> news:edmlnr$vh$1@utils.eclipse.org...
>> Is it possible to reattach to a preliminary monitored agent from =
another=20
>> client program?
>>
>> Martin
>>
>> "Vishnu Naikawadi" <vishnu.naikawadi@intel.com> schrieb im =
Newsbeitrag=20
>> news:ed878m$14u$1@utils.eclipse.org...
>>> Hi Martin,
>>>
>>> Also, please provide some more information about the scenario =
you have.
>>> - What kind of extensions did you add to the SampleClientAC?
>>> - What is the sequence of operations you are trying on the=20
>>> client-side? When you say stopping Client, do you mean stopping =
the=20
>>> client program or sending a stop command to the agent?
>>> - What happens to the AC and agents when you find this issue? =
Do they=20
>>> crash?
>>> - Are these the agents developed by you or the standard TPTP =
agents?
>>>
>>> Thanks
>>> Vishnu
>>>
>>> "Dave Smith" <smith@ca.ibm.com> wrote in message=20
>>> news:ed7f25$6au$1@utils.eclipse.org...
>>>> Do the Tomcat logs give any indication of why it shut down?
>>>>
>>>> Dave
>>>>
>>>> "Martin Schuetz" <martin.schuetz@vmasch.at> wrote in message
>>>> news:ed6dd4$od0$1@utils.eclipse.org...
>>>>> Hi,
>>>>>
>>>>>
>>>>>
>>>>> I'm using a logging and a statistical agent to get data of =
predefined=20
>>>>> Web
>>>>> Services with a JAX-RPC handler within Axis (using Eclipse WTP =
with
>>>> Tomcat).
>>>>> The collected information is gainable via AgentController =
(NewTec=20
>>>>> ACServer
>>>>> 4.2). When connecting to the AgentController via an extended =
version of
>>>>> org.eclipse.tptp.platform.execution.samples.SampleClientAC =
(using
>>>>> org.eclipse.tptp.platform.execution.client.agent.IAgent =
instead of
>>>>> org.eclipse.tptp.platform.execution.client.agent.ICollector) =
all works
>>>> fine.
>>>>>
>>>>> But when I'm stopping the extended ClientAC and try to =
reattach to an
>>>> agent
>>>>> I can query the names of agents, but during monitoring the =
agent I get=20
>>>>> no
>>>>> more data (e.g. CBE from the logging agent). To get worse ... =
after
>>>> stopping
>>>>> (or trying to reattach) both agents, Tomcat shuts down.
>>>>>
>>>>>
>>>>>
>>>>> Any ideas to (at least) avoid Tomcat shutting down?
>>>>>
>>>>>
>>>>>
>>>>> Thanks in advance,
>>>>>
>>>>>
>>>>>
>>>>> Martin
>>>>>
>>>>>
>>>>>
>>>>> (Eclipse 3.2.0 and TPTP 4.2)
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>=20
>=20
>
------=_NextPart_000_0008_01C6D649.CB6AD250
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2963" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Vishnu,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>thanks for your effort! You're right, I =
forgot to=20
correctly release access from agentCollector (after pause/stop=20
monitoring</FONT><FONT face=3DArial size=3D2>).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Many thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Martin</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Vishnu Naikawadi" &lt;<A=20
=
href=3D"mailto:vishnu.naikawadi@intel.com">vishnu.naikawadi@intel.com</A>=
&gt;=20
schrieb im Newsbeitrag <A=20
=
href=3D"news:ee4raa$6n3$1@utils.eclipse.org">news:ee4raa$6n3$1@utils.ecli=
pse.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Martin,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My guess is&nbsp;that either the data =
channel=20
from the first session didn't get closed properly or the logging agent =
didn't=20
get released from the first session. I tried similar steps but was not =
able to=20
reproduce the problem. Can you please list the code (if it is fine =
with you)=20
in the client program related to few steps involving the steps - agent =

creation, data path establishment and agent release, etc? Can you also =
please=20
debug and find out after which step it fails or hangs during the =
second run?=20
Do you see any error messages in the AC log file (run AC with logging =
set to=20
DEBUG mode)?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Vishnu</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Martin Schuetz" &lt;<A=20
=
href=3D"mailto:martin.schuetz@vmasch.at">martin.schuetz@vmasch.at</A>&gt;=
=20
wrote in message <A=20
=
href=3D"news:ednaag$cfg$1@utils.eclipse.org">news:ednaag$cfg$1@utils.ecli=
pse.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>There's no problem with the =
reattachment=20
of&nbsp;the statistical agent (which is attached via Eclipse). The=20
problem&nbsp;arises while reattaching to the logging agent (via the =
client=20
program) ... first I'm querying for running agents (... get the =
logging=20
agent ...)&nbsp;and then I attach&nbsp;to&nbsp;logging agent (and =
start=20
monitoring: </FONT></DIV>
<DIV><FONT face=3DArial=20
=
size=3D2> &lt;&nbsp;(IAgent)agentCollector).startMonitoring(TP TPDataPath.D=
ATA_PATH_RECEIVE);=20
&gt;.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;There are no =
exceptions, but=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT =
size=3D2>&lt;&nbsp;(IAgent)</FONT><FONT=20
color=3D#0000c0 size=3D2>agentCollector</FONT><FONT =
size=3D2>).addDataListener(=20
</FONT><B><FONT color=3D#7f0055 size=3D2>new</B></FONT><FONT =
size=3D2>=20
IDataProcessor() { ... <B><FONT color=3D#7f0055 =
size=3D2>public</B></FONT><FONT=20
size=3D2> </FONT><B><FONT color=3D#7f0055 =
size=3D2>synchronized</B></FONT><FONT=20
size=3D2> </FONT><B><FONT color=3D#7f0055 =
size=3D2>void</B></FONT><FONT size=3D2>=20
incomingData() ...</FONT>} &gt;</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>(here I'm converting the received =
CBE's) is not=20
invoked any more.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Running (and attaching) to the =
agents=20
separately or simultaneously&nbsp;makes no difference!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Many thanks!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Martin</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"Vishnu Naikawadi" &lt;</FONT><A=20
href=3D"mailto:vishnu.naikawadi@intel.com"><FONT face=3DArial=20
size=3D2>vishnu.naikawadi@intel.com</FONT></A><FONT face=3DArial =
size=3D2>&gt;=20
schrieb im Newsbeitrag </FONT><A=20
href=3D"news:edmuqh$uvb$1@utils.eclipse.org"><FONT face=3DArial=20
size=3D2>news:edmuqh$uvb$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; If you =
release the agent=20
from the first client program, yes, you can attach <BR>&gt; to the =
same=20
agent instance from another client if it is still available.<BR>&gt; =

<BR>&gt; Looks like you are having problem when both the agents are =
running=20
<BR>&gt; simultaneously. Do you see the same problem if you operate =
these=20
agents <BR>&gt; independently (I mean just try to run one agent at a =
time=20
and issue commands <BR>&gt; only to that agent from a client=20
program)?<BR>&gt; <BR>&gt; Thanks<BR>&gt; Vishnu<BR>&gt; <BR>&gt; =
<BR>&gt;=20
"Martin Schuetz" &lt;</FONT><A =
href=3D"mailto:martin.schuetz@vmasch.at"><FONT=20
face=3DArial size=3D2>martin.schuetz@vmasch.at</FONT></A><FONT =
face=3DArial=20
size=3D2>&gt; wrote in message <BR>&gt; </FONT><A=20
href=3D"news:edmlnr$vh$1@utils.eclipse.org"><FONT face=3DArial=20
size=3D2>news:edmlnr$vh$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>&gt;&gt; Is it possible to reattach to a preliminary =
monitored=20
agent from another <BR>&gt;&gt; client =
program?<BR>&gt;&gt;<BR>&gt;&gt;=20
Martin<BR>&gt;&gt;<BR>&gt;&gt; "Vishnu Naikawadi" &lt;</FONT><A=20
href=3D"mailto:vishnu.naikawadi@intel.com"><FONT face=3DArial=20
size=3D2>vishnu.naikawadi@intel.com</FONT></A><FONT face=3DArial =
size=3D2>&gt;=20
schrieb im Newsbeitrag <BR>&gt;&gt; </FONT><A=20
href=3D"news:ed878m$14u$1@utils.eclipse.org"><FONT face=3DArial=20
size=3D2>news:ed878m$14u$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>&gt;&gt;&gt; Hi =
Martin,<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; Also,=20
please provide some more information about the scenario you=20
have.<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; - What kind of extensions =
did you=20
add to the SampleClientAC?<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; - What =
is the=20
sequence of operations you are trying on the <BR>&gt;&gt;&gt; =
client-side?=20
When you say stopping Client, do you mean stopping the =
<BR>&gt;&gt;&gt;=20
client program or sending a stop command to the=20
agent?<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; - What happens to the AC =
and agents=20
when you find this issue? Do they <BR>&gt;&gt;&gt;=20
crash?<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; - Are these the agents =
developed by=20
you or the standard TPTP agents?<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;=20
Thanks<BR>&gt;&gt;&gt; Vishnu<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; "Dave =
Smith"=20
&lt;</FONT><A href=3D"mailto:smith@ca.ibm.com"><FONT face=3DArial=20
size=3D2>smith@ca.ibm.com</FONT></A><FONT face=3DArial size=3D2>&gt; =
wrote in=20
message <BR>&gt;&gt;&gt; </FONT><A=20
href=3D"news:ed7f25$6au$1@utils.eclipse.org"><FONT face=3DArial=20
size=3D2>news:ed7f25$6au$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>&gt;&gt;&gt;&gt; Do the Tomcat logs give any =
indication of why=20
it shut down?<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;=20
Dave<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; "Martin Schuetz" =
&lt;</FONT><A=20
href=3D"mailto:martin.schuetz@vmasch.at"><FONT face=3DArial=20
size=3D2>martin.schuetz@vmasch.at</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote=20
in message<BR>&gt;&gt;&gt;&gt; </FONT><A=20
href=3D"news:ed6dd4$od0$1@utils.eclipse.org"><FONT face=3DArial=20
size=3D2>news:ed6dd4$od0$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>&gt;&gt;&gt;&gt;&gt;=20
=
Hi,<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&gt;&g=
t;<BR>&gt;&gt;&gt;&gt;&gt;=20
I'm using a logging and a statistical agent to get data of =
predefined=20
<BR>&gt;&gt;&gt;&gt;&gt; Web<BR>&gt;&gt;&gt;&gt;&gt; Services with a =
JAX-RPC=20
handler within Axis (using Eclipse WTP with<BR>&gt;&gt;&gt;&gt;=20
Tomcat).<BR>&gt;&gt;&gt;&gt;&gt; The collected information is =
gainable via=20
AgentController (NewTec <BR>&gt;&gt;&gt;&gt;&gt;=20
ACServer<BR>&gt;&gt;&gt;&gt;&gt; 4.2). When connecting to the=20
AgentController via an extended version of<BR>&gt;&gt;&gt;&gt;&gt;=20
org.eclipse.tptp.platform.execution.samples.SampleClientAC=2 0
(using<BR>&gt;&gt;&gt;&gt;&gt;=20
org.eclipse.tptp.platform.execution.client.agent.IAgent instead=20
of<BR>&gt;&gt;&gt;&gt;&gt;=20
org.eclipse.tptp.platform.execution.client.agent.ICollector) all=20
works<BR>&gt;&gt;&gt;&gt;=20
fine.<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; But when I'm =
stopping=20
the extended ClientAC and try to reattach to an<BR>&gt;&gt;&gt;&gt;=20
agent<BR>&gt;&gt;&gt;&gt;&gt; I can query the names of agents, but =
during=20
monitoring the agent I get <BR>&gt;&gt;&gt;&gt;&gt;=20
no<BR>&gt;&gt;&gt;&gt;&gt; more data (e.g. CBE from the logging =
agent). To=20
get worse ... after<BR>&gt;&gt;&gt;&gt; =
stopping<BR>&gt;&gt;&gt;&gt;&gt; (or=20
trying to reattach) both agents, Tomcat shuts=20
=
down.<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&gt;=
&gt;<BR>&gt;&gt;&gt;&gt;&gt;=20
Any ideas to (at least) avoid Tomcat shutting=20
=
down?<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&gt;=
&gt;<BR>&gt;&gt;&gt;&gt;&gt;=20
Thanks in=20
=
advance,<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&=
gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;=20
=
Martin<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&gt=
;&gt;<BR>&gt;&gt;&gt;&gt;&gt;=20
(Eclipse 3.2.0 and TPTP=20
=
4.2)<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&gt;<=
BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt;<BR>&gt;&gt;<BR>&gt;&g=
t;=20
<BR>&gt; <BR>&gt;</FONT> </BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0008_01C6D649.CB6AD250--
Previous Topic:converting JUnit Tests to TPTP Junit tests
Next Topic:No reuse of component identifications (CBE)?
Goto Forum:
  


Current Time: Tue Apr 23 13:33:23 GMT 2024

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

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

Back to the top