-
Bug
-
Resolution: Duplicate
-
P4
-
1.4.0
-
generic
-
generic
The ImageReader.readAll() method fails in JPEG but all other Plugin's are supporting the same . The Sample code is attached.The following Exception is thrown while running the sample code
javax.imageio.IIOException: Improper call to JPEG library in state 202
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImageHeader(Native Method)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readHeader(JPEGImageReader.java:313)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:502)
at javax.imageio.ImageReader.readAll(ImageReader.java:1135)
at ImageRead.actionPerformed(ImageRead.java:100)
at java.awt.Button.processActionEvent(Button.java:354)
at java.awt.Button.processEvent(Button.java:327)
at java.awt.Component.dispatchEventImpl(Component.java:3460)
at java.awt.Component.dispatchEvent(Component.java:3327)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:437)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:140)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:126)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:121)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
when a png Image is used instead the Image is loaded perfectly
javax.imageio.IIOException: Improper call to JPEG library in state 202
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImageHeader(Native Method)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readHeader(JPEGImageReader.java:313)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:502)
at javax.imageio.ImageReader.readAll(ImageReader.java:1135)
at ImageRead.actionPerformed(ImageRead.java:100)
at java.awt.Button.processActionEvent(Button.java:354)
at java.awt.Button.processEvent(Button.java:327)
at java.awt.Component.dispatchEventImpl(Component.java:3460)
at java.awt.Component.dispatchEvent(Component.java:3327)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:437)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:140)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:126)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:121)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
when a png Image is used instead the Image is loaded perfectly
- duplicates
-
JDK-4418765 JPEG reader doesn't detect out-of-range image index when reading
-
- Resolved
-