Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8119399

Sample application "Ensemble" is not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • fx2.1
    • javafx
    • Ubuntu 10.10, 64 bit
      JavaFX 2.1 Developer Preview

      When trying to launch the Ensemble sample application, I got a crash resulting from the line 165 of SampleHelper.java:

          BufferedReader reader = new BufferedReader(new InputStreamReader(SampleHelper.class.getResourceAsStream("samplesAll.txt")));

      There is no "samplesAll.txt" file anywhere in the project, so this raises NullPointerException and crashes the app.

      Full stack trace:

      Exception in Application start method
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at com.javafx.main.Main.launchApp(Main.java:453)
      at com.javafx.main.Main.main(Main.java:537)
      Caused by: java.lang.RuntimeException: Exception in Application start method
      at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:379)
      at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:28)
      at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:98)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.NullPointerException
      at java.io.Reader.<init>(Reader.java:78)
      at java.io.InputStreamReader.<init>(InputStreamReader.java:72)
      at ensemble.SampleHelper.findAllSamples(SampleHelper.java:165)
      at ensemble.SampleHelper.getSamples(SampleHelper.java:74)
      at ensemble.Pages.parseSamples(Pages.java:66)
      at ensemble.Ensemble2.start(Ensemble2.java:287)
      at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:299)
      at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:153)
      at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:120)
      at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
      at com.sun.glass.ui.gtk.GtkApplication$1$1.run(GtkApplication.java:56)
      ... 1 more

            dmasada Debra Masada (Inactive)
            rogachjfx Rogach (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: