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

Inconsistent behavior: FileNotFound exception from Image is silently swallowed when not on ES2 and shown in the output on ES2

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Environment:

      Linux+ES2 show the exception
      Linux without ES2 or Windows 7 with D3D don't show the exception

      Description

      Modena app appeared to use non-existing image in table column graphic:

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

      When not running with ES2 it silently failed to show the image but the app was running fine.

      When running with ES2 it was printed to the ouput:

      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)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kcr Kevin Rushforth
                Reporter:
                mrkam Alexander Kuznetcov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: