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 239233 - [80cat] Cannot debug JavaFX Projects that "Run in Browser"
Summary: [80cat] Cannot debug JavaFX Projects that "Run in Browser"
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0
Hardware: PC Windows 8
: P3 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-08 08:03 UTC by Lou Dasaro
Modified: 2013-12-26 04:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Suspicious build log (2.94 KB, text/plain)
2013-12-16 19:00 UTC, Lou Dasaro
Details
Debugging in Firefox 26 on JDK8 (166.22 KB, image/jpeg)
2013-12-20 14:04 UTC, Roman Svitanic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lou Dasaro 2013-12-08 08:03:40 UTC
I am unable to Debug JavaFX Projects that "Run in Browser". 
Received message "JavaFX application could not launch...". See below.
There is reason to believe this can't logically be done, but the option is provided so...

Steps to reproduce:
Create a New JavaFX project.
Set Properties->Build->Deployment to enable signing.
Set Properties->Run to use chosen browser, in my case, FireFox (25.0.1)
Set Project Configuration to "Run in Browser"
Click "Run".
>>> Result: After assent to Security Warning, Project runs successfully
Close the Browser window. 
Click "Debug"
>>> Expected result should be the same as clicking "Run" above.
>>> ACTUAL Result is error message: "JavaFX application could not launch 
>>> due to system configuration (show error details). See java.com/javafx 
>>> for troubleshooting information."
Make sure to click the "Stop" icon, because NB still has it running (somewhere).

Product Version: NetBeans IDE Dev (Build 201312050002)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b60
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b118
System: Windows 8 version 6.2 (Windows 8.1) running on x86; Cp1252; en_US (nb)
Comment 1 Roman Svitanic 2013-12-10 09:59:17 UTC
Hi Lou,
when you click on the error details, what do you have on the top of Java Console?

Is it something like this?

Java Plug-in 10.45.2.18
Using JRE version 1.7.0_45-b18 Java HotSpot(TM) Client VM

This will mean that browser plugin is using JRE7 and it can't handle application compiled with source level JDK 8. If you will set source level to JDK 7 (you can still use JDK 8 platform), the problem should disappear. This will mean that this is not a bug in NetBeans or in JRE/browser plugin, but an expected behavior.
Comment 2 Lou Dasaro 2013-12-12 07:09:24 UTC
Here's what I got:
Java Plug-in 11.0.2.118
Using JRE version 1.8.0-ea-b118 Java HotSpot(TM) Client VM

My guess is that it's completely illogical to "Debug" a project in "Run in Browser" mode. Perhaps there's a better reason though. 

Are you able to "debug" a newly-created JavaFX project in "Run in Browser" mode?  If so, could you share your environment specs please?
Comment 3 Roman Svitanic 2013-12-16 09:52:49 UTC
Lou, I agree with you that is definitely better to debug project as a standalone javafx application instead of "run in browser" mode.

Debugging in browser works for me good in IE.

Product Version: NetBeans IDE Dev (Build 20131210-765f5a7c4f4a)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 4 Lou Dasaro 2013-12-16 19:00:13 UTC
Created attachment 143228 [details]
Suspicious build log

Ahh, you are using Java 7. For NetCAT 8, Jirka directed us to use Java 8.

Using FireFox version 26, with these plugins:
Java Deployment Toolkit 8.0.0.119
NPRuntime Script Plug-in Library for Java(TM) Deploy

Building with JDK 8/source level 8, I can run, but not debug.
Error shown is as before in Description.

Take a look at the log I have attached. It looks like it invokes the browser, then immediately cleans the project! Looks suspect to my eyes...
Comment 5 Lou Dasaro 2013-12-20 08:52:46 UTC
I just tried with the latest development build on Java 1.7u45, Same error occurs. The path to the file shown in the browser does not exist. See log - it was cleaned!
Product Version: NetBeans IDE Dev (Build 201312190002)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 8 version 6.2 running on x86; Cp1252; en_US (nb)
Comment 6 Roman Svitanic 2013-12-20 13:53:17 UTC
Clean in your log is OK, after run/debug is finished clean is expected. See following antcall in target jfxbe-debug in jfx-impl.xml:
<!-- after the session clean up the jnlp containing debug settings -->
<antcall target="clean"/>

From log we can see that Firefox has already exited. Therefore clean is OK.
Comment 7 Roman Svitanic 2013-12-20 14:04:37 UTC
Created attachment 143375 [details]
Debugging in Firefox 26 on JDK8

I am able to debug FX project in Firefox using JDK8 and JDK7 as well. See screenshot: JDK8 (note lambda), Firefox is using plugin from JRE 1.8.0b121 x86.

Product Version: NetBeans IDE Dev (Build 20131219-e4b371987f7d)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b62
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b120
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)

Please make sure that you are using x86 JRE.
Comment 8 Roman Svitanic 2013-12-20 14:10:47 UTC
There was really problem with debugging in Firefox on 7u45, it should be fixed:
http://hg.netbeans.org/jet-main/rev/6b2cfebc9937

Now debugging in browser works for me on JDK7 and 8 as well. See screenshot from previous comment.

If you still experience problems, please try to run IDE with clean userdir and/or reinstall Firefox.
Comment 9 Quality Engineering 2013-12-21 04:12:21 UTC
Integrated into 'main-silver', will be available in build *201312210002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6b2cfebc9937
User: Roman Svitanic <rsvitanic@netbeans.org>
Log: #239233: Problems with debugging of FX project in Firefox (run in browser) on JDK 7u45 - fixed
Comment 10 Lou Dasaro 2013-12-26 04:45:05 UTC
Since I can both RUN and DEBUG using Chrome, marking this verified.

I'm still having trouble with debugging in FireFox, but I can RUN in Firefox just fine. Can't seem to run in IE at all, but I am going to chalk it all up to security configuration errors, since it all works fine in Chrome.

Tested with Build 201312250002