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.
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.
- relates to
-
JDK-8092588 [Mac, Retina] StringIndexOutOfBoundsException with image urls without extension
- Resolved