title: null pointer exception with Grails rendering plugin
body: <p>I have some problems when using rendering plugin.It always returns me a null pointer exception.I saw severeal similar problems but I didn't find where I'm wrong.</p>
  
  <ul>
  <li><p><strong>Code of my template : /views/appRetail/_report.gsp</strong></p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org /TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;meta name="description" content=""&gt;
      &lt;meta name="author" content=""&gt;
      &lt;title&gt;Welcome to Production !&lt;/title&gt;
  &lt;/head&gt;
  &lt;html&gt;
     &lt;body&gt;
      REPORT
     &lt;/body&gt;
  &lt;/html&gt;
  </code></pre></li>
  <li><p><strong>Code of My controller :</strong></p>
  
  <pre><code>class AppRetailController {
  
    def pdfRenderingService
  
    def renderFormPDF() {
  
      def apps = App.findAll()
      new File("test.pdf").withOutputStream { outputStream -&gt;
          pdfRenderingService.render(template: '/appRetail/report', model: [apps:apps], outputStream)
      }
    }
  }
  </code></pre></li>
  </ul>
  
  <p>Here is the stacktrace :</p>
  
  <pre><code>2015-04-17 10:31:54,552 [http-bio-8080-exec-4] ERROR   errors.GrailsExceptionResolver  - NullPointerException occurred when   processing request: [POST] /toolprod/appRetail/renderFormPDF
  Stacktrace follows:
  Message: null
  Line | Method
  -&gt;&gt; 1281 | getPublicDeclaredMethods in java.beans.Introspector
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
  |   1141 | getTargetMethodInfo      in     ''
  |    416 | getBeanInfo . . . . . .  in     ''
  |    163 | getBeanInfo              in     ''
  |     31 | init . . . . . . . . . . in     grails.plugin.rendering.document.RenderEnvironment
  |     68 | with                     in     ''
  |     60 | with . . . . . . . . . . in     ''
  |     65 | generateXhtml            in     grails.plugin.rendering.document.XhtmlDocumentService
  |     35 | createDocument . . . . . in     ''
  |     36 | render                   in grails.plugin.rendering.RenderingService
  |    348 | doCall . . . . . . . . . in     toolprod.AppRetailController$_renderFormPDF_closure1
  |    347 | renderFormPDF            in toolprod.AppRetailController
  |    198 | doFilter . . . . . . . . in grails.plugin.cache.web.filter.PageFragmentCachingFilter
  |     63 | doFilter                 in     grails.plugin.cache.web.filter.AbstractFilter
  |     82 | doFilterInternal . . . . in com.linkedin.grails.profiler.ProfilerFilter
  |   1145 | runWorker                in java.util.concurrent.ThreadPoolExecutor
  |    615 | run . . . . . . . . . .  in java.util.concurrent.ThreadPoolExecutor$Worker
  ^    744 | run                      in java.lang.Thread
  </code></pre>
  
  <p>Here is versions I used :</p>
  
  <ul>
  <li>Plugin version : compile ":rendering:1.0.0"</li>
  <li>Grails version : 2.5.0</li>
  </ul>