Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331628 - Profile As->Java application times out when project references are present in build path
Summary: Profile As->Java application times out when project references are present in...
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P2 major (vote)
Target Milestone: ---   Edit
Assignee: Joel Cayne CLA
QA Contact: Kathy Chan CLA
URL:
Whiteboard: closed472
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-02 00:26 EST by Datta CLA
Modified: 2016-05-05 11:01 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Datta CLA 2010-12-02 00:26:11 EST
Build Identifier: 20100617-1415

Problem is reproducible when one project has another project in it's build dependency. I tried profiling a Hello world program under a simple project without any dependencies, and was successful. However, as soon as I added another project to it's build path, I started receiving this time out error.

I am using IAC for this whole action.

Reproducible: Always

Steps to Reproduce:
1.Create a new project projectA and have a hello world sample java program. Profiling this succeeds
2. Create another project projectB and add projectB to projectA's refrnced projects via buid path setting
3. Try to profile the same hello world program now, and it fails
Comment 1 Datta CLA 2010-12-02 00:33:18 EST
Versions:  

TPTP Platform Project	4.7.1.v201009092123-7u84778ksjNyo-bR8YTTJlR0rtM2	org.eclipse.tptp.platform.runtime.feature.group
    Apache commons logging	4.5.0.v201005032111-2-37w312116191612	org.eclipse.tptp.platform.commons.logging.feature.group
    Apache Jakarta log4j	4.5.0.v201005032111-217E7w312116191611	org.eclipse.tptp.platform.jakarta.log4j.feature.group
    Apache Xerces	4.6.0.v201005032111-777K4AkF7B77R7c7N77	org.eclipse.tptp.platform.xerces.feature.group
    Batik	4.5.0.v201005032111-7H8H-FE-z0VXWZcyEYyUI	org.eclipse.tptp.platform.batik.feature.group
    Batik PDF	4.5.0.v201005032111-25-7w311917142611	org.eclipse.tptp.platform.batik.pdf.feature.group
    Instrument Core UI Feature	4.3.1.v201009092123-797908s73533D4H6D56	org.eclipse.tptp.platform.instrumentation.ui.feature.group
    TPTP Charting Service	4.4.1.v201009092123-7D7A09oB5855O5Q9I78	org.eclipse.tptp.platform.report.feature.group
    TPTP Core	4.7.1.v201009092123-8X8ZFXUFLWUl6knOxRCm9t	org.eclipse.tptp.platform.core.feature.group
    TPTP JVMTI Profiler	4.5.1.v201009092123-797A18s73533L4F6D6D	org.eclipse.tptp.platform.jvmti.feature.group
    TPTP Platform Integration PDE	4.5.1.v201009092123-5407w31211A1A3234	org.eclipse.tptp.platform.integration.pde.feature.group
    TPTP Platform Project User Documentation	4.4.1.v201009092123-797717FE8C5yB897GPGRCBEA	org.eclipse.tptp.platform.doc.user.feature.group
    TPTP Platform Samples	4.5.0.v201005032111-7D7A-9oB5855K5N8N55	org.eclipse.tptp.platform.samples.feature.group
    TPTP Platform Trace	4.5.1.v201009092123-7L7O8bBgJ9E99jAfGWEM	org.eclipse.tptp.platform.trace.feature.group
    TPTP ProbeKit	4.5.1.v201009092123-7H7BF8PAkF7B77ZARCNEK	org.eclipse.tptp.platform.probekit.feature.group


Error stack trace:

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:124)
at 
org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.createCoreException(LauncherUtility.java:132)
at 
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.handleError(TIDelegateHelper.java:654)
at 
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.launchProcess(TIDelegateHelper.java:570)
at 
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.launch(TIDelegateHelper.java:347)
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:1164)
at 
org.eclipse.tptp.trace.ui.provisional.launcher.PrimaryLaunch Delegate.run(PrimaryLaunchDelegate.java:195)
at java.lang.Thread.run(Thread.java:595)
Comment 2 Kathy Chan CLA 2010-12-02 14:59:49 EST
Joel, please take a look.
Comment 3 Joel Cayne CLA 2010-12-09 09:46:30 EST
Using the TPTP-4.7.2-201012081900 all-in-one, I created two Java projects. In project A, I added project B as a required project on the Java Build Path. Using both the AC and IAC there were no errors when profiling the Java Application in project A.

Is there a step I missed when configuring the project dependencies? Are you using Project References instead of the Java Build Path?
Comment 4 Datta CLA 2010-12-30 23:38:01 EST
(In reply to comment #3)
> Using the TPTP-4.7.2-201012081900 all-in-one, I created two Java projects. In
> project A, I added project B as a required project on the Java Build Path.
> Using both the AC and IAC there were no errors when profiling the Java
> Application in project A.
> 
> Is there a step I missed when configuring the project dependencies? Are you
> using Project References instead of the Java Build Path?

Hmm.. This looks like a better version of TPTP than I have. The steps you have followed are the exact same as I did. So let me test with this new version and get back to you. Thanks for looking into this.
Comment 5 Joel Cayne CLA 2011-01-11 09:46:45 EST
Were you able to test using a newer TPTP and produce the error?
Was the error occurring in a workbench install using a Helios or TPTP update site installation?
Comment 6 Joel Cayne CLA 2011-01-18 09:38:19 EST
Resolving as works for me. Please re-open if you are still able to reproduce the problem.
Comment 7 Kathy Chan CLA 2011-02-11 13:36:43 EST
This defect had been resolved as WORKSFORME for more than 3 weeks.  Closing this on the reporter's behalf.  Please verify with the latest TPTP 4.7.2 driver and re-open if this is still a problem.  TPTP 4.7.2 driver can be downloaded from:

http://www.eclipse.org/tptp/home/downloads/?ver=4.7.2
Comment 8 Kathy Chan CLA 2011-02-11 13:57:40 EST
Closing in TPTP 4.7.2 release.