BIRT Exchange Forum: Cant startup the OSGI framework Error while running from Java application - BIRT Exchange Forum

Jump to content


 

BIRT Poll: To best make a table fill a pdf page before breaking (PL=page layout, PBI=page break interval) set:

PL: auto, PBI: 0PL: fixed, PBI: 0PL: auto, PBI: 1000000PL: fixed, PBI: 1000000
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Cant startup the OSGI framework Error while running from Java application Rate Topic: -----

#1 User is offline   durisetti Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 15-April 12


Posted 15 April 2012 - 06:50 AM

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
0

#2 User is offline   JasonW Icon

  • Senior Member
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 2505
  • Joined: 08-August 07


Posted 17 April 2012 - 08:15 AM

What do you have in this directory?
config.setBIRTHome("C:/birtruntime/ReportEngine");

Jason
0

#3 User is offline   durisetti Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 15-April 12


Posted 25 April 2012 - 06:21 AM

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
0

#4 User is offline   JasonW Icon

  • Senior Member
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 2505
  • Joined: 08-August 07


Posted 25 April 2012 - 09:38 AM

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-exch...rom-java-swing/

Jason
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