BIRT Exchange Forum: ReportEngine error Help please - BIRT Exchange Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

ReportEngine error Help please Rate Topic: -----

#1 User is offline   SuperNick 

  • Junior Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 26-June 09

Posted 26 June 2009 - 01:00 AM

Hi guys

Im very new to Birt and have managed to grasp the building and previewing of reports, i now have tryed to call my report from a new application and seem to be getting a null pointer exception...

java.lang.NullPointerException
at org.eclipse.birt.report.engine.api.impl.ReportEngine$EngineExtensionManager.(ReportEngine.java:794)
at org.eclipse.birt.report.engine.api.impl.ReportEngine.(ReportEngine.java:105)
at org.eclipse.birt.report.engine.api.impl.ReportEngineFactory$1.run(ReportEngineFactory.java:18)
at org.eclipse.birt.report.engine.api.impl.ReportEngineFactory$1.run(ReportEngineFactory.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.birt.report.engine.api.impl.ReportEngineFactory.createReportEngine(ReportEngineFactory.java:14)
at a.executeReport.executeReporta(executeReport.java:38)
at a.aa.main(aa.java:8)

The code i have is as follows:

public static void executeReporta() throws EngineException
{

IReportEngine engine=null;
EngineConfig config = null;

try{
config = new EngineConfig( );
config.setBIRTHome("C:\\development\\birt-runtime-2_3_2\\ReportEngine");
config.setLogConfig(null, Level.FINEST);
Platform.startup( config );
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
engine = factory.createReportEngine( config );

IReportRunnable design = null;
//Open the report design
design = engine.openReportDesign("myreport.rptdesign");
IRunAndRenderTask task = engine.createRunAndRenderTask(design);

HTMLRenderOption options = new HTMLRenderOption();
options.setOutputFileName("Parmdisp.html");
options.setOutputFormat("html");


task.setRenderOption(options);
task.run();
task.close();
engine.destroy();
}catch( Exception ex){
ex.printStackTrace();
}
finally
{
Platform.shutdown( );
}

Im not sure if its a class / jar error but i have download and set my build path correctly??

Any help would be very much appricated..

Thanks for you time
Nick
0

#2 User is offline   snair 

  • Junior Member
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 11-August 09

Posted 17 August 2009 - 10:01 AM

Hello,
I am facing the same above error. Does any one have a solution to this ? .Any hep would be appreciated .
Thanks
Suj
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users