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

Modena app tries to load non-existing file

XMLWordPrintable

      The following line is trying to load an image that is not in the repo:

      modena.SamplePageTableHelper.createTableView(SamplePageTableHelper.java:276):

      final ImageView graphic1 = new ImageView(new Image("file:src/helloworld/about_16.png"));

      The following exception was printed to the output with es2 on Linux and swallowed on other configurations:

      java.io.FileNotFoundException: src/helloworld/about_16.png (No such file or directory)
          at java.io.FileInputStream.open(Native Method)
          at java.io.FileInputStream.<init>(FileInputStream.java:131)
          at java.io.FileInputStream.<init>(FileInputStream.java:87)
          at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
          at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
          at java.net.URL.openStream(URL.java:1038)
          at com.sun.javafx.iio.common.ImageTools.createInputStream(ImageTools.java:445)
          at com.sun.javafx.iio.ImageStorage.loadAll(ImageStorage.java:313)
          at com.sun.javafx.tk.quantum.PrismImageLoader2.loadAll(PrismImageLoader2.java:119)
          at com.sun.javafx.tk.quantum.PrismImageLoader2.<init>(PrismImageLoader2.java:70)
          at com.sun.javafx.tk.quantum.QuantumToolkit.loadImage(QuantumToolkit.java:658)
          at javafx.scene.image.Image.loadImage(Image.java:1041)
          at javafx.scene.image.Image.initialize(Image.java:785)
          at javafx.scene.image.Image.<init>(Image.java:599)
          at modena.SamplePageTableHelper.createTableView(SamplePageTableHelper.java:276)
          at modena.SamplePage.<init>(SamplePage.java:593)
          at modena.SamplePageNavigation.<init>(SamplePageNavigation.java:46)
          at modena.Modena.rebuildUI(Modena.java:313)
          at modena.Modena.start(Modena.java:215)
          at com.sun.javafx.application.LauncherImpl$8.run(LauncherImpl.java:837)
          at com.sun.javafx.application.PlatformImpl$7.run(PlatformImpl.java:331)
          at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:297)
          at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:294)
          at java.security.AccessController.doPrivileged(Native Method)
          at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:294)
          at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
          at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
          at com.sun.glass.ui.gtk.GtkApplication.access$200(GtkApplication.java:48)
          at com.sun.glass.ui.gtk.GtkApplication$6$1.run(GtkApplication.java:149)
          at java.lang.Thread.run(Thread.java:744)

            mrkam Alexander Kuznetcov (Inactive)
            mrkam Alexander Kuznetcov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: