Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-87

PDFBox fill the log files with ClassCastException

    XMLWordPrintable

    Details

      Description

      See:

      https://issues.apache.org/jira/browse/PDFBOX-976

      Need to upgrade to PDFBox 1.6.0

      2012-01-21 12:33:47,327 [TP-Processor3] WARN PDFStreamEngine - java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Float
      java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Float
      at org.apache.pdfbox.pdmodel.font.PDFont.getFontWidth(PDFont.java:786)
      at org.apache.pdfbox.pdmodel.font.PDSimpleFont.getFontWidth(PDSimpleFont.java:191)
      at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:407)
      at org.apache.pdfbox.util.operator.ShowText.process(ShowText.java:45)
      at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
      at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
      at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
      at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
      at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
      at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
      at org.olat.core.commons.services.thumbnail.impl.PDFToThumbnail.generateThumbnail(PDFToThumbnail.java:82)
      at org.olat.core.commons.services.thumbnail.impl.ThumbnailServiceImpl.generateThumbnail(ThumbnailServiceImpl.java:82)
      at org.olat.commons.modules.bc.meta.MetaInfoFileImpl.getThumbnailInfo(MetaInfoFileImpl.java:881)
      at org.olat.commons.modules.bc.meta.MetaInfoFileImpl.getThumbnail(MetaInfoFileImpl.java:842)
      at org.olat.core.commons.modules.bc.commands.CmdServeThumbnailResource.execute(CmdServeThumbnailResource.java:55)
      at org.olat.core.commons.modules.bc.FolderRunController.event(FolderRunController.java:384)
      at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:198)
      at org.olat.core.gui.components.Component$1.run(Component.java:168)
      at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:84)
      at org.olat.core.gui.components.Component.fireEvent(Component.java:165)
      at org.olat.core.commons.modules.bc.components.FolderComponent.doDispatchRequest(FolderComponent.java:171)
      at org.olat.core.gui.components.Component.dispatchRequest(Component.java:124)
      at org.olat.core.gui.components.Window.doDispatchToComponent(Window.java:1233)
      at org.olat.core.gui.components.Window.dispatchRequest(Window.java:640)
      at org.olat.core.gui.components.Window.doDispatchRequest(Window.java:215)
      at org.olat.core.gui.components.Component.dispatchRequest(Component.java:124)
      at org.olat.dispatcher.AuthenticatedDispatcher.execute(AuthenticatedDispatcher.java:331)
      at org.olat.core.dispatcher.DispatcherAction.execute(DispatcherAction.java:154)
      at org.olat.core.servlets.OLATServlet.doPost(OLATServlet.java:133)
      at org.olat.core.servlets.OLATServlet.doGet(OLATServlet.java:107)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
      at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
      at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
      at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
      at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
      at java.lang.Thread.run(Thread.java:679)

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            srosse Stéphane Rossé
            Tester:
            Sergio Trentini
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: