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 242987 - JavaFx application with EclipseLink JPA fails during build with exception: sun.util.logging.PlatformLogger not found.
Summary: JavaFx application with EclipseLink JPA fails during build with exception: su...
Status: RESOLVED INVALID
Alias: None
Product: javafx
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal with 2 votes (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-18 00:21 UTC by rfmoorejr
Modified: 2014-05-02 10:26 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (52.83 KB, text/plain)
2014-03-18 00:21 UTC, rfmoorejr
Details
IDE log (52.93 KB, text/plain)
2014-03-18 00:59 UTC, rfmoorejr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rfmoorejr 2014-03-18 00:21:41 UTC
Product Version = NetBeans IDE 8.0 Beta (Build 201401141042)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.8.0-ea
Runtime = Java HotSpot(TM) Client VM 25.0-b65
Comment 1 rfmoorejr 2014-03-18 00:21:46 UTC
Created attachment 146086 [details]
IDE log
Comment 2 rfmoorejr 2014-03-18 00:59:38 UTC
When NetBeans 8 is reinstalled with JDK 1.7.0_45, the JavaFX/JPA application builds and runs successfully. I notice that the Java 7 package contains TWO instances of sun.util.logging.PlatformLogger --- one in  \jre\lib\jfxrt.jar   and another in  \jre\lib\rt.jar. However, the Java 8 package has only one instance of the PlatformLogger and its in \jre\lib\rt.jar. Perhaps the EclipseLink needs this class but relies on the the jfxrt.jar only because of the JavaFX application project context.

Robert Moore / rfmoorejr@gmail.com
Comment 3 rfmoorejr 2014-03-18 00:59:43 UTC
Created attachment 146087 [details]
IDE log
Comment 4 Roman Svitanic 2014-04-18 15:45:28 UTC
Please verify whether this is still reproducible on NetBeans 8.0 with the latest official JDK 8 build. And also whether it is reproducible in Java SE project as well. Thanks.
Comment 5 rfmoorejr 2014-04-21 19:17:17 UTC
Roman --
I retested the simple JavaFX/FXML+JPA project with newly installed JDK1.8.0_05 and Netbeans build 201403101706. The problem occurs as before: exception thrown in
the build phase (PlatformLogger not found). As before, omitting the JPA allows the JavaFx application to build and run fine. 
I also tried the same tests with a simple JRE8 project--it ran fine with or without the JPA included.

To be clear, the JPA is added by New/Build Entity Classes from Database/ followed by the wizard where I choose a simple MySQL database connection. The result creates entity classes, a persistent.xml file, and includes EclipseLink (JPA2.1) library jars. 

Until this is resolved, I will continue to use my JDK1.7.0_51 which shows no problem with the tests above.

Thanks for starting work on my bug submission.

Regards
Bob Moore
Comment 6 Roman Svitanic 2014-05-02 10:26:00 UTC
Thanks for the report, however this seems to be an issue outside the JavaFX project or NetBeans generally.

Mentioned behavior is also reproducible in Java SE project and Maven project as well. To reproduce it, it's enough just to add a class that extends javafx.application.Application. Without it project compiles fine, with this newly added class an exception is thrown.