Home
Analytics
Cant startup the OSGI framework Error while running from Java application
durisetti
Hi,
I am very new to BIRT programming.
I have installed BIRT 2.5.2 as plugin in my Eclipse IDE for Java EE Developers version 1.2.1
Eclipse RCP version 3.5.1 and using Windows XP SP2
I have created BIRT report and ran from eclipse it's working fine.
Now, from Java program I have tried to invoke this BIRT report and i am getting ERROR:
org.eclipse.birt.core.exception.BirtException: Cant startup the OSGI framework
at org.eclipse.birt.core.framework.Platform.startup(Platform.java:91)
at CreditCard.SwingingBIRT.startPlatform(SwingingBIRT.java:206)
at CreditCard.SwingingBIRT.initialize(SwingingBIRT.java:131)
at CreditCard.SwingingBIRT.<init>(SwingingBIRT.java:103)
at CreditCard.SwingingBIRT$3.run(SwingingBIRT.java:186)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Caused by: org.eclipse.birt.core.exception.CoreException
at org.eclipse.birt.core.framework.osgi.OSGILauncher.startup(OSGILauncher.java:90)
at org.eclipse.birt.core.framework.Platform.startup(Platform.java:79)
... 12 more
and my java code where it is throwing error:
public void startPlatform()
{
try
{
config = new EngineConfig();
config.setBIRTHome("C:/birtruntime/ReportEngine");
config.setLogConfig("c:/birt/log", java.util.logging.Level.ALL);
Platform.startup(config);
IReportEngineFactory factory = (IReportEngineFactory) Platform.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
engine = factory.createReportEngine(config);
}
catch (Exception e)
{
Logger.getLogger(SwingingBIRT.class.getName()).log(java.util.logging.Level.SEVERE, null, e);
e.printStackTrace();
}
Please help me, how to resolve this.
Looks like it is unable to locate OSGI framework.
Thanks
-Rajendraprasad
Find more posts tagged with
Comments
JasonW
What do you have in this directory?
config.setBIRTHome("C:/birtruntime/ReportEngine");
Jason
durisetti
Hi,
Sorry for the delay and please find attached file c:\birtruntime folder contents.
Please let me know, thanks.
One more question,
I want to display the report in my java application (i don't want my user go out of my application) itself, for that what and how to do this, please help me.
-regards,
Rajendraprasad
JasonW
I do not see an attachment. What are you wanting to display the report on? Swing? SWT? You may want to look at this example:
http://www.birt-exchange.org/org/devshare/deploying-birt-reports/1182-birt-report-from-java-swing/
Jason