Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-22310

Rwiki fails to render PDF view that contain images on OpenJDK

    XMLWordPrintable

Details

    • Bug
    • Status: RESOLVED
    • Major
    • Resolution: Incorporated
    • 2.9.0
    • None
    • Rwiki
    • None

    Description

      If you have a wiki page that contains an external link (eg to http://sakaiproject.org) and attempt to get the PDF version (in the Info tab) then under Open JDK you will get a 500 error back and the following stack trace:

      2012-06-21 17:33:39,579 WARN http-bio-8080-exec-8 uk.ac.cam.caret.sakai.rwiki.access.WikiAccessServlet - dispatch(): exception:
      java.lang.RuntimeException: /wiki/site/f91b66dd-1022-434b-93b1-c813da574063/help page.pdf
      at uk.ac.cam.caret.sakai.rwiki.component.service.impl.RWikiObjectServiceImpl$2.handleAccess(RWikiObjectServiceImpl.java:1572)
      at uk.ac.cam.caret.sakai.rwiki.access.WikiAccessServlet.dispatch(WikiAccessServlet.java:164)
      at uk.ac.cam.caret.sakai.rwiki.access.WikiAccessServlet.doGet(WikiAccessServlet.java:117)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:659)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.RuntimeException: Failed to serialise java.lang.NullPointerException
      at uk.ac.cam.caret.sakai.rwiki.component.service.impl.XSLTEntityHandler.outputContent(XSLTEntityHandler.java:437)
      at uk.ac.cam.caret.sakai.rwiki.component.service.impl.RWikiObjectServiceImpl$2.handleAccess(RWikiObjectServiceImpl.java:1507)
      ... 23 more
      Caused by: java.lang.RuntimeException: java.lang.NullPointerException
      at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3418)
      at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:389)
      at uk.ac.cam.caret.sakai.rwiki.component.service.impl.XSLTEntityHandler.outputContent(XSLTEntityHandler.java:430)
      ... 24 more

      This doesn't happen under the Oracle JDK.

      Gliffy Diagrams

        Zeplin

          Attachments

            Issue Links

              Activity

                People

                  Unassigned Unassigned
                  buckett Matthew Buckett
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                    Created:
                    Updated:
                    Resolved:

                    Git Integration