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 117284 - [Preview] JavaFX Runtime exceptions looks like NetBeans exceptions
Summary: [Preview] JavaFX Runtime exceptions looks like NetBeans exceptions
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Oleg Barbashov
URL:
Keywords:
Depends on:
Blocks: 146949
  Show dependency tree
 
Reported: 2007-10-01 11:55 UTC by Alexandr Scherbatiy
Modified: 2008-09-12 10:28 UTC (History)
0 users

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 Alexandr Scherbatiy 2007-10-01 11:55:54 UTC
Steps to reproduce:
- Copy the code to the editor
----------------------------------------------------------------
import javafx.ui.*;
import java.lang.System;

var a = 101;
Frame {
    content: BorderPanel {
        bottom : Button{
            text: "Press Me"
            action: operation() {
                System.out.println(a);
                Dialog {
                    title: "Dialog"
                    content:  Slider {
                        value: bind a
                    }
                }
            }
        }
        
    }
    
    visible : true
}
----------------------------------------------------------------

- Enable the preview
- Press the button
  JavaFX Runtime Exception pops up.

  If you run the app and press the button the exception will be written 
  in the output.

  The Runtime exceptions from the sample pop up as usual NetBeans exception.
  It confuses users because it looks like that something happened with the
  editor.
Comment 1 Alexandr Scherbatiy 2007-10-01 11:58:03 UTC
The same is for the System.exit() operation:

- Copy the following code to the editor:
  ----------------------------------------
    import javafx.ui.*;
    import java.lang.System;

    Frame {
                width: 200
                height: 200
                content:  Button {
                         text: "Click Me"
                         action: operation() {
                            System.exit(0);
                         }
                    }
                visible: true
            };
  ----------------------------------------
- Enable the preview
- Click the button on the preview
  The exception pops up:
  uncaught FX exception: org.netbeans.ExitSecurityException
org.netbeans.ExitSecurityException: Illegal attempt to exit early
Comment 2 Jiri Prox 2008-04-11 00:32:33 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 3 Jiri Prox 2008-04-11 08:53:01 UTC
Restoring original TM, sorry for any inconvenience 
Comment 4 Oleg Barbashov 2008-09-11 14:52:09 UTC
Fixed.
Comment 5 Alexandr Scherbatiy 2008-09-12 10:28:24 UTC
Exceptions are stored in Preview Output window.
Verified in 2008-09-12_02-01-58.zip