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

ImageStorageTest fails in NetBeans

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P5
    • 8u40
    • 8u20
    • javafx
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported: