Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev] data engine and threading issue

Hi,
I am currently using the BIRT data engine to create some reports.
My aplication is a multithreaded Swing application and I have decided to have one data engine per blotter in order to free the memory when the blotter is closed (and so is the data engine).
I have some exception that are thrown in the org.eclipse.datatools.connectivity.oda.util.manifest.DataTypeMapping class in the sanityCheckOdaScalarType method:

        if( ! 
getOdaTypeCodes().containsKey( toOdaTypeKey( odaScalarType ) ))
throw new OdaException( Messages.bind( Messages.manifest_INVALID_ODA_SCALAR_DATA_TYPE_VALUE,

When the blotters are opened one after each other, I do not have any issue.

Here is the exception I have:

<Nov 29, 2007 06:36:48 PM> <INFO> <JRisk Registry> <Joe> Loaded entries of type [BIRTDatasets].
<Nov 29, 2007 06:36:52 PM> <SEVERE> <Joe> Cannot process the net.appl.jrisk.report.oda.multiplepntmarketdata driver's configurations.
The ODA driver plugin.xml has an invalid odaScalarDataType value (String) in the <dataTypeMapping> (String).
org.eclipse.birt.data.engine.core.DataException: Cannot process the net.appl.jrisk.report.oda.multiplepntmarketdata driver's configurations.
The ODA driver plugin.xml has an invalid odaScalarDataType value (String) in the <dataTypeMapping> (String).
at org.eclipse.birt.data.engine.odaconsumer.Driver.throwConfigException (Driver.java:176)
at org.eclipse.birt.data.engine.odaconsumer.Driver.doGetDriverManifest(Driver.java:165)
at org.eclipse.birt.data.engine.odaconsumer.Driver.findDataSourceExtensionConfig(Driver.java:123)
at org.eclipse.birt.data.engine.odaconsumer.Driver.getDriverExtensionConfig (Driver.java:78)
at org.eclipse.birt.data.engine.odaconsumer.Driver.getExtensionConfig(Driver.java:60)
at org.eclipse.birt.data.engine.odaconsumer.Driver.getDriverHelper(Driver.java:93)
at org.eclipse.birt.data.engine.odaconsumer.DriverManager.getDriverHelper (DriverManager.java:87)
at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnection(ConnectionManager.java:132)
at org.eclipse.birt.data.engine.executor.DataSource.newConnection(DataSource.java:134)
at org.eclipse.birt.data.engine.executor.DataSource.open(DataSource.java:121)
at org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiDataSource(DataSourceRuntime.java:214)
at org.eclipse.birt.data.engine.impl.QueryExecutor.openDataSource (QueryExecutor.java:265)
at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:210)
at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(PreparedQuery.java:500)
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute (PreparedDataSourceQuery.java:161)
at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery.execute(PreparedOdaDSQuery.java:142)
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java :141)
at org.eclipse.birt.data.engine.impl.PreparedJointDataSourceQuery.populatePreparedQuery(PreparedJointDataSourceQuery.java:512)
at org.eclipse.birt.data.engine.impl.PreparedJointDataSourceQuery.populatePreparedQuery (PreparedJointDataSourceQuery.java:472)
at org.eclipse.birt.data.engine.impl.PreparedJointDataSourceQuery.access$2(PreparedJointDataSourceQuery.java:469)
at org.eclipse.birt.data.engine.impl.PreparedJointDataSourceQuery$JointDataSetQueryExecutor.createOdiQuery (PreparedJointDataSourceQuery.java:555)
at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:217)
at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(PreparedQuery.java:500)
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java:161)
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java:141)
at net.appl.jrisk.report.extractor.AbstractBIRTReportExtractor.createReport(AbstractBIRTReportExtractor.java:114)
at net.appl.jrisk.rtblotter.model.dataextractor.AbstractRTBlotterDataExtractor.processBIRTRequest(AbstractRTBlotterDataExtractor.java :226)
at net.appl.jrisk.rtblotter.model.dataextractor.AbstractRTBlotterDataExtractor.processBatch(AbstractRTBlotterDataExtractor.java:181)
at net.appl.jrisk.rtblotter.model.dataextractor.AbstractRTBlotterDataExtractor.fastQASLoad (AbstractRTBlotterDataExtractor.java:174)
at net.appl.jrisk.rtblotter.model.dataextractor.AbstractRTBlotterDataExtractor.extractReportData(AbstractRTBlotterDataExtractor.java:306)
at net.appl.jrisk.report.extractor.AbstractReportDataExtractor$DataExtractor.run (AbstractReportDataExtractor.java:156)
Caused by: org.eclipse.datatools.connectivity.oda.OdaException: The ODA driver plugin.xml has an invalid odaScalarDataType value (String) in the <dataTypeMapping> (String).
at org.eclipse.datatools.connectivity.oda.util.manifest.DataTypeMapping.sanityCheckOdaScalarType(DataTypeMapping.java:100)
at org.eclipse.datatools.connectivity.oda.util.manifest.DataTypeMapping.<init>(DataTypeMapping.java :66)
at org.eclipse.datatools.connectivity.oda.util.manifest.DataSetType.init(DataSetType.java:71)
at org.eclipse.datatools.connectivity.oda.util.manifest.DataSetType.<init>(DataSetType.java:45)
at org.eclipse.datatools.connectivity.oda.util.manifest.ManifestExplorer.getDataSetElements (ManifestExplorer.java:520)
at org.eclipse.datatools.connectivity.oda.util.manifest.ExtensionManifest.init(ExtensionManifest.java:106)
at org.eclipse.datatools.connectivity.oda.util.manifest.ExtensionManifest.<init>( ExtensionManifest.java:55)
at org.eclipse.datatools.connectivity.oda.util.manifest.ManifestExplorer.getExtensionManifest(ManifestExplorer.java:239)
at org.eclipse.datatools.connectivity.oda.util.manifest.ManifestExplorer.getExtensionManifest (ManifestExplorer.java:205)
at org.eclipse.datatools.connectivity.oda.util.manifest.ManifestExplorer.getExtensionManifest(ManifestExplorer.java:157)
at org.eclipse.birt.data.engine.odaconsumer.Driver.doGetDriverManifest (Driver.java:147)
... 29 more
<Nov 29, 2007 06:36:52 PM> <SEVERE> <Joe> Cannot process the net.appl.jrisk.report.oda.multiplepntmarketdata driver's configurations.
The ODA driver plugin.xml has an invalid odaScalarDataType value (String) in the <dataTypeMapping> (String).
org.eclipse.birt.data.engine.core.DataException: Cannot process the net.appl.jrisk.report.oda.multiplepntmarketdata driver's configurations.
The ODA driver plugin.xml has an invalid odaScalarDataType value (String) in the <dataTypeMapping> (String).
at org.eclipse.birt.data.engine.odaconsumer.Driver.throwConfigException(Driver.java:176)
at org.eclipse.birt.data.engine.odaconsumer.Driver.doGetDriverManifest (Driver.java:165)
at org.eclipse.birt.data.engine.odaconsumer.Driver.findDataSourceExtensionConfig(Driver.java:123)
at org.eclipse.birt.data.engine.odaconsumer.Driver.getDriverExtensionConfig(Driver.java:78)
at org.eclipse.birt.data.engine.odaconsumer.Driver.getExtensionConfig(Driver.java:60)
at org.eclipse.birt.data.engine.odaconsumer.Driver.getDriverHelper(Driver.java:93)
at org.eclipse.birt.data.engine.odaconsumer.DriverManager.getDriverHelper (DriverManager.java:87)
at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnection(ConnectionManager.java:132)
at org.eclipse.birt.data.engine.executor.DataSource.newConnection(DataSource.java:134)
at org.eclipse.birt.data.engine.executor.DataSource.open(DataSource.java:121)
at org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiDataSource(DataSourceRuntime.java:214)
at org.eclipse.birt.data.engine.impl.QueryExecutor.openDataSource (QueryExecutor.java:265)
at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:210)
at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(PreparedQuery.java:500)
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute (PreparedDataSourceQuery.java:161)
at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery.execute(PreparedOdaDSQuery.java:142)
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java :141)
at org.eclipse.birt.data.engine.impl.PreparedJointDataSourceQuery.populatePreparedQuery(PreparedJointDataSourceQuery.java:512)
at org.eclipse.birt.data.engine.impl.PreparedJointDataSourceQuery.populatePreparedQuery (PreparedJointDataSourceQuery.java:472)
at org.eclipse.birt.data.engine.impl.PreparedJointDataSourceQuery.access$2(PreparedJointDataSourceQuery.java:469)
at org.eclipse.birt.data.engine.impl.PreparedJointDataSourceQuery$JointDataSetQueryExecutor.createOdiQuery (PreparedJointDataSourceQuery.java:555)
at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:217)
at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(PreparedQuery.java:500)
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java:161)
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java:141)
at net.appl.jrisk.report.extractor.AbstractBIRTReportExtractor.createReport(AbstractBIRTReportExtractor.java:114)
at net.appl.jrisk.rtblotter.model.dataextractor.AbstractRTBlotterDataExtractor.processBIRTRequest(AbstractRTBlotterDataExtractor.java :226)
at net.appl.jrisk.rtblotter.model.dataextractor.AbstractRTBlotterDataExtractor.processBatch(AbstractRTBlotterDataExtractor.java:181)
at net.appl.jrisk.rtblotter.model.dataextractor.AbstractRTBlotterDataExtractor.fastQASLoad (AbstractRTBlotterDataExtractor.java:174)
at net.appl.jrisk.rtblotter.model.dataextractor.AbstractRTBlotterDataExtractor.extractReportData(AbstractRTBlotterDataExtractor.java:306)
at net.appl.jrisk.report.extractor.AbstractReportDataExtractor$DataExtractor.run (AbstractReportDataExtractor.java:156)
Caused by: org.eclipse.datatools.connectivity.oda.OdaException: The ODA driver plugin.xml has an invalid odaScalarDataType value (String) in the <dataTypeMapping> (String).
at org.eclipse.datatools.connectivity.oda.util.manifest.DataTypeMapping.sanityCheckOdaScalarType(DataTypeMapping.java:100)
at org.eclipse.datatools.connectivity.oda.util.manifest.DataTypeMapping.<init>(DataTypeMapping.java :66)
at org.eclipse.datatools.connectivity.oda.util.manifest.DataSetType.init(DataSetType.java:71)
at org.eclipse.datatools.connectivity.oda.util.manifest.DataSetType.<init>(DataSetType.java:45)
at org.eclipse.datatools.connectivity.oda.util.manifest.ManifestExplorer.getDataSetElements (ManifestExplorer.java:520)
at org.eclipse.datatools.connectivity.oda.util.manifest.ExtensionManifest.init(ExtensionManifest.java:106)
at org.eclipse.datatools.connectivity.oda.util.manifest.ExtensionManifest.<init>( ExtensionManifest.java:55)
at org.eclipse.datatools.connectivity.oda.util.manifest.ManifestExplorer.getExtensionManifest(ManifestExplorer.java:239)
at org.eclipse.datatools.connectivity.oda.util.manifest.ManifestExplorer.getExtensionManifest (ManifestExplorer.java:205)
at org.eclipse.datatools.connectivity.oda.util.manifest.ManifestExplorer.getExtensionManifest(ManifestExplorer.java:157)
at org.eclipse.birt.data.engine.odaconsumer.Driver.doGetDriverManifest (Driver.java:147)
... 29 more

My plugin.xml must be correct as I do not have any issue to usually get my report.
Would that be a threading issue with the loading of the plugin?
Thanks in advance for you r help!
Eric

Back to the top