Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Exceptions when generating a report
Exceptions when generating a report [message #144059] Wed, 15 March 2006 15:48
Steve Gutz is currently offline Steve GutzFriend
Messages: 70
Registered: July 2009
Member
I get this exception a lot when generating a report...

Mar 15, 2006 10:44:27 AM
org.eclipse.birt.data.engine.odaconsumer.PreparedStatement doSetProperty
WARNING: Cannot set statement property.
java.lang.UnsupportedOperationException: IQuery.setProperty( String
propertyName, String propertyValue )
at
org.eclipse.datatools.connectivity.oda.consumer.helper.OdaOb ject.handleUnsup
portedOp(OdaObject.java:278)
at
org.eclipse.datatools.connectivity.oda.consumer.helper.OdaQu ery.setProperty(
OdaQuery.java:229)
at
org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.d oSetProperty(Pre
paredStatement.java:154)
at
org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.s etProperty(Prepa
redStatement.java:136)
at
org.eclipse.birt.data.engine.executor.DataSourceQuery.addPro perties(DataSour
ceQuery.java:348)
at
org.eclipse.birt.data.engine.executor.DataSourceQuery.prepar e(DataSourceQuer
y.java:303)
at
org.eclipse.birt.data.engine.impl.PreparedExtendedDSQuery$Ex tendedDSQueryExe
cutor.prepareOdiQuery(PreparedExtendedDSQuery.java:277)
at
org.eclipse.birt.data.engine.impl.PreparedQuery$Executor.pre pareExecution(Pr
eparedQuery.java:672)
at
org.eclipse.birt.data.engine.impl.PreparedQuery$Executor.acc ess$000(Prepared
Query.java:498)
at
org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(Pr eparedQuery.java
:225)
at
org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.ex ecute(PreparedDa
taSourceQuery.java:145)
at
org.eclipse.birt.report.engine.data.dte.DteDataEngine.execut e(DteDataEngine.
java:205)
at
org.eclipse.birt.report.engine.presentation.LocalizedEmitter .executeQueries(
LocalizedEmitter.java:814)
at
org.eclipse.birt.report.engine.presentation.LocalizedEmitter .startExtendedCo
ntent(LocalizedEmitter.java:651)
at
org.eclipse.birt.report.engine.presentation.LocalizedEmitter .startForeign(Lo
calizedEmitter.java:434)
at
org.eclipse.birt.report.engine.executor.ExtendedItemExecutor .execute(Extende
dItemExecutor.java:100)
at
org.eclipse.birt.report.engine.executor.ReportExecutorVisito r.visitExtendedI
tem(ReportExecutorVisitor.java:81)
at
org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept( ExtendedItemDesi
gn.java:30)
at
org.eclipse.birt.report.engine.executor.ReportExecutor.execu te(ReportExecuto
r.java:125)
at
org.eclipse.birt.report.engine.executor.ReportExecutor.execu te(ReportExecuto
r.java:89)
at
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTas
k.java:175)
at
com.ibm.xtools.analysis.reporting.internal.editor.ReportEdit or$1.run(ReportE
ditor.java:229)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)


My code is pretty basic:

String xmlData = ...
ByteArrayInputStream is = new ByteArrayInputStream(
xmlData.getBytes(UTF8) );

EngineConfig config = new EngineConfig();
ReportEngine engine = new ReportEngine(config);

IReportRunnable reportRunnable = engine.openReportDesign(
report.getReportTemplateFile() );
IRunAndRenderTask task = engine.createRunAndRenderTask(
reportRunnable );
..
HTMLRenderContext renderContext = new HTMLRenderContext();
renderContext.setImageDirectory( "images" );.
HashMap contextMap = new HashMap();
contextMap.put(EngineConstants.APPCONTEXT_HTML_RENDER_CONTEX T,
renderContext);
contextMap.put(Constants.APPCONTEXT_INPUTSTREAM , new
XMLDataInputStream(is));
contextMap.put(Constants.APPCONTEXT_CLOSEINPUTSTREAM , "true" );
task.setAppContext(contextMap);
..
HTMLRenderOption options = new HTMLRenderOption();
.. options.setOutputFileName( "test.html" );
task.setRenderOption(options);

task.run();
engine.destroy();

Anyone got any ideas??
Previous Topic:CGLIB enhanced class in Scripted DataSource using Java Classes
Next Topic:XML Data Source help!!
Goto Forum:
  


Current Time: Thu Dec 26 14:18:07 GMT 2024

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

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

Back to the top