Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
RunAndRender - Null Pointer Exception
Migrateduser
Hello, <br />
<br />
Two days ago it was my first attempt of deploying grails aplication (Birt plugin included) on Tomcat server. While deploying my application on STS embedded TC Server (local host) there werent any problems doing it. The story turns out different when I produce a war file (-grails war) and deploy it on remote Tomcat server. <br />
<br />
Application works well till it reaches the point where it has to generate html report with calling runAndRender method. <pre class='_prettyXprint _lang-auto _linenums:0'>birtReportService.runAndRender(reportName, reportParams, htmlOptions)</pre>
<br />
So I started debugging it and found out that the error happens in this line (Null Pointer Exception) : <br />
<pre class='_prettyXprint _lang-auto _linenums:0'>task.run()</pre>
<br />
And here is the comparison of <strong class='bbc'>IRunAndRenderTask task </strong> structure from running application in local or remote mode:<br />
<br />
<strong class='bbc'>Local:</strong> <br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
"task" (pending)
cancelFlag false
dataSource null
dataSourceReportlet null
defaultValues HashMap<K,V> (id=610)
emitterID "org.eclipse.birt.report.engine.emitter.html" (id=611)
engine ReportEngine (id=377)
executionContext ExecutionContext (id=612)
format "html" (id=614)
inputValues HashMap<K,V> (id=615)
layoutEngine HTMLReportLayoutEngine (id=616)
log Logger (id=619)
pageHandler null
pagination "page-break-pagination" (id=624)
parameterChanged false
platformContext null
progressMonitor null
renderOptions HTMLRenderOption (id=415)
resourceLocator ResourceLocatorWrapper (id=630)
runningStatus 2
runValues HashMap<K,V> (id=633)
statusHandler null
taskID 32
taskType 3
timeZone JavaTimeZone (id=637)
ulocale ULocale (id=641)
userAcls null
</pre>
<br />
<strong class='bbc'>Remote:</strong><br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
"task" (pending)
cancelFlag false
dataSource null
dataSourceReportlet null
defaultValues HashMap<K,V> (id=409)
emitterID null
engine ReportEngine (id=410)
executionContext ExecutionContext (id=413)
format null
inputValues HashMap<K,V> (id=415)
layoutEngine null
log Logger (id=416)
pageHandler null
pagination null
parameterChanged false
platformContext null
progressMonitor null
renderOptions HTMLRenderOption (id=379)
resourceLocator ResourceLocatorWrapper (id=419)
runningStatus 0
runValues HashMap<K,V> (id=421)
statusHandler null
taskID 18
taskType 3
timeZone JavaTimeZone (id=422)
ulocale ULocale (id=424)
userAcls null
</pre>
As you can see the difference is in EmitterID and format option.<br />
I am stuck right now because I have no idea what is going wrong and how to debug deeper, so I would really appreciate any help you guys can give me.
Find more posts tagged with
Comments
There are no comments yet