I have a problem while loading a TIFF Image.
I use ImageIO.read(Test.class.getResourceAsStream(url))
to read an image, with a JPEG it works perfect, but with a TIFF image I get a NullPointerException
. The JPEG image and TIFF image are in the same folder.
Edit: Stacktrace
java.lang.NullPointerException
at de.test.test1.files.Konstantenbeleg.<init>(Konstantenbeleg.java:47)
at de.test.test1.files.Konstantenbeleg.<init>(Konstantenbeleg.java:72)
at de.de.test.test1.worker.zv.WorkerZVDZService. sendFiles(WorkerZVDZService.java:119)
at de.de.test.test1.worker.zv.WorkerZV.workJob(WorkerZV.java:73)
at de.de.test.test1.listener.action.scan. MyScanJobListener.finalzeScan(MyScanJobListener.java:65)
at de.de.test.test1.listener.action.scan. MyScanJobListener.scanJobNoMoreEvents(MyScanJobListener.java:156)
at jp.co.ricoh.dsdk.core.function.ScanJobImpl.fire(Unknown Source)
at jp.co.ricoh.dsdk.core.function.ScanJobImpl.access$200(Unknown Source)
at jp.co.ricoh.dsdk.core.function.ScanJobImpl$JobEventHandler.exec(Unknown Source)
at jp.co.ricoh.dsdk.core.manager.EventRunner$Dispatcher.processEvent(Unknown Source)
at jp.co.ricoh.dsdk.core.manager.EventRunner$Dispatcher.run(Unknown Source)