Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
Cant startup the OSGI framework Error while running from Java application
Migrateduser
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
There are no comments yet