JDK-8135016 : Unhandled Exceptions in Start
  • Type: Bug
  • Component: javafx
  • Sub-Component: application-lifecycle
  • Affected Version: 8u60
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_8
  • CPU: x86
  • Submitted: 2015-09-03
  • Updated: 2015-09-04
  • Resolved: 2015-09-04
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Owner>java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

C:\Users\Owner>

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Owner>ver

Microsoft Windows [Version 6.3.9600]

C:\Users\Owner>

A DESCRIPTION OF THE PROBLEM :
Using the Thread default unchecked exception handler it is not possible to receive unchecked events from a JavaFX start method. Listening for exceptions from main() or anywhere else on the JavaFX application thread works as expected. It is necessary to be able to handle these exceptions for error reporting akin to Google Breakpad for cross-platform error reporting.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a new JavaFX application and create an unchecked exception handler for the thread. Cause an exception to occur in the JavaFX start() method and try to handle it using the default unchecked exception handler.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I would expect the unchecked exception handler to receive the exception and let me process it.
ACTUAL -
The unchecked exception handler does not receive the exception and I am unable to process it other than with a try catch block.

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
I have not currently discovered a workaround for this issue.

SUPPORT :
YES


Comments
This is a duplicate of JDK-8088773.
04-09-2015