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
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