Hello,
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.
Application works well till it reaches the point where it has to generate html report with calling runAndRender method.
So I started debugging it and found out that the error happens in this line (Null Pointer Exception) :
And here is the comparison of IRunAndRenderTask task structure from running application in local or remote mode:
Local:
Remote:
As you can see the difference is in EmitterID and format option.
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.
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.
Application works well till it reaches the point where it has to generate html report with calling runAndRender method.
birtReportService.runAndRender(reportName, reportParams, htmlOptions)
So I started debugging it and found out that the error happens in this line (Null Pointer Exception) :
task.run()
And here is the comparison of IRunAndRenderTask task structure from running application in local or remote mode:
Local:
"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
Remote:
"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
As you can see the difference is in EmitterID and format option.
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.