This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 240379 - [80cat] Profile fails for JavaFX Applications due to classpath issues for launcher stub
Summary: [80cat] Profile fails for JavaFX Applications due to classpath issues for lau...
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Ide (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal with 1 vote (vote)
Assignee: Petr Cyhelsky
URL:
Keywords: JDK_8, JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2014-01-13 02:37 UTC by swpalmer
Modified: 2014-01-19 22:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description swpalmer 2014-01-13 02:37:01 UTC
Product Version: NetBeans IDE 8.0 Beta (Build 201401091443)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b63
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b121
System: Windows 7 version 6.1 running on amd64; Cp1252; en_CA (nb)

Create a new JavaFX Applicaiton projec.
Try to Profile it.

Result, app runs and fails immediately with the following Error:

Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds (Protocol version: 15)
Profiler Agent: Established connection with the tool
Profiler Agent: Local accelerated session

Error: Could not find or load main class com.javafx.main.Main

Profiler Agent: Connection with agent closed
Profiler Agent: Connection with agent closed
Profiler Agent: Initializing...
Profiler Agent: Options: >C:\Program Files (x86)\NetBeans 8.0 Beta\profiler\lib,5140,10<
Profiler Agent: Initialized successfully
Java Result: 1
jfxsa-profile:
BUILD SUCCESSFUL (total time: 26 seconds)


Related to issue 202133
Comment 1 Lou Dasaro 2014-01-13 04:46:26 UTC
When profiling an application, I am getting this error as well
"Error: Could not find or load main class com.javafx.main.Main"

Changed to P2 due to lack of any workaround.
Comment 2 Tomas Hurka 2014-01-14 08:49:27 UTC
(In reply to Lou Dasaro from comment #1)
> When profiling an application, I am getting this error as well
> "Error: Could not find or load main class com.javafx.main.Main"
> 
> Changed to P2 due to lack of any workaround.
There is a workaround: start application normally (without profiling) and attach profiler to it.
Comment 3 swpalmer 2014-01-14 12:32:02 UTC
That workaround isn't suitable if you need to profile your application's startup.
Comment 4 Petr Cyhelsky 2014-01-15 16:25:54 UTC
fixed in http://hg.netbeans.org/profiler-main/rev/b889945e4557

in some instances the javafx profiling still does not work, but run doesn't either - see #240505
Comment 5 Quality Engineering 2014-01-17 02:47:29 UTC
Integrated into 'main-silver', will be available in build *201401170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b889945e4557
User: Petr Cyhelsky <cyhelsky@netbeans.org>
Log: #240379 - Adapt profiler to the new way of launching javafx apps
Comment 6 swpalmer 2014-01-19 22:22:40 UTC
Verified working in build 201401180001