Uploaded image for project: 'Nuxeo Enhanced Viewer'
  1. Nuxeo Enhanced Viewer
  2. NEV-297

Fix NPE in PDFBox logs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.1.0, 10.2.0
    • Fix Version/s: 10.3.0, nuxeo-11.0.0
    • Component/s: ARender

      Description

      We want the NPE present in PDFBox to be fixed, see the logs below:

      PDFBOX - 2020-06-29 15:40:08,306 ERROR [http-nio-0.0.0.0-8899-exec-1] o.a.c.c.C.[.[.[.[dispatcherServlet] [DirectJDKLog.java:175] Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
      java.lang.NullPointerException: null
      	at com.arondor.arender.micro.services.rendition.pdf.PositionTextParser$PCProvider.get(PositionTextParser.java:110)
      	at com.arondor.arender.micro.services.rendition.pdf.PositionTextParser$PCProvider.get(PositionTextParser.java:88)
      	at com.arondor.arender.micro.services.rendition.pdf.PageContentService.getPageContents(PageContentService.java:201)
      	at com.arondor.arender.micro.services.rendition.pdf.PdfDocument.getPageContents(PdfDocument.java:486)
      	at com.arondor.arender.micro.services.pdfbox.PdfboxApplication.getPageContents(PdfboxApplication.java:156)
      	at jdk.internal.reflect.GeneratedMethodAccessor169.invoke(Unknown Source)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
      	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
      	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
      	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888)
      	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793)
      	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
      	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
      	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
      	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
      	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
      	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)
      	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
      	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
      	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118)
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
      	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
      	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
      	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:158)
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
      	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
      ...
      PDFBOX - 2020-06-29 15:44:30,977 INFO [per-document-executor6f86d0a1-7f56-4639-9135-99398c06cdec-0] c.a.a.m.s.r.p.PdfDocument [PdfDocument.java:407] End of parse : closing document b64_ZGlnZXN0PWNjMDUxNWNjMmQ0YjIwZjE3M2EyNTYyYTU1OTg1YzdmJmRvY0lkPTJkMTRiMThlLTUwNWEtNGVhOS1hNDRjLTZkYzEwNmQ0ZjM3NiZyZXBvc2l0b3J5PWRlZmF1bHQmdXNlcm5hbWU9Z3NwYWxkaW5n.
      PDFBOX - 2020-06-29 15:44:30,977 INFO [http-nio-0.0.0.0-8899-exec-2] c.a.a.m.s.r.p.PdfDocument [PdfDocument.java:202] Parsing of Document id=b64_ZGlnZXN0PWNjMDUxNWNjMmQ0YjIwZjE3M2EyNTYyYTU1OTg1YzdmJmRvY0lkPTJkMTRiMThlLTUwNWEtNGVhOS1hNDRjLTZkYzEwNmQ0ZjM3NiZyZXBvc2l0b3J5PWRlZmF1bHQmdXNlcm5hbWU9Z3NwYWxkaW5n done in 691ms
      PDFBOX - 2020-06-29 15:44:31,048 INFO [per-document-executor3f4c9017-c867-4803-a6f7-25f0ddd4b326-0] c.a.a.m.s.r.p.PdfDocument [PdfDocument.java:407] End of parse : closing document b64_ZGlnZXN0PWNjMDUxNWNjMmQ0YjIwZjE3M2EyNTYyYTU1OTg1YzdmJmRvY0lkPTJkMTRiMThlLTUwNWEtNGVhOS1hNDRjLTZkYzEwNmQ0ZjM3NiZyZXBvc2l0b3J5PWRlZmF1bHQmdXNlcm5hbWU9Z3NwYWxkaW5n.
      PDFBOX - 2020-06-29 15:44:31,048 INFO [http-nio-0.0.0.0-8899-exec-4] c.a.a.m.s.r.p.PdfDocument [PdfDocument.java:202] Parsing of Document id=b64_ZGlnZXN0PWNjMDUxNWNjMmQ0YjIwZjE3M2EyNTYyYTU1OTg1YzdmJmRvY0lkPTJkMTRiMThlLTUwNWEtNGVhOS1hNDRjLTZkYzEwNmQ0ZjM3NiZyZXBvc2l0b3J5PWRlZmF1bHQmdXNlcm5hbWU9Z3NwYWxkaW5n done in 642ms
      PDFBOX - 2020-06-29 15:44:31,057 WARN [http-nio-0.0.0.0-8899-exec-4] c.a.a.m.s.r.p.PdfDocument [PdfDocument.java:450] No bookmarks provided, returning empty List
      PDFBOX - 2020-06-29 15:44:31,635 ERROR [http-nio-0.0.0.0-8899-exec-2] o.a.c.c.C.[.[.[.[dispatcherServlet] [DirectJDKLog.java:175] Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
      java.lang.NullPointerException: null
      PDFBOX - 2020-06-29 15:44:31,905 ERROR [http-nio-0.0.0.0-8899-exec-5] o.a.c.c.C.[.[.[.[dispatcherServlet] [DirectJDKLog.java:175] Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
      java.lang.NullPointerException: null
      PDFBOX - 2020-06-29 15:44:31,962 ERROR [http-nio-0.0.0.0-8899-exec-7] o.a.c.c.C.[.[.[.[dispatcherServlet] [DirectJDKLog.java:175] Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
      java.lang.NullPointerException: null
      PDFBOX - 2020-06-29 15:44:32,212 ERROR [http-nio-0.0.0.0-8899-exec-1] o.a.c.c.C.[.[.[.[dispatcherServlet] [DirectJDKLog.java:175] Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
      java.lang.NullPointerException: null
      PDFBOX - 2020-06-29 15:44:32,503 ERROR [http-nio-0.0.0.0-8899-exec-8] o.a.c.c.C.[.[.[.[dispatcherServlet] [DirectJDKLog.java:175] Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
      java.lang.NullPointerException: null
      PDFBOX - 2020-06-29 15:44:32,814 ERROR [http-nio-0.0.0.0-8899-exec-4] o.a.c.c.C.[.[.[.[dispatcherServlet] [DirectJDKLog.java:175] Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
      java.lang.NullPointerException: null
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty