0

Uncaught Exception Error - java.lang.NoClassDefFoundError - while scanning

Tom Davies 3 years ago updated 3 years ago 2

I did something stupid... I was messing around with the Scan Exclusion Pattern, and just like the Help text says, I excluded my entire collection. So I removed the exclusion pattern and went to rescan my collection, and I get the error shown below.


I've stopped the Ubooquity server and restarted Ubooquity, and rescanned only to have it stop on the same file every time. This is strange because my files haven't changed. This file was scanned before in Ubooquity without a problem. It was probably scanned with an earlier version of Ubooquity though... I'm not sure.


Any suggestions for making it work?


20170307 17:49:24 [Scanner thread] INFO com.ubooquity.fileformat.pdf.b - Reading metadata of pdf file: M:\eBooks\Role Playing Games\Dungeons & Dragons\Downloaded\Basic D&D\Supplements\Eastern Countries Trail Map (Basic v4) (TSR09404).pdf
20170307 17:49:26 [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.6552165885348581995.tmp:3.1.0]
at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader.getImageMetadata(Unknown Source) ~[imageio-jpeg-3.1.0.jar.6552165885348581995.tmp:3.1.0]
at org.apache.pdfbox.filter.DCTFilter.getNumChannels(DCTFilter.java:271) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.filter.DCTFilter.decode(DCTFilter.java:69) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.cos.COSInputStream.create(COSInputStream.java:69) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:163) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:235) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.<init>(PDImageXObject.java:147) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.pdmodel.graphics.PDXObject.createXObject(PDXObject.java:70) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.pdmodel.PDResources.getXObject(PDResources.java:385) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:53) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:815) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:472) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:446) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:149) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:189) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.rendering.PDFRenderer.renderPage(PDFRenderer.java:208) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:139) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:94) ~[pdfbox-2.0.0.jar.2492632753215782698.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_101]
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_101]
... 27 common frames omitted

I noticed something else strange. After I removed that problem file, the scan completed. It had to rescan my entire library. Now that it rescanned everything, I'm getting a lot of blank covers. I know these covers were OK before because I deliberately went through and fixed all of the files that had bad covers before. So what's going on here?

I cleared the comics database and rescanned. That seemed to clear up the bad covers. So I cleared the ebook database and rescanned, which cleared up the bad covers there too.


Strange that it didn't work the first time around.