0
Planned

java.lang.NoClassDefFoundError: com/twelvemonkeys/image/InverseColorMapIndexColorModel

diephoenix 3 years ago updated by Noah Haskell 3 years ago 7

Hi, On scanning I get this error:


20160911 00:28:07 [Scanner thread] INFO com.ubooquity.fileformat.pdf.b - Reading metadata of pdf file: H:\temp\My Books\My Books\Fiction\Wings\03 (18009)\03 - Wings.pdf

20160911 00:28:07 [Scanner thread] ERROR com.ubooquity.Ubooquity - Uncaught exception on thread: Scanner thread
java.lang.NoClassDefFoundError: com/twelvemonkeys/image/InverseColorMapIndexColorModel
at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImage10MetadataCleaner.cleanMetadata(Unknown Source) ~[imageio-jpeg-3.1.0.jar.941688140809773937.tmp:3.1.0]
at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader.getImageMetadata(Unknown Source) ~[imageio-jpeg-3.1.0.jar.941688140809773937.tmp:3.1.0]
at org.apache.pdfbox.filter.DCTFilter.getNumChannels(DCTFilter.java:271) ~[pdfbox-2.0.0.jar.2923209612619892780.tmp:2.0.0]
at org.apache.pdfbox.filter.DCTFilter.decode(DCTFilter.java:69) ~[pdfbox-2.0.0.jar.2923209612619892780.tmp:2.0.0]
at org.apache.pdfbox.cos.COSInputStream.create(COSInputStream.java:69) ~[pdfbox-2.0.0.jar.2923209612619892780.tmp:2.0.0]
at org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:163) ~[pdfbox-2.0.0.jar.2923209612619892780.tmp:2.0.0]
at org.apache.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:235) ~[pdfbox-2.0.0.jar.2923209612619892780.tmp:2.0.0]
at org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.<init>(PDImageXObject.java:147) ~[pdfbox-2.0.0.jar.2923209612619892780.tmp:2.0.0]
at org.apache.pdfbox.pdmodel.graphics.PDXObject.createXObject(PDXObject.java:70) ~[pdfbox-2.0.0.jar.2923209612619892780.tmp:2.0.0]
at org.apache.pdfbox.pdmodel.PDResources.getXObject(PDResources.java:385) ~[pdfbox-2.0.0.jar.2923209612619892780.tmp:2.0.0]
at org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:53) ~[pdfbox-2.0.0.jar.2923209612619892780.tmp:2.0.0]
at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:815) ~[pdfbox-2.0.0.jar.2923209612619892780.tmp:2.0.0]
at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:472) ~[pdfbox-2.0.0.jar.2923209612619892780.tmp:2.0.0]
at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:446) ~[pdfbox-2.0.0.jar.2923209612619892780.tmp:2.0.0]
at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:149) ~[pdfbox-2.0.0.jar.2923209612619892780.tmp:2.0.0]
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:189) ~[pdfbox-2.0.0.jar.2923209612619892780.tmp:2.0.0]
at org.apache.pdfbox.rendering.PDFRenderer.renderPage(PDFRenderer.java:208) ~[pdfbox-2.0.0.jar.2923209612619892780.tmp:2.0.0]
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:139) ~[pdfbox-2.0.0.jar.2923209612619892780.tmp:2.0.0]
at org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:94) ~[pdfbox-2.0.0.jar.2923209612619892780.tmp:2.0.0]
at com.ubooquity.fileformat.pdf.b.a(SourceFile:71) ~[Ubooquity.jar:1.10.1]
at com.ubooquity.fileformat.pdf.b.a(SourceFile:44) ~[Ubooquity.jar:1.10.1]
at com.ubooquity.data.feeder.a.b(SourceFile:382) ~[Ubooquity.jar:1.10.1]
at com.ubooquity.data.feeder.a.a(SourceFile:212) ~[Ubooquity.jar:1.10.1]
at com.ubooquity.data.feeder.a.b(SourceFile:316) ~[Ubooquity.jar:1.10.1]
at com.ubooquity.data.feeder.a.a(SourceFile:35) ~[Ubooquity.jar:1.10.1]
at com.ubooquity.data.feeder.a$1.run(SourceFile:116) ~[Ubooquity.jar:1.10.1]
at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_51]
Caused by: java.lang.ClassNotFoundException: Failure to load: com.twelvemonkeys.image.InverseColorMapIndexColorModel
at com.ubooquity.e.c.loadClass(SourceFile:992) ~[Ubooquity.jar:1.10.1]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_51]
... 27 common frames omitted


Both ubooquity and java on latest version, Windows 10 PC.

Under review

Could you send me the PDF file so that I can reproduce the problem on my side and investigate ?

I got your file and I have the same problem, so I'll be able to investigate this week-end.


Technically your Java version is one year old, but this is completely unrelated to this problem. There is no reason (at least for Ubooquity) to upgrade your Windows JVM.


Planned

Problem found (some missing dependency).

It will be fixed in the next version of Ubooquity.

I too am having this issue.

Since you are currently working on ubooquity 2.0 (which you have stated might not be out for a while), is there any chance you could issue an ubooquity 1.10.2 build with this fixed, or possibly explain a way to fix this issue ourselves? eg: is there a way to add the compiled class to the jar? (I'm not a java programmer, sorry).

Thanks.

Thanks! It works perfectly!