ImageStorageTest fails in NetBeans

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 8u40
    • Affects Version/s: 8u20
    • Component/s: javafx
    • None

      When running the graphics tests from NetBeans, ImageStorageTest fails with the following exception:
      Testcase: createImageFromNoExtensionURL(com.sun.javafx.iio.ImageStorageTest): Caused an ERROR
      src\test\resources\com\sun\javafx\iio\testpngnoextension (The system cannot find the path specified)
      com.sun.javafx.iio.ImageStorageException: src\test\resources\com\sun\javafx\iio\testpngnoextension (The system cannot find the path specified)
      at com.sun.javafx.iio.ImageStorage.loadAll(ImageStorage.java:324)
      at com.sun.javafx.iio.ImageStorageTest.createImageFromNoExtensionURL(ImageStorageTest.java:35)
      Caused by: java.io.FileNotFoundException: src\test\resources\com\sun\javafx\iio\testpngnoextension (The system cannot find the path specified)
      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:314)

      This happens because working directory in this case is rt\netbeans\graphics.

            Assignee:
            Vadim Pakhnushev
            Reporter:
            Vadim Pakhnushev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: