javax.imageio.IIOException: Error reading PNG metadata

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via incubator-pdfbox-users by Andreas Lehmkuehler, 4 months ago
via pdfbox-users by Andreas Lehmkuehler, 1 year ago
via pdfbox-users by Andreas Lehmkuehler, 1 year ago
via GitHub by myrmoteras
, 2 months ago
Error skipping PNG metadata
via https://bugzilla.redhat.com/bugzilla/ by Marius Andreiana, 1 year ago
javax.imageio.IIOException: Error reading PNG metadata
at java.io.DataInputStream.readUTF(DataInputStream.java:612)
at javax.imageio.stream.ImageInputStreamImpl.readUTF(ImageInputStreamImpl.java:309)
at com.sun.imageio.plugins.png.PNGImageReader.parse_iTXt_chunk(PNGImageReader.java:443)
at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:652)
at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1314)
at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1601)
at javax.imageio.ImageIO.read(ImageIO.java:1400)
at javax.imageio.ImageIO.read(ImageIO.java:1286)
at org.apache.pdfbox.examples.pdmodel.AddImageToPDF.createPDFFromImage(AddImageToPDF.java:84)
at org.apache.pdfbox.examples.pdmodel.AddImageToPDF.main(AddImageToPDF.java:127)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 4 months ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.