Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Cant startup the OSGI framework in BIRT(Cant startup the OSGI framework in BIRT)
Cant startup the OSGI framework in BIRT [message #912200] Thu, 13 September 2012 06:05 Go to next message
prakash mathiyalagan is currently offline prakash mathiyalagan
Messages: 2
Registered: September 2012
Junior Member
***>[Question] Am using Birt_runtime_3_7_2, eclipse indigo and using the following code to render the rptdesign file.
***************************************************************************************
import java.util.logging.Level;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.eclipse.birt.core.exception.BirtException;
import org.eclipse.birt.core.framework.Platform;
import org.eclipse.birt.report.engine.api.*;
import com.opensymphony.xwork2.ActionSupport;
public class ExecuteReport extends ActionSupport{
/*
using Birt_runtime_3_7_2, eclipse indigo and using the following code to render the rptdesign file.
*/
public static void main(String args[]) throws EngineException,BirtException
{
EngineConfig config = new EngineConfig( );
config.setBIRTHome("F:/birt-runtime-3_7_2/ReportEngine");
config.setLogConfig("c:/temp", Level.FINE);
Platform.startup( config );
IReportEngineFactory factory = (IReportEngineFactory) Platform.createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
IReportEngine engine = factory.createReportEngine(config);
IReportRunnable design = null;
//Open the report design
design = engine.openReportDesign("C:/name.rptdesign");
IRunAndRenderTask task = engine.createRunAndRenderTask(design); /* run and render the design file */

PDFRenderOption options1 = new PDFRenderOption();
options1.setOutputFileName("C:/test.pdf");
options1.setOutputFormat("pdf");

task.setRenderOption(options1);
task.run();
task.close();
engine.destroy();
Platform.shutdown();//shutdown the platform

}
}
*******************************************************************************
Even I ve set java build path. But when am trying to run this program its showing the following exception
*******************************************************************************
Exception in thread "main" org.eclipse.birt.core.exception.BirtException: Cant startup the OSGI framework
at org.eclipse.birt.core.framework.Platform.startup(Platform.java:91)
at ExecuteReport.main(ExecuteReport.java:20)
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)
... 1 more
********************************************************************************
>>'But i unable to solve it, Can anybody help me ???'

>>'Thanks in advance'.***



Re: Cant startup the OSGI framework in BIRT [message #912399 is a reply to message #912200] Thu, 13 September 2012 13:53 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3200
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 9/13/2012 12:05 AM, prakash mathiyalagan wrote:
> ***>[Question] Am using Birt_runtime_3_7_2, eclipse indigo and using
> the following code to render the rptdesign file.
> [snip]

Did you try the Eclipse BIRT forum?
Re: Cant startup the OSGI framework in BIRT [message #912459 is a reply to message #912399] Thu, 13 September 2012 16:08 Go to previous message
prakash mathiyalagan is currently offline prakash mathiyalagan
Messages: 2
Registered: September 2012
Junior Member
ya posted...
Previous Topic:HELP: Auto generate Main and Constructor settings
Next Topic:Header File issue in Eclipse Juno
Goto Forum:
  


Current Time: Thu Oct 02 02:37:06 GMT 2014

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

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