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

Generating PDF file throws NumberFormatException

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.9.3
    • Fix Version/s: None
    • Component/s: Rwiki
    • Labels:
      None

      Description

      To throw an NFE:
      1. Add the RWiki tool to a site.
      2. Click on the Info button.
      3. Under Views and Feeds, click on the PDF link.

      I get the following stack trace whenever I click on that link:

      2014-11-19 08:27:58,855 ERROR ajp-bio-8009-exec-7 org.apache.fop.fo.FOTreeBuilder - javax.xml.transform.TransformerException: java.lang.NumberFormatException: For input string: ":0"
      java.lang.RuntimeException: java.lang.NumberFormatException: For input string: ":0"
      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:435)
      at uk.ac.cam.caret.sakai.rwiki.component.service.impl.RWikiObjectServiceImpl$2.handleAccess(RWikiObjectServiceImpl.java:1507)
      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:304)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:695)
      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:224)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
      at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:193)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:300)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      at java.lang.Thread.run(Thread.java:662)
      2014-11-19 08:27:58,858 WARN ajp-bio-8009-exec-7 uk.ac.cam.caret.sakai.rwiki.component.service.impl.RWikiObjectServiceImpl - Error getting wiki page via access :/wiki/site/2fdf8f24-2bd2-48a7-81a8-98d0c8c8d88f/home.pdf
      2014-11-19 08:27:58,858 WARN ajp-bio-8009-exec-7 uk.ac.cam.caret.sakai.rwiki.access.WikiAccessServlet - dispatch(): exception:
      java.lang.RuntimeException: /wiki/site/2fdf8f24-2bd2-48a7-81a8-98d0c8c8d88f/home.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:304)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:695)
      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:224)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
      at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:193)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:300)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.RuntimeException: Failed to serialise java.lang.NumberFormatException: For input string: ":0"
      at uk.ac.cam.caret.sakai.rwiki.component.service.impl.XSLTEntityHandler.outputContent(XSLTEntityHandler.java:442)
      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.NumberFormatException: For input string: ":0"
      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:435)
      ... 24 more

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  bjones86 Brian Jones
                  Reporter:
                  bjpeter BJ Peter DeLaCruz (Inactive)
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration