Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-6638

Forward port to 7.8: Exceptions logged in terminal while trying to upload a PDF file with large lines.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 2.22.12
    • 2.24.00
    • None
    • None

    Description

      End-user does not see these exceptions on front-end. Front end behavior is without interruption.
      ------------------------------------------------------------
      1. Login to CMS
      2. Navigate to Documents >> assets and Upload a broken pdf

      Expected - PDF document should be loaded without any errors or hanging of application
      Actual - document is loaded successfully but below exceptions are thrown in the terminal

      [INFO] [talledLocalContainer] 26.09.2012 16:38:10 WARN [org.hippoecm.frontend.editor.plugins.resource.ResourceHelper.handlePdfAndSetHippoTextProperty():167] An exception occurred while trying to set Tika configuration: {}:
      [INFO] [talledLocalContainer] org.apache.tika.exception.TikaException: Unexpected SAX error
      [INFO] [talledLocalContainer] at org.apache.tika.utils.ParseUtils.getStringContent(ParseUtils.java:115)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.editor.plugins.resource.ResourceHelper.handlePdfAndSetHippoTextProperty(ResourceHelper.java:158)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.gallery.model.DefaultGalleryProcessor.makeImage(DefaultGalleryProcessor.java:299)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.gallery.GalleryWorkflowPlugin.createGalleryItem(GalleryWorkflowPlugin.java:159)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.gallery.GalleryWorkflowPlugin.access$100(GalleryWorkflowPlugin.java:70)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.gallery.GalleryWorkflowPlugin$UploadDialog.handleUploadItem(GalleryWorkflowPlugin.java:93)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.yui.upload.MultiFileUploadDialog$3.onFileUpload(MultiFileUploadDialog.java:91)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.yui.upload.FileUploadWidget.handleFileUpload(FileUploadWidget.java:237)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.yui.upload.FileUploadWidget.access$000(FileUploadWidget.java:51)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.yui.upload.FileUploadWidget$1.onFileUpload(FileUploadWidget.java:160)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.yui.upload.ajax.AjaxMultiFileUploadComponent$UploadBehavior.onRequest(AjaxMultiFileUploadComponent.java:68)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:157)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.PluginRequestCycleProcessor.processEvents(PluginRequestCycleProcessor.java:95)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1252)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.step(RequestCycle.java:1331)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.request(RequestCycle.java:546)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.ResourceRewriteFilter.doFilter(ResourceRewriteFilter.java:129)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:56)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      [INFO] [talledLocalContainer] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      [INFO] [talledLocalContainer] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      [INFO] [talledLocalContainer] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      [INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      [INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
      [INFO] [talledLocalContainer] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      [INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:662)
      [INFO] [talledLocalContainer] Caused by: org.apache.tika.sax.WriteOutContentHandler$WriteLimitReachedException
      [INFO] [talledLocalContainer] at org.apache.tika.sax.WriteOutContentHandler.characters(WriteOutContentHandler.java:120)
      [INFO] [talledLocalContainer] at org.apache.tika.sax.ContentHandlerDecorator.characters(ContentHandlerDecorator.java:146)
      [INFO] [talledLocalContainer] at org.apache.tika.sax.xpath.MatchingContentHandler.characters(MatchingContentHandler.java:81)
      [INFO] [talledLocalContainer] at org.apache.tika.sax.ContentHandlerDecorator.characters(ContentHandlerDecorator.java:146)
      [INFO] [talledLocalContainer] at org.apache.tika.sax.ContentHandlerDecorator.characters(ContentHandlerDecorator.java:146)
      [INFO] [talledLocalContainer] at org.apache.tika.sax.SafeContentHandler.access$001(SafeContentHandler.java:39)
      [INFO] [talledLocalContainer] at org.apache.tika.sax.SafeContentHandler$1.write(SafeContentHandler.java:61)
      [INFO] [talledLocalContainer] at org.apache.tika.sax.SafeContentHandler.filter(SafeContentHandler.java:113)
      [INFO] [talledLocalContainer] at org.apache.tika.sax.SafeContentHandler.characters(SafeContentHandler.java:151)
      [INFO] [talledLocalContainer] at org.apache.tika.sax.XHTMLContentHandler.characters(XHTMLContentHandler.java:261)
      [INFO] [talledLocalContainer] at org.apache.tika.sax.XHTMLContentHandler.characters(XHTMLContentHandler.java:287)
      [INFO] [talledLocalContainer] at org.apache.tika.parser.pdf.PDF2XHTML.writeString(PDF2XHTML.java:113)
      [INFO] [talledLocalContainer] at org.apache.pdfbox.util.PDFTextStripper.writeLine(PDFTextStripper.java:1819)
      [INFO] [talledLocalContainer] at org.apache.pdfbox.util.PDFTextStripper.writePage(PDFTextStripper.java:727)
      [INFO] [talledLocalContainer] at org.apache.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:442)
      [INFO] [talledLocalContainer] at org.apache.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:365)
      [INFO] [talledLocalContainer] at org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:321)
      [INFO] [talledLocalContainer] at org.apache.pdfbox.util.PDFTextStripper.getText(PDFTextStripper.java:241)
      [INFO] [talledLocalContainer] at org.apache.tika.parser.pdf.PDF2XHTML.process(PDF2XHTML.java:53)
      [INFO] [talledLocalContainer] at org.apache.tika.parser.pdf.PDFParser.parse(PDFParser.java:90)
      [INFO] [talledLocalContainer] at org.apache.tika.parser.pdf.PDFParser.parse(PDFParser.java:102)
      [INFO] [talledLocalContainer] at org.apache.tika.utils.ParseUtils.getStringContent(ParseUtils.java:112)
      [INFO] [talledLocalContainer] ... 38 more

      Attachments

        1. corrupt_pdf_file_testen.pdf
          585 kB
        2. test-tika.pdf
          282 kB
        3. tika-test.patch
          7 kB

        Issue Links

          Activity

            People

              jsheriff Junaidh Kadhar Sheriff
              obourgeois Olivier Bourgeois (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: