I have a webapp running on Java 6 in Tomcat 6. ImageIO.read
is returning null.
It attempts to retrieve tiff images from a computer on the same [Windows] network. To do this, I use JCIFS as auth, and jai to read the images.
In QA, this works, I retrieve and display the TIFs. In production, it does not.
I am able to access the images and it correctly retrieves the file paths.
Here is the error from the log:
2013-11-18 11:06:47,405 [webapp] INFO [http-8080-6]
ScannedService.getScannedDocuments(66) | Customer.java
get files at Paths[smb://sharedDrived/path/1HK01001.TIF]
2013-11-18 11:06:47,421 [webapp] INFO [http-8080-6]
ScannedDocument.<init>(32) | ScannedDocument.java
constructor, image value: null
The null is what is returned by:
ImageIO.read(smbStream);
Why that line is returning null?