Bug 406681 - BIRT 3.7.1 couldn't create second birt engine in another application hosted on the same jvm in the same WAS 7 Server
Summary: BIRT 3.7.1 couldn't create second birt engine in another application hosted o...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 3.7.1   Edit
Hardware: PC Windows XP
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-26 12:01 EDT by praneeth botta CLA
Modified: 2013-04-26 12:06 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description praneeth botta CLA 2013-04-26 12:01:51 EDT
I have created birt engine in an application say it as App1, it was running successfully. Now when i am trying to create another birt engine in another application say it as App2. Birt is failing to generate report.

These both applications are installed in WAS7 server. They are located in the jvm and server.

Application Running order:
Scenario 1: App1->App2->App1 = App1 birt is failing
Scenario 2: App2->App1->App2 = App2 birt is failing

The bellow are the logs from birt:
EXCEPTION 1:
org.eclipse.birt.report.engine.data.IDataEngine
SEVERE: can not create the DTE data engine
org.eclipse.birt.report.data.adapter.api.AdapterException: There is an error in loading the factory of data adapter.
	at org.eclipse.birt.report.data.adapter.api.DataRequestSession.newSession(DataRequestSession.java:89)
	at org.eclipse.birt.report.data.adapter.api.DataRequestSession.newSession(DataRequestSession.java:64)
	at org.eclipse.birt.report.engine.data.dte.DteDataEngine.<init>(DteDataEngine.java:104)
	at org.eclipse.birt.report.engine.data.DataEngineFactory.createDataEngine(DataEngineFactory.java:100)
	at org.eclipse.birt.report.engine.executor.ExecutionContext.openDataEngine(ExecutionContext.java:882)
	at org.eclipse.birt.report.engine.executor.ExecutionContext.getDataEngine(ExecutionContext.java:899)
	at org.eclipse.birt.report.engine.executor.ReportExecutor.execute(ReportExecutor.java:122)
	at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportExecutor.execute(WrappedReportExecutor.java:60)
	at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplciateReportExecutor.execute(SuppressDuplciateReportExecutor.java:42)
	at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportExecutor.execute(WrappedReportExecutor.java:60)
	at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportExecutor.execute(LocalizedReportExecutor.java:61)
	at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:178)
	at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)

EXCEPTION 2:
org.eclipse.birt.report.engine.api.impl.ReportEngine
SEVERE: An error happened while running the report. Cause:
java.lang.NullPointerException
	at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuilderVisitor.createParamBindings(ReportQueryBuilder.java:1670)
	at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuilderVisitor.addParamBinding(ReportQueryBuilder.java:1592)
	at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuilderVisitor.createQuery(ReportQueryBuilder.java:1420)
	at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuilderVisitor.visitTableItem(ReportQueryBuilder.java:913)
	at org.eclipse.birt.report.engine.ir.TableItemDesign.accept(TableItemDesign.java:53)
	at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(ReportQueryBuilder.java:256)
	at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(ReportQueryBuilder.java:237)
	at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.prepare(AbstractDataEngine.java:180)
	at org.eclipse.birt.report.engine.executor.ReportExecutor.execute(ReportExecutor.java:122)
	at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportExecutor.execute(WrappedReportExecutor.java:60)
	at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplciateReportExecutor.execute(SuppressDuplciateReportExecutor.java:42)
	at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportExecutor.execute(WrappedReportExecutor.java:60)
	at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportExecutor.execute(LocalizedReportExecutor.java:61)
	at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:178)
	at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)



I have created birt engine through the below code:

EngineConfig config = new EngineConfig();

RegistryProviderFactory.releaseDefault();

Platform.startup( config );
IReportEngineFactory factory = (IReportEngineFactory) Platform.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
birtEngine = factory.createReportEngine( config );