使用ICEPdf解析PDF时出现java.lang.NoClassDefFoundError

Leech 发布于 2015/10/19 17:59
阅读 1K+
收藏 0

本人使用ICEPdf对PDF做解析,已经运行了很久,都没有问题,最近,每隔几天就会出现一次java.lang.NoClassDefFoundError异常,重新启动JVM后正常。错误信息如下所示:

java.lang.NoClassDefFoundError: Could not initialize class org.icepdf.core.pobjects.fonts.ofont.Font
    at org.icepdf.core.pobjects.fonts.FontFactory.getFont(FontFactory.java:132)
    at org.icepdf.core.util.Parser.getObject(Parser.java:417)
    at org.icepdf.core.util.LazyObjectLoader.loadObject(LazyObjectLoader.java:73)
    at org.icepdf.core.util.Library.getObject(Library.java:156)
    at org.icepdf.core.pobjects.Resources.getFont(Resources.java:133)
    at org.icepdf.core.util.content.AbstractContentParser.consume_Tf(AbstractContentParser.java:722)
    at org.icepdf.core.util.content.OContentParser.parseText(OContentParser.java:795)
    at org.icepdf.core.util.content.OContentParser.parse(OContentParser.java:180)
    at org.icepdf.core.pobjects.Page.init(Page.java:370)
    at org.icepdf.core.pobjects.Page.getViewText(Page.java:1399)
    at org.icepdf.core.pobjects.Document.getPageViewText(Document.java:1140)
    at com.powere2e.etc.kimberly.upload.parser.CenturyMartPoParser.parse(CenturyMartPoParser.java:48)
    at com.powere2e.etc.kimberly.upload.processor.JBLUploadProcessor.process(JBLUploadProcessor.java:54)
    at com.powere2e.etc.usd.UploadPlugin.process(UploadPlugin.java:101)
    at com.powere2e.etc.plugin.AbstractPlugin$1.process(AbstractPlugin.java:110)
    at com.powere2e.etc.thread.ETCRunnable.run(ETCRunnable.java:10)
    at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
    at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)

不知道哪位大神遇到过类似问题?

加载中
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部