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 239996 - [80cat] Exception occurs when invoking "Make Controller" on Maven JavaFX project
Summary: [80cat] Exception occurs when invoking "Make Controller" on Maven JavaFX project
Status: RESOLVED DUPLICATE of bug 239673
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Windows 8
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 240052 (view as bug list)
Depends on: 240105
Blocks:
  Show dependency tree
 
Reported: 2014-01-05 07:18 UTC by Lou Dasaro
Modified: 2014-01-14 13:27 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Messages log (93.68 KB, application/octet-stream)
2014-01-05 07:18 UTC, Lou Dasaro
Details
UI Gestures log (129.40 KB, text/plain)
2014-01-05 07:19 UTC, Lou Dasaro
Details
stacktrace (6.28 KB, text/plain)
2014-01-07 18:39 UTC, Lou Dasaro
Details
Test case to reproduce Maven JavaFX Make Controller exception (2.78 KB, text/plain)
2014-01-07 20:01 UTC, Lou Dasaro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lou Dasaro 2014-01-05 07:18:19 UTC
Created attachment 143601 [details]
Messages log

Selected Scene.fxml node in project view. Invoked popup menu and selected "Make controller". Exception occurs (exception reporter is down just now). Happens whether building on JDK 7 or 8. JavaFX appears to have been previously activated during project creation, as reported by the Plugins wizard.

Marked as P1, primarily because it is an exception. Tested using:
Product Version: NetBeans IDE Dev (Build 201401040002)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b63
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b121
System: Windows 8 version 6.2 running on x86; Cp1252; en_US (nb)
Comment 1 Lou Dasaro 2014-01-05 07:19:53 UTC
Created attachment 143602 [details]
UI Gestures log
Comment 2 Roman Svitanic 2014-01-06 09:32:11 UTC
Hi Lou, I am not getting the exception when I click "Make controller" action. It works for me in both cases: when project is built using JDK 7 and/or 8.

Product Version: NetBeans IDE Dev (Build 201401060002)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b65
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b122

Please try to reproduce it once again with clean userdir. If it will still occur, please post more detailed steps to reproduce (maybe I'm missing something). Thanks!
Comment 3 Lou Dasaro 2014-01-06 16:05:29 UTC
Hi Roman,

Build 201401040002 had some rough edges that I think were fixed by/before Build 201401060002, which I just retested with, and can't get to break in this scenario. Sorry for the trouble.

Therefore, I have verified this bug as worksforme.
Comment 4 Lou Dasaro 2014-01-07 04:09:58 UTC
Whoa, I spoke too soon. This occurs when IDE is running on JDK 8 and Compile is set to JDK 7. See Bug 240052 and Exception Report 193847.
Comment 5 Roman Svitanic 2014-01-07 09:32:43 UTC
*** Bug 240052 has been marked as a duplicate of this bug. ***
Comment 6 Roman Svitanic 2014-01-07 12:54:39 UTC
Lou, could you try to reproduce this with clean user and cache directories? Either by deleting these two folders:  User Directory          = C:\Users\Lu\AppData\Roaming\NetBeans\dev  Cache Directory         = C:\Users\Lu\AppData\Local\NetBeans\Cache\devor by running NetBeans with --userdir
Comment 7 Roman Svitanic 2014-01-07 12:56:37 UTC
Sorry for messed text formatting, I've copied the values of your directories from attached messages.log. They should be:
User Directory=C:\Users\Lu\AppData\Roaming\NetBeans\dev
Cache Directory= C:\Users\Lu\AppData\Local\NetBeans\Cache\dev
Comment 8 Lou Dasaro 2014-01-07 18:39:41 UTC
Created attachment 143686 [details]
stacktrace

Invoked "Make Controller" on a Maven JavaFX project with IDE running on JDK 8 and Project options->Compile set to JDK 7
Comment 9 Lou Dasaro 2014-01-07 20:01:23 UTC
Created attachment 143689 [details]
Test case to reproduce Maven JavaFX Make Controller exception

See attached test case to reproduce Maven JavaFX Make Controller exception
using:
Product Version: NetBeans IDE Dev (Build 201401070002)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b63
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b121
System: Windows 8 version 6.2 running on x86; Cp1252; en_US (nb)
AND JavaFX Scene Builder 2.0 (Developer Preview) Version: 2.0-b09
Comment 10 Roman Svitanic 2014-01-08 13:22:45 UTC
Hi Lou, now I am able to reproduce the problem. Key information was "Maven JavaFX Project". The root cause is same like in bug #239673 and bug #240097. jfxrt.jar from JDK 8 on which IDE is running is on bootclasspath.
Comment 11 Roman Svitanic 2014-01-14 13:27:17 UTC
I am marking this as a duplicate of the bug #239673, since the root cause is the same in both.

*** This bug has been marked as a duplicate of bug 239673 ***