Problems with openReportDesign() [message #95733] |
Wed, 30 November 2005 15:21 |
Eclipse User |
|
|
|
Originally posted by: fsamland.web.de
Hi all,
I want to integrate BIRT into a webapp so firts of all I tested the
RunReport example. This works fine.
After that I implmented a own class with the same functionality as the
RunReport.run(...) method.
All look good until I reached
report = engine.openReportDesign( reportName);
this end's up in a java.lang.ExceptionInInitializerError with the
stacktrace at the end of the mail.
I used Tomcat4.1 BIRT 1.0.1. All important jars are in tomcat endorsed
directory.
It look like problem with internationalization ( which I don't use)
if this is a known problem, when will it be solved? If not is the a known
workaround?
Thanx
Friedbert
java.lang.ExceptionInInitializerError
at
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:82)
at
org.eclipse.birt.report.engine.api.ReportEngine.openReportDe sign(ReportEngine.java:216)
at
de.lbsbayern.rechenkern.statistik.reporting.BirtReportExecut er.run(BirtReportExecuter.java:70)
at
de.lbsbayern.rechenkern.statistik.action.ReportAufrufeAction .execute(ReportAufrufeAction.java:26)
at
org.apache.struts.action.RequestProcessor.processActionPerfo rm(RequestProcessor.java:419)
at
org.apache.struts.action.RequestProcessor.process(RequestPro cessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet .java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet. java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardCont ext.java:2416)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error DispatcherValve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapte r.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:601)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.processConnection(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp oint.java:565)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.NullPointerException
at java.util.ResourceBundle.getBundle(ResourceBundle.java:659)
at org.eclipse.birt.core.i18n.ResourceHandle.(ResourceHandle.ja va:80)
at
org.eclipse.birt.report.engine.i18n.EngineResourceHandle.(En gineResourceHandle.java:42)
at
org.eclipse.birt.report.engine.api.EngineException.(EngineEx ception.java:25)
|
|
|
Re: Problems with openReportDesign() [message #95838 is a reply to message #95733] |
Wed, 30 November 2005 22:54 |
|
Friedbert,
This looks like it is failing to find the report file.
Make sure you have BIRT home set and verify report location.
Jason Weathersby
BIRT PMC
"Friedbert Samland" <fsamland@web.de> wrote in message
news:38846e8bc34683363914f8cca31eb9aa$1@www.eclipse.org...
> Hi all,
> I want to integrate BIRT into a webapp so firts of all I tested the
> RunReport example. This works fine.
> After that I implmented a own class with the same functionality as the
> RunReport.run(...) method.
> All look good until I reached report = engine.openReportDesign(
> reportName);
> this end's up in a java.lang.ExceptionInInitializerError with the
> stacktrace at the end of the mail.
> I used Tomcat4.1 BIRT 1.0.1. All important jars are in tomcat endorsed
> directory.
> It look like problem with internationalization ( which I don't use)
> if this is a known problem, when will it be solved? If not is the a known
> workaround?
>
> Thanx Friedbert
>
> java.lang.ExceptionInInitializerError
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:82)
> at
> org.eclipse.birt.report.engine.api.ReportEngine.openReportDe sign(ReportEngine.java:216)
> at
> de.lbsbayern.rechenkern.statistik.reporting.BirtReportExecut er.run(BirtReportExecuter.java:70)
> at
> de.lbsbayern.rechenkern.statistik.action.ReportAufrufeAction .execute(ReportAufrufeAction.java:26)
> at
> org.apache.struts.action.RequestProcessor.processActionPerfo rm(RequestProcessor.java:419)
> at
> org.apache.struts.action.RequestProcessor.process(RequestPro cessor.java:224)
> at org.apache.struts.action.ActionServlet.process(ActionServlet .java:1196)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet. java:432)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:193)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:256)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
> at
> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardCont ext.java:2416)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:180)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error DispatcherValve.java:171)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:172)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:174)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
> at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapte r.java:223)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:601)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.processConnection(Http11Protocol.java:392)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp oint.java:565)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:619)
> at java.lang.Thread.run(Thread.java:534)
> Caused by: java.lang.NullPointerException
> at java.util.ResourceBundle.getBundle(ResourceBundle.java:659)
> at org.eclipse.birt.core.i18n.ResourceHandle.(ResourceHandle.ja va:80)
> at
> org.eclipse.birt.report.engine.i18n.EngineResourceHandle.(En gineResourceHandle.java:42)
> at
> org.eclipse.birt.report.engine.api.EngineException.(EngineEx ception.java:25)
>
|
|
|
Re: Problems with openReportDesign() [message #95897 is a reply to message #95838] |
Thu, 01 December 2005 07:59 |
Eclipse User |
|
|
|
Originally posted by: fsamland.web.de
Jason,
thanx for your hint's. The report is now found but after setting Classpath
and BIRT_HOME
(eclipse\\plugins\\org.eclipse.birt.report.viewer_1.0.1\\bir t).
Only the method changed which threw the exception have look here:
java.lang.ExceptionInInitializerError
at
org.eclipse.birt.report.model.metadata.PropertyDefn.getDispl ayName(PropertyDefn.java:710)
at
org.eclipse.birt.report.model.metadata.PropertySorter.sort(P ropertySorter.java:89)
at
org.eclipse.birt.report.model.metadata.ObjectDefn.getPropert yIterator(ObjectDefn.java:191)
at
org.eclipse.birt.report.model.api.validators.StructureListVa lidator.doCheckStructureList(StructureListValidator.java:167 )
at
org.eclipse.birt.report.model.api.validators.StructureListVa lidator.validate(StructureListValidator.java:124)
at
org.eclipse.birt.report.model.validators.ValidationNode.perf orm(ValidationNode.java:121)
at
org.eclipse.birt.report.model.validators.ValidationExecutor. perform(ValidationExecutor.java:74)
at
org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2287)
at
org.eclipse.birt.report.model.elements.ReportDesign.semantic Check(ReportDesign.java:937)
at
org.eclipse.birt.report.model.parser.DesignParserHandler.end Document(DesignParserHandler.java:139)
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unkn own Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unkn own Source)
at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDi spatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDo cument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at
org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:88)
at
org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:153)
at
org.eclipse.birt.report.model.core.DesignSession.openDesign( DesignSession.java:157)
at
org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.java:90)
at
org.eclipse.birt.report.engine.parser.ReportParser.parse(Rep ortParser.java:83)
at
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:87)
at
org.eclipse.birt.report.engine.api.ReportEngine.openReportDe sign(ReportEngine.java:216)
at
de.lbsbayern.rechenkern.statistik.reporting.BirtReportExecut er.run(BirtReportExecuter.java:70)
at
de.lbsbayern.rechenkern.statistik.action.ReportAufrufeAction .execute(ReportAufrufeAction.java:26)
at
org.apache.struts.action.RequestProcessor.processActionPerfo rm(RequestProcessor.java:419)
at
org.apache.struts.action.RequestProcessor.process(RequestPro cessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet .java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet. java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardCont ext.java:2416)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error DispatcherValve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapte r.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:601)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.processConnection(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp oint.java:565)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.NullPointerException
at java.util.ResourceBundle.getBundle(ResourceBundle.java:659)
at
org.eclipse.birt.report.model.i18n.ThreadResources.(ThreadRe sources.java:86)
at
org.eclipse.birt.report.model.i18n.ModelMessages.(ModelMessa ges.java:40)
|
|
|
Re: Problems with openReportDesign() [message #96041 is a reply to message #95897] |
Thu, 01 December 2005 16:08 |
|
Friedbert,
Can you post your code? Are you setting a specific locale?
Jason
"Friedbert Samland" <fsamland@web.de> wrote in message
news:e61498daaa82f75b1f8235efa7f518c7$1@www.eclipse.org...
> Jason,
> thanx for your hint's. The report is now found but after setting Classpath
> and BIRT_HOME
> (eclipse\\plugins\\org.eclipse.birt.report.viewer_1.0.1\\bir t). Only the
> method changed which threw the exception have look here:
>
> java.lang.ExceptionInInitializerError
> at
> org.eclipse.birt.report.model.metadata.PropertyDefn.getDispl ayName(PropertyDefn.java:710)
> at
> org.eclipse.birt.report.model.metadata.PropertySorter.sort(P ropertySorter.java:89)
> at
> org.eclipse.birt.report.model.metadata.ObjectDefn.getPropert yIterator(ObjectDefn.java:191)
> at
> org.eclipse.birt.report.model.api.validators.StructureListVa lidator.doCheckStructureList(StructureListValidator.java:167 )
> at
> org.eclipse.birt.report.model.api.validators.StructureListVa lidator.validate(StructureListValidator.java:124)
> at
> org.eclipse.birt.report.model.validators.ValidationNode.perf orm(ValidationNode.java:121)
> at
> org.eclipse.birt.report.model.validators.ValidationExecutor. perform(ValidationExecutor.java:74)
> at
> org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2287)
> at
> org.eclipse.birt.report.model.elements.ReportDesign.semantic Check(ReportDesign.java:937)
> at
> org.eclipse.birt.report.model.parser.DesignParserHandler.end Document(DesignParserHandler.java:139)
> at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unkn own Source)
> at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unkn own Source)
> at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
> at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
> at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
> at
> org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDi spatcher.dispatch(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDo cument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at
> org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:88)
> at
> org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:153)
> at
> org.eclipse.birt.report.model.core.DesignSession.openDesign( DesignSession.java:157)
> at
> org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.java:90)
> at
> org.eclipse.birt.report.engine.parser.ReportParser.parse(Rep ortParser.java:83)
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:87)
> at
> org.eclipse.birt.report.engine.api.ReportEngine.openReportDe sign(ReportEngine.java:216)
> at
> de.lbsbayern.rechenkern.statistik.reporting.BirtReportExecut er.run(BirtReportExecuter.java:70)
> at
> de.lbsbayern.rechenkern.statistik.action.ReportAufrufeAction .execute(ReportAufrufeAction.java:26)
> at
> org.apache.struts.action.RequestProcessor.processActionPerfo rm(RequestProcessor.java:419)
> at
> org.apache.struts.action.RequestProcessor.process(RequestPro cessor.java:224)
> at org.apache.struts.action.ActionServlet.process(ActionServlet .java:1196)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet. java:432)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:193)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:256)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
> at
> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardCont ext.java:2416)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:180)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error DispatcherValve.java:171)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:172)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:174)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
> at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapte r.java:223)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:601)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.processConnection(Http11Protocol.java:392)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp oint.java:565)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:619)
> at java.lang.Thread.run(Thread.java:534)
> Caused by: java.lang.NullPointerException
> at java.util.ResourceBundle.getBundle(ResourceBundle.java:659)
> at
> org.eclipse.birt.report.model.i18n.ThreadResources.(ThreadRe sources.java:86)
> at
> org.eclipse.birt.report.model.i18n.ModelMessages.(ModelMessa ges.java:40)
>
|
|
|
Re: Problems with openReportDesign() [message #96494 is a reply to message #96041] |
Mon, 05 December 2005 07:46 |
Eclipse User |
|
|
|
Originally posted by: fsamland.web.de
Hello Jason,
i'm not setting any locale. This ist the code fom RunReport example in my
own class.
Ciao
Friedbert
public void run(){
// The EngineConfig is used to set up engine-wide configuration
// information.
EngineConfig config = new EngineConfig( );
// The Engine home is the location of the BIRT engine runtime.
// Hier aus propertyProvider lesen.
config.setEngineHome( "C:/Programme/birt-runtime-1_0_1/Report Engine"
);
// HTML reports can have embedded images or charts. Set up the
configuration
// required to write these into a directory in the output directory.
// The HTMLCompleteImageHandler is one provided by BIRT for this
purpose.
// Your application can create a customized version to provide
alternative
// ways to handle images.
HTMLEmitterConfig hc = new HTMLEmitterConfig( );
HTMLCompleteImageHandler imageHandler = new HTMLCompleteImageHandler(
);
hc.setImageHandler( imageHandler );
config.setEmitterConfiguration( HTMLRenderOption.OUTPUT_FORMAT_HTML,
hc );
// Create the report engine itself. This engine can be used to run
// multiple reports.
ReportEngine engine = new ReportEngine( config );
// Open the report design.
IReportRunnable report = null;
try
{
report = engine.openReportDesign( reportName);
}
catch ( EngineException e )
{
log.error( "Report " + reportName + " not found!\n" );
engine.destroy( );
return;
}
// Create a task to run the report and convert the output to HTML
// or PDF.
if ( reportFormat != null )
{
parseParams( engine, report, reportParams );
IRunAndRenderTask task = engine.createRunAndRenderTask( report );
HTMLRenderOption options = new HTMLRenderOption( );
options.setOutputFormat( reportFormat );
String output = reportName.replaceFirst( ".rptdesign", "." +
reportFormat );
options.setOutputFileName( output );
task.setRenderOption( options );
task.setParameterValues( reportParams );
// Run the report.
try
{
task.run( );
}
catch ( EngineException e1 )
{
log.error( "Report " + reportName + " run failed.\n" );
log.error( e1.toString( ) );
}
}
engine.destroy( );
}
|
|
|
Powered by
FUDForum. Page generated in 0.03239 seconds