Skip to main content



      Home
Home » Archived » BIRT » DEAPI Requirements?
DEAPI Requirements? [message #201849] Mon, 20 November 2006 04:58 Go to next message
Eclipse UserFriend
Originally posted by: levi.hfsistemas.com

Hi there!

I'm trying to run the example in
http://www.eclipse.org/birt/phoenix/deploy/DeDemo.java but, althoght I have
imported all the jars from the birt-rcp-report-designer-2_1_1 plugins
folder, I get the following error:

20-nov-2006 10:43:32 org.eclipse.birt.report.model.api.DesignEngine <init>

INFO: Error occurs while start the platform

org.eclipse.birt.core.exception.BirtException: $NO-RB$ Cant startup the OSGI
framework

at org.eclipse.birt.core.framework.Platform.startup(Platform.ja va:90)

at
org.eclipse.birt.report.model.api.DesignEngine.<init>(DesignEngine.java:71)

at
org.eclipse.birt.report.model.api.DesignEngine.newSession(De signEngine.java:128)

....

Caused by: org.eclipse.birt.core.exception.BirtException: $NO-RB$ Could not
find the Framework - [Ljava.lang.Object;@17ce4e7

at
org.eclipse.birt.core.framework.osgi.OSGILauncher.startup(OS GILauncher.java:88)

at org.eclipse.birt.core.framework.Platform.startup(Platform.ja va:78)

.... 41 more


So now I'm wondering... Which are the requirements to use the Design Engine
API? Do I need to surround it on an RCP project or can I use it directly
from a java application? And if I can... what's wrong with the example?

Than you.
Re: DEAPI Requirements? [message #201937 is a reply to message #201849] Mon, 20 November 2006 11:27 Go to previous messageGo to next message
Eclipse UserFriend
The DEAPI is not finding the BIRT Plugins.
Take a look at this example:

http://wiki.eclipse.org/index.php/Simple_Create


Jason

"Lev
Re: DEAPI Requirements? [message #201947 is a reply to message #201937] Mon, 20 November 2006 11:37 Go to previous message
Eclipse UserFriend
BTW if you are including the BIRT plugins in your RCP application you should
be able to get it to work without doing the manual Platform startup.
Do not set BIRT_HOME and use the following code. There is an example in the
wiki that shows how to do this with the Report Engine, which has a similar
startup to the Design Engine.
IDesignEngineFactory factory = (IDesignEngineFactory) Platform

..createFactoryObject(
IDesignEngineFactory.EXTENSION_DESIGN_ENGINE_FACTORY );

engine = factory.createDesignEngine( config );


}catch( Exception ex){

ex.printStackTrace();

}


SessionHandle session = engine.newSessionHandle( ULocale.ENGLISH ) ;


// Create a new report design.


ReportDesignHandle design = session.createDesign( );


Jason

"Jason Weathersby" <jweathersby@actuate.com> wrote in message
news:ejsl0g$qdr$1@utils.eclipse.org...
> The DEAPI is not finding the BIRT Plugins.
> Take a look at this example:
>
> http://wiki.eclipse.org/index.php/Simple_Create
>
>
> Jason
>
> "Lev
Previous Topic:retrieve parameter from address bar to birt report
Next Topic:Help! PDFRender.handleHyperlinkAction generates NullPointer Exception
Goto Forum:
  


Current Time: Tue Sep 16 17:01:55 EDT 2025

Powered by FUDForum. Page generated in 0.14335 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top