Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » IWAT0003E/IWAT0004W when profiling HelloWorld class
IWAT0003E/IWAT0004W when profiling HelloWorld class [message #44698] Sat, 03 December 2005 11:20 Go to next message
Andreas Schildbach is currently offline Andreas SchildbachFriend
Messages: 70
Registered: July 2009
Member
Hello everyone,

I'm taking my first steps with TPTP 4.1 and like to do without a
seperate Remote Agent Controller.

I have written a simple HelloWorld class and like to profile this class.

Each time I invoke profiling using "Profile as.../Java Application" I
get the following message:

IWAT0003E Launch Java Process Error
IWAT0004W Problems occurred while launching the Java process.
Reason:
Profiler unable to establish connection with RAC. Possible fix: Add more
memory or reduce dataChannelSize in serviceconfig.xml.

I take it RAC means Remote Agent Controller? I do not know where I have
a remote controller configured? How can I switch to local profiling only?

I have already removed all hosts from Preferences/Profiling and
Logging/Hosts, apart von "Local Direct Connection".

In my DefaultMonitor (ProfileProject), every time a host with the name
of my machine is created (port -1!). Shouldn't that read something like
"Local Direct Connection" instead, without using any ports?

Also, one of the tutorials talks about perfect integration with WTP 1.0.
As WTP 1.0 is not released yet, which of the current integration builds
would be best to test that perfect integration?

Regards,

Andreas
Re: IWAT0003E/IWAT0004W when profiling HelloWorld class [message #44829 is a reply to message #44698] Mon, 05 December 2005 15:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Navid_Mehregani_nmehrega.ca.ibm.com

This is a multipart message in MIME format.
--=_alternative 0053ECD5852570CE_=
Content-Type: text/plain; charset="US-ASCII"

Hi Andreas,

I just tried profiling a simple HelloWorld class using the local direct
connection in 4.1 and it seems to be working fine. Can you try launching
your application using the external launch configuration? Click on the
profile button -> Profile... -> Create a new 'External Java Application'
launch configuration -> Select 'Local Direct Connection' under Host ->
Switch to the main tab -> click on browse and select a HelloWorld class ->
click on the Profile button. See if you still have the same problem. Make
sure you have downloaded the release build posted on our site. TPTP also
doesn't support Java 5 so make sure you're using JDK 1.4.

Navid Mehregani
IBM Canada
--=_alternative 0053ECD5852570CE_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Hi Andreas,</font>
<br>
<br><font size=2 face="sans-serif">I just tried profiling &nbsp;a simple
HelloWorld class using the local direct connection in 4.1 and it seems
to be working fine. &nbsp;Can you try launching your application using
the external launch configuration? Click on the profile button -&gt; Profile...
-&gt; Create a new 'External Java Application' launch configuration -&gt;
Select 'Local Direct Connection' under Host -&gt; Switch to the main tab
-&gt; click on browse and select a HelloWorld class -&gt; click on the
Profile button. &nbsp;See if you still have the same problem. &nbsp;Make
sure you have downloaded the release build posted on our site. &nbsp;TPTP
also doesn't support Java 5 so make sure you're using JDK 1.4.</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
<br><font size=2 face="sans-serif">IBM Canada</font>
--=_alternative 0053ECD5852570CE_=--
Re: IWAT0003E/IWAT0004W when profiling HelloWorld class [message #44960 is a reply to message #44829] Mon, 05 December 2005 23:26 Go to previous messageGo to next message
Andreas Schildbach is currently offline Andreas SchildbachFriend
Messages: 70
Registered: July 2009
Member
Navid_Mehregani_nmehrega@ca.ibm.com wrote:

> TPTP also doesn't support Java 5 so make sure
> you're using JDK 1.4.

TPTP 4.1 doesn't support Java5? I can't believe it...

If this is true, there is no point in continuing any further; I have
been using JDK 1.5 for about a year and will never go back.

Strangely, I could get TPTP 4.0 working with JDK 1.5 (using the supplied
Agent Controller). How can that be?

Regards,

Andreas
Re: IWAT0003E/IWAT0004W when profiling HelloWorld class [message #45060 is a reply to message #44960] Wed, 07 December 2005 17:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Navid_Mehregani_nmehrega.ca.ibm.com

This is a multipart message in MIME format.
--=_alternative 006026DF852570D0_=
Content-Type: text/plain; charset="US-ASCII"

TPTP4.1 doesn't officially support Java 5. The Agent Controller and the
profiling agent could still work in Java 5, but we don't officially
support it. Java 5 will most likely be supported for 4.2. There are also
plans for including a JVMTI agent in 4.2. (JVMTI is the replacement for
JVMPI in Java 5).

Navid Mehregani
--=_alternative 006026DF852570D0_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">TPTP4.1 doesn't officially support Java
5. &nbsp;The Agent Controller and the profiling agent could still work
in Java 5, but we don't officially support it. &nbsp;Java 5 will most likely
be supported for 4.2. &nbsp;There are also plans for including a JVMTI
agent in 4.2. &nbsp;(JVMTI is the replacement for JVMPI in Java 5).</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
--=_alternative 006026DF852570D0_=--
Re: IWAT0003E/IWAT0004W when profiling HelloWorld class [message #45472 is a reply to message #44829] Thu, 08 December 2005 21:01 Go to previous messageGo to next message
Andreas Schildbach is currently offline Andreas SchildbachFriend
Messages: 70
Registered: July 2009
Member
Navid_Mehregani_nmehrega@ca.ibm.com wrote:

> Can you try
> launching your application using the external launch configuration?
> Make sure you have downloaded the release build
> posted on our site. TPTP also doesn't support Java 5 so make sure
> you're using JDK 1.4.

I decided to give it another try. Following your instructions, I get
exactly the same error message.

I have downloaded and installed the TPTP 4.1 release.

Regarding the JDK: Eclipse is running with J2SE 5.0, I can't change
that. The project in question is switched to JDK 1.4 compliance in the
Compiler settings and includes the JRE 1.4 System Library in the
Classpath. Is this enough to satisfy the need of TPTP for JDK 1.4?

Regards,

Andreas
Re: IWAT0003E/IWAT0004W when profiling HelloWorld class [message #45538 is a reply to message #45472] Fri, 09 December 2005 03:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Navid_Mehregani_nmehrega.ca.ibm.com

This is a multipart message in MIME format.
--=_alternative 0012C6C9852570D2_=
Content-Type: text/plain; charset="US-ASCII"

Andreas,

I just profiled a simple class using IAC with Java 5 and it seems to work
fine. It's really strange for it to be looking for the RAC when you're
using IAC to profile. At this point I can only think of two things that
can be wrong: 1) the plugins were not installed properly and there are
traces of the old code 2) There could be something wrong with your
environment. You mentioned that you grabbed the latest build so I'll
assume it's not #1. Try out the following:

- Open a new command prompt
- Clear your PATH environment variable (i.e. set PATH="")
- Go to the Eclipse directory
- Start eclipse from the command prompt using the following command: java
-classpath startup.jar org.eclipse.core.launcher.Main
- Select an External Java launch configuration
- Select Local Direct Connection, click on 'Test Connection'. Tell me what
you get
- Hopefully you get a connection success message at this point. Try
profiling your class now.


>Regarding the JDK: Eclipse is running with J2SE 5.0, I can't change
>that. The project in question is switched to JDK 1.4 compliance in the
>Compiler settings and includes the JRE 1.4 System Library in the
>Classpath. Is this enough to satisfy the need of TPTP for JDK 1.4?

IAC uses the JDK specified for the workbench so if it has any problems
with Java 5, the above will not fix it. However, as I've stated above, I
did try profiling a simple java app with IAC using Java 5 and it seems to
be working fine.

Navid Mehregani
--=_alternative 0012C6C9852570D2_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2><tt>Andreas,</tt></font>
<br>
<br><font size=2><tt>I just profiled a simple class using IAC with Java
5 and it seems to work fine. &nbsp;It's really strange for it to be looking
for the RAC when you're using IAC to profile. &nbsp;At this point I can
only think of two things that can be wrong: 1) the plugins were not installed
properly and there are traces of the old code 2) There could be something
wrong with your environment. &nbsp;You mentioned that you grabbed the latest
build so I'll assume it's not #1. &nbsp;Try out the following:</tt></font>
<br>
<br><font size=2><tt>- Open a new command prompt</tt></font>
<br><font size=2><tt>- Clear your PATH environment variable (i.e. set PATH=&quot;&quot;)</tt></font>
<br><font size=2><tt>- Go to the Eclipse directory</tt></font>
<br><font size=2><tt>- Start eclipse from the command prompt using the
following command: java -classpath startup.jar org.eclipse.core.launcher.Main</tt></font>
<br><font size=2><tt>- Select an External Java launch configuration</tt></font>
<br><font size=2><tt>- Select Local Direct Connection, click on 'Test Connection'.
Tell me what you get</tt></font>
<br><font size=2><tt>- Hopefully you get a connection success message at
this point. &nbsp;Try profiling your class now.</tt></font>
<br>
<br>
<br><font size=2><tt>&gt;Regarding the JDK: Eclipse is running with J2SE
5.0, I can't change <br>
&gt;that. The project in question is switched to JDK 1.4 compliance in
the <br>
&gt;Compiler settings and includes the JRE 1.4 System Library in the <br>
&gt;Classpath. Is this enough to satisfy the need of TPTP for JDK 1.4?</tt></font>
<br>
<br><font size=2><tt>IAC uses the JDK specified for the workbench so if
it has any problems with Java 5, the above will not fix it. However, as
I've stated above, I did try profiling a simple java app with IAC using
Java 5 and it seems to be working fine.</tt></font>
<br>
<br><font size=2><tt>Navid Mehregani</tt></font>
--=_alternative 0012C6C9852570D2_=--
Re: IWAT0003E/IWAT0004W when profiling HelloWorld class [message #45654 is a reply to message #45538] Fri, 09 December 2005 11:47 Go to previous messageGo to next message
Andreas Schildbach is currently offline Andreas SchildbachFriend
Messages: 70
Registered: July 2009
Member
Navid_Mehregani_nmehrega@ca.ibm.com wrote:

> 1) the plugins were not installed properly and
> there are traces of the old code 2) There could be something wrong with
> your environment. You mentioned that you grabbed the latest build so
> I'll assume it's not #1. Try out the following:
>
> - Open a new command prompt
> - Clear your PATH environment variable (i.e. set PATH="")
> - Go to the Eclipse directory
> - Start eclipse from the command prompt using the following command:
> java -classpath startup.jar org.eclipse.core.launcher.Main
> - Select an External Java launch configuration
> - Select Local Direct Connection, click on 'Test Connection'. Tell me
> what you get
> - Hopefully you get a connection success message at this point. Try
> profiling your class now

I followed your instructions. I'm getting a connection success message,
but still the error box.

Regarding old code: I upgraded from TPTP 4.0. Unfortunately, due to an
Eclipse bug it is not possible to uninstall the old version (you can
disable but not uninstall). I deleted every TPTP 4.0 plugin/feature
manually.

Regards,

Andreas
Re: IWAT0003E/IWAT0004W when profiling HelloWorld class [message #46100 is a reply to message #45654] Mon, 12 December 2005 19:15 Go to previous message
Eclipse UserFriend
Originally posted by: Navid_Mehregani_nmehrega.ca.ibm.com

This is a multipart message in MIME format.
--=_alternative 0069BCF1852570D5_=
Content-Type: text/plain; charset="US-ASCII"

Andreas,

To me this sound like a problem with your environment or the way you've
set up TPTP. Unfortunately, it's really hard for me to say what the
problem is when I don't have access to your machine. At this point, I can
only suggest that you get a clean install of the workbench and TPTP.

If anyone else have any suggestions, please jump in.

Navid Mehregani
--=_alternative 0069BCF1852570D5_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2><tt>Andreas,</tt></font>
<br>
<br><font size=2><tt>To me this sound like a problem with your environment
or the way you've set up TPTP. &nbsp;Unfortunately, it's really hard for
me to say what the problem is when I don't have access to your machine.
&nbsp;At this point, I can only suggest that you get a clean install of
the workbench and TPTP.</tt></font>
<br>
<br><font size=2><tt>If anyone else have any suggestions, please jump in.</tt></font>
<br><font size=2><tt><br>
Navid Mehregani</tt></font>
--=_alternative 0069BCF1852570D5_=--
Previous Topic:profiling a webapp eat's up 100% CPU and slows down the AUT
Next Topic:question about New Technology Agent Controller
Goto Forum:
  


Current Time: Fri Mar 29 08:48:10 GMT 2024

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

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

Back to the top