Sunday, November 2, 2008

Java - Simple Design Engine API (BIRT)

Error: When try to run the java application that use the Birt APIs it gave the below error:
org.eclipse.birt.core.exception.BirtException: Cant startup the OSGI framework
at org.eclipse.birt.core.framework.Platform.startup(Platform.java:91)
at DECreateDynamicTable.buildReport(DECreateDynamicTable.java:109)
at DECreateDynamicTable.main(DECreateDynamicTable.java:45)
Caused by: org.eclipse.birt.core.exception.BirtException: Could not start the Framework - C:/birt-runtime-2_1_1/birt-runtime-2_1_1/ReportEngine
at org.eclipse.birt.core.framework.osgi.OSGILauncher.startup(OSGILauncher.java:87)
at org.eclipse.birt.core.framework.Platform.startup(Platform.java:79)
... 2 more
Exception in thread "main" java.lang.NullPointerException
at DECreateDynamicTable.buildReport(DECreateDynamicTable.java:119)
at DECreateDynamicTable.main(DECreateDynamicTable.java:45)


Cause: because the Birt_Home variable in configration object not refer to the Birt Engine Path correctly.

Resolution: Locate the below code line and correct the path
config.setProperty("BIRT_HOME", "C:/birt-runtime-2_3_1/ReportEngine");


Created By
Ahmed Abdel Moneim

No comments:

Post a Comment