Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. 2011-05-14 18:14:12,652 [http-8080-1] ERROR pdf.PdfService  - groovy.lang.MissingMethodException: No signature of method: org.xhtmlrenderer.pdf.ITextRenderer.setDocumentFromString() is applicable for argument types: (java.lang.String, java.lang.String) values: [
  2. <title>Cats!</title>
  3. <meta equiv="Content-Type" content="text/html; charset=UTF-8">
  4. <style><br />      .sample_table {<br />        width:60%;<br />        background-color:#b2b2b2;<br />      }<br />      .sample_table th {<br />        text-align:center;<br />        text-decoration:underline;<br />      }<br />      .sample_table td {<br />        padding:7px;<br />        background-color: #fff;<br />      }<br />      .small_text {<br />        font-size:8pt;<br />      }<br />    </style>
  5. <table>
  6.    <thead>
  7.        <tr>
  8.  
  9.            <th class="sortable"><a href="http://www.blogger.com/ScaffoldingBug/pdf/pdfForm?sort=id&amp;order=asc">Id</a></th>
  10.  
  11.            <th class="sortable"><a href="http://www.blogger.com/ScaffoldingBug/pdf/pdfForm?sort=name&amp;order=asc">Name</a></th>
  12.  
  13.            <th class="sortable"><a href="http://www.blogger.com/ScaffoldingBug/pdf/pdfForm?sort=age&amp;order=asc">Age</a></th>
  14.  
  15.            <th class="sortable"><a href="http://www.blogger.com/ScaffoldingBug/pdf/pdfForm?sort=lives&amp;order=asc">Lives</a></th>
  16.  
  17.        </tr>
  18.    </thead>
  19.    <tbody>
  20.  
  21.    </tbody>
  22. </table>
  23.  
  24. , http://localhost:8080/ScaffoldingBug]
  25. Possible solutions: setDocumentFromString(java.lang.String)
  26. there was a problem with PDF generation java.lang.NullPointerException: Cannot get property 'length' on null object
  27. 2011-05-14 18:14:12,740 [http-8080-1] ERROR errors.GrailsExceptionResolver  - Exception occurred when processing request: [POST] /ScaffoldingBug/pdf/pdfForm - parameters:
  28. template: /cat/table
  29. printPdf: Export to PDF via PDF plugin
  30. filename: cats.pdf
  31. catInstanceList: [Sasha, Pandora, Minino]
  32. Stacktrace follows:
  33. org.codehaus.groovy.grails.web.servlet.mvc.exceptions.CannotRedirectException: Cannot issue a redirect(..) here. The response has already been committed either by another redirect or by directly writing to the response.
  34.    at pdf.PdfController$_closure3.doCall(PdfController.groovy:73)
  35.    at pdf.PdfController$_closure3.doCall(PdfController.groovy)
  36.    at java.lang.Thread.run(Thread.java:662)