Hello all,

 

I’m getting the following error while trying to view a .jp2 that was converted from a grayscale .tiff … any ideas?

 

ERROR java.lang.RuntimeException: Invalid magic value for PBM/PGM/PPM file.

java.lang.RuntimeException: Invalid magic value for PBM/PGM/PPM file.

                at com.sun.media.jai.codecimpl.PNMImage.<init>(PNMImageDecoder.java:110)

                at com.sun.media.jai.codecimpl.PNMImageDecoder.decodeAsRenderedImage(PNMImageDecoder.java:61)

                at com.sun.media.jai.codec.ImageDecoderImpl.decodeAsRenderedImage(ImageDecoderImpl.java:148)

                at gov.lanl.adore.djatoka.io.reader.PNMReader.open(PNMReader.java:76)

                at gov.lanl.adore.djatoka.kdu.KduExtractExe.process(KduExtractExe.java:238)

                at gov.lanl.adore.djatoka.DjatokaExtractProcessor.extractImage(DjatokaExtractProcessor.java:205)

                at gov.lanl.adore.djatoka.DjatokaExtractProcessor.extractImage(DjatokaExtractProcessor.java:129)

                at gov.lanl.adore.djatoka.openurl.OpenURLJP2KService.resolve(OpenURLJP2KService.java:234)

                at org.oclc.oomRef.OpenURLRequestProcessorImpl.resolve(OpenURLRequestProcessorImpl.java:82)

                at gov.lanl.adore.djatoka.openurl.OpenURLServlet.doGet(OpenURLServlet.java:121)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)

                at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)

                at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)

                at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)

                at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)

                at java.lang.Thread.run(Thread.java:662)

 

Michael Reece

Digital Collections

Joyner Library

East Carolina University

p: 252.328.2897

e: reecem@ecu.edu