Skip to main content



      Home
Home » Archived » BIRT » NoSuchMethodException when creating report engine
NoSuchMethodException when creating report engine [message #261053] Fri, 09 November 2007 12:39 Go to next message
Eclipse UserFriend
Originally posted by: joglekar_amit.yahoo.com

Hi,

I am getting NoSuchMethodException when instantiating report engine. I am
using BIRT runtime version 2.1.2. Following is the stack trace.

java.lang.NoSuchMethodException:
org.eclipse.core.runtime.adaptor.EclipseStarter.setInitialPr operties(java.util.Map)
at java.lang.Class.throwNoSuchMethodException(Class.java:275)
at java.lang.Class.getMethod(Class.java:780)
at
org.eclipse.birt.core.framework.osgi.OSGILauncher.startup(OS GILauncher.java:143)
at org.eclipse.birt.core.framework.Platform.startup(Platform.ja va:77)
at org.eclipse.birt.core.framework.Platform.initialize(Platform .java:115)
at
org.eclipse.birt.report.engine.api.ReportEngine.<init>(ReportEngine.java:50)

This is how I am trying to create an engine instance:

EngineConfig config = new EngineConfig();
config.setEngineHome("C:\\birt\\birt-runtime-2_1_2\\ReportEngine ");
ReportEngine engine = new ReportEngine(config);

Has anybody seen this type of error before? I suspect that this is a setup
issue, but don't know what is the cause. Any clues?

Regards,
Amit
Re: NoSuchMethodException when creating report engine [message #261067 is a reply to message #261053] Fri, 09 November 2007 13:01 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Amit,

Have you modified the version of eclipse in your 2.1.2 runtime?
Try this code to get the engine

IReportEngine engine=null;
EngineConfig config = null;

try{

config = new EngineConfig( );

config.setBIRTHome(" C:/birt/birt-runtime-2.2.0m5rc/birt-runtime-2_2_0/ReportEngi ne ");
config.setLogConfig(null, Level.FINE);
Platform.startup( config );
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject(
IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
engine = factory.createReportEngine( config );
}catch( Exception ex){
ex.printStackTrace();
}


Obviously change your birt home.

Jason

Amit wrote:
> Hi,
>
> I am getting NoSuchMethodException when instantiating report engine. I
> am using BIRT runtime version 2.1.2. Following is the stack trace.
>
> java.lang.NoSuchMethodException:
> org.eclipse.core.runtime.adaptor.EclipseStarter.setInitialPr operties(java.util.Map)
>
> at java.lang.Class.throwNoSuchMethodException(Class.java:275)
> at java.lang.Class.getMethod(Class.java:780)
> at
> org.eclipse.birt.core.framework.osgi.OSGILauncher.startup(OS GILauncher.java:143)
>
> at org.eclipse.birt.core.framework.Platform.startup(Platform.ja va:77)
> at org.eclipse.birt.core.framework.Platform.initialize(Platform .java:115)
> at
> org.eclipse.birt.report.engine.api.ReportEngine.<init>(ReportEngine.java:50)
>
>
> This is how I am trying to create an engine instance:
>
> EngineConfig config = new EngineConfig();
> config.setEngineHome("C:\\birt\\birt-runtime-2_1_2\\ReportEngine ");
> ReportEngine engine = new ReportEngine(config);
>
> Has anybody seen this type of error before? I suspect that this is a
> setup issue, but don't know what is the cause. Any clues?
>
> Regards,
> Amit
>
Previous Topic:about Viewer Tag Library
Next Topic:Version
Goto Forum:
  


Current Time: Tue Jul 22 13:05:52 EDT 2025

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

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

Back to the top