Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Cannot profile a Java Application
Cannot profile a Java Application [message #107151] Thu, 02 August 2007 09:14 Go to next message
Eclipse User
Originally posted by: mauro.molinari.cardinis.com

Using Update Manager with Europa Discovery site, I installed just TPTP
Java Profiling component and the required TPTP Platform component
(sorry, I can't remember the exact name of these two components; I can
only state for sure that I didn't install the following:
TPTP Reporting with BIRT
TPTP Profiling for Web applications
TPTP Testing Tools Project
TPTP Tracing and Profiling Tools Project
because I thought I didn't need them)

When the installation finished, I accepted to restart Eclipse.
Then, I created a new profile for an application that hadn't any run
profile: I selected to profile as Java Application, I set up project and
main class, under Monitor tab I selected Execution Time Anaylisis (JRE
1.5 or newer) and then clicked on Profile

Eclipse tries to start the application, but many times I got:
- no output in the console (it stays grey)
- no output in Profiling and Logging perspective
After some seconds, Eclipse seems to have stopped to try to launch the
application. In the log under .metadata I see:
!ENTRY org.eclipse.hyades.trace.ui 4 4 2007-08-02 10:41:10.281
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at
org.eclipse.tptp.trace.ui.internal.launcher.deleg.applicatio n.PIDelegateHelper.getProcessParameter(PIDelegateHelper.java :104)
at
org.eclipse.tptp.trace.ui.internal.launcher.deleg.applicatio n.PIJavaLauncherDelegate.getProcessParameters(PIJavaLauncher Delegate.java:43)
at
org.eclipse.tptp.trace.ui.provisional.launcher.PrimaryLaunch Delegate.run(PrimaryLaunchDelegate.java:246)
at java.lang.Thread.run(Unknown Source)

Then, for some reason, after I tried to open the progress view, then I
started to experience the following:
- now, the console is allocated, but stays white (empty)
- in the progress view I can see "Launching <profile name>"/"Launching :
Launching delegate..." then "Launching <profile name>"/"Launching the
Java application"
- an alert is given with the following error (also present the in log):
!ENTRY org.eclipse.hyades.trace.ui 4 4 2007-08-02 10:55:23.875
!MESSAGE A time-out occurred while attempting to launch the process
!STACK 1
org.eclipse.core.runtime.CoreException: A time-out occurred while
attempting to launch the process
at
org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.createCoreException(LauncherUtility.java:123)
at
org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.createCoreException(LauncherUtility.java:131)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.handleError(TIDelegateHelper.java:570)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.launchProcess(TIDelegateHelper.java:518)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.launch(TIDelegateHelper.java:311)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIJ avaLauncherDelegate.launch(TIJavaLauncherDelegate.java:37)
at
org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.delegateInit(LauncherUtility.java:1153)
at
org.eclipse.tptp.trace.ui.provisional.launcher.PrimaryLaunch Delegate.run(PrimaryLaunchDelegate.java:196)
at java.lang.Thread.run(Unknown Source)
!SUBENTRY 1 org.eclipse.hyades.trace.ui 4 0 2007-08-02 10:55:23.875
!MESSAGE A time-out occurred while attempting to launch the process

What's wrong?

Mauro.
Re: Cannot profile a Java Application [message #107166 is a reply to message #107151] Thu, 02 August 2007 09:15 Go to previous messageGo to next message
Eclipse User
Originally posted by: mauro.molinari.cardinis.com

By the way, I'm using:
- Windows 2000
- Eclipse 3.3 (build ID: I20070625-1500)
- JDK 1.5.0_12

I didn't install any agent controller, because in the guides I read that
it is not needed when profiling a local application.

Mauro.
Re: Cannot profile a Java Application [message #107341 is a reply to message #107166] Thu, 02 August 2007 13:49 Go to previous messageGo to next message
Valentina Popescu is currently offline Valentina Popescu
Messages: 23
Registered: July 2009
Junior Member
I tried the same scenario and could not reproduce your problem. There are a
few things not specified in your installation steps which may cause this
error.

TPTP requires some of the EMF plugins which are not part of the Eclipse
platform; make sure you have those installed.



These are the steps I followed:

1.. Running on XP
2.. Download Eclipse 3.3 platform runtime R-3.3-200706251500 ( 40Mb)
3.. Open Update Manager and select Europa site.
4.. Select TPTP Platform
5.. Select Install required - this will select EMF, XSD. This is missing
from your installation steps and it may be the root of the problem


Next I create a simple java app, create a profile configuration - Execution
Time Analysis and run with java 5

Select Profile and the application is running successfully. There are no
profiling views available to open in order to see the data ( because the
TPTP Tracing feature was not selected ) but the console shows me the
application being run and data being collected in the Profiling Monitor
view.



I am running on Windows XP

java version "1.5.0_06"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)

Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)



Hope this helps

Valentina


"Mauro Molinari" <mauro.molinari@cardinis.com> wrote in message
news:f8s7ei$cls$2@build.eclipse.org...
> By the way, I'm using:
> - Windows 2000
> - Eclipse 3.3 (build ID: I20070625-1500)
> - JDK 1.5.0_12
>
> I didn't install any agent controller, because in the guides I read that
> it is not needed when profiling a local application.
>
> Mauro.
Re: Cannot profile a Java Application [message #107364 is a reply to message #107341] Thu, 02 August 2007 15:30 Go to previous message
Eclipse User
Originally posted by: mauro.molinari.cardinis.com

Valentina Popescu ha scritto:
> I tried the same scenario and could not reproduce your problem. There are a
> few things not specified in your installation steps which may cause this
> error.
>
> TPTP requires some of the EMF plugins which are not part of the Eclipse
> platform; make sure you have those installed.
>
> These are the steps I followed:
>
> 1.. Running on XP
> 2.. Download Eclipse 3.3 platform runtime R-3.3-200706251500 ( 40Mb)
> 3.. Open Update Manager and select Europa site.
> 4.. Select TPTP Platform
> 5.. Select Install required - this will select EMF, XSD. This is missing
> from your installation steps and it may be the root of the problem
>
>
> Next I create a simple java app, create a profile configuration - Execution
> Time Analysis and run with java 5
>
> Select Profile and the application is running successfully. There are no
> profiling views available to open in order to see the data ( because the
> TPTP Tracing feature was not selected ) but the console shows me the
> application being run and data being collected in the Profiling Monitor
> view.

Hi Valentina,
thank you for your support.
Now I installed all TPTP components, but the time-out problem persists.
I noticed that other people are experiencing the same problem: see
threads "TIme-out occurred while attempting to launch the process" by
Daniel Cheng (14/12/1006) and "A time-out occurred while attempting to
launch the process" by Ron Kinney (10/04/2007) in this newsgroup.
Unfortunately, it is not clear if they solved the problem.

I do have EMF and XSD, because (I forgot to mention) I already have also
WTP installed.

I also tried to use the standalone agent controller, to see if the
problem were the IAC, but a part from the fact that there are some
aspects that are not clear (please see my thread "Some (stupid?)
questions about TPTP and Agent Controller" posted today), even when I
think I got to use the standalone agent controller the result was the same.

I tried to change filters, thinking that the problem might have been too
much data to profile: I even tried to exclude all packages and to
include just those of my application, but it didn't help.

I also tried to profile a simple HelloWorld application, but I still
encouter the error...

I don't know what to do :-( I can remember that one year ago (more or
less) I got TPTP 4.1.0 working on an old Eclipse 3.2 (or was 3.1?)
installation...

I noticed that Windows 2000 is not mentioned as a supported platform...
may be this the problem?

Mauro.
Previous Topic:Running AGR as an in-process strategy
Next Topic:log4J.properties loaded twice when profiling with CBE to log
Goto Forum:
  


Current Time: Sat Oct 25 17:31:04 GMT 2014

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

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