Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312036 - AssertionError in ColumnHint.setDataType() works well with assertions disabled
Summary: AssertionError in ColumnHint.setDataType() works well with assertions disabled
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.6.0 RC0   Edit
Assignee: Linda Chan CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-07 06:19 EDT by Christian Waniek CLA
Modified: 2010-05-07 23:40 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Waniek CLA 2010-05-07 06:19:45 EDT
Build Identifier: M20090917-0800

I have defined a dataset which contains a column containing blob data, containing an image. When I start the application in a JVM with assertions enabled I get an AssertionError at

java.lang.AssertionError
    at org.eclipse.birt.data.engine.odaconsumer.ColumnHint.setDataType(ColumnHint.java:129)
    at org.eclipse.birt.data.engine.executor.DataSourceQuery.prepareOdiHint(DataSourceQuery.java:673)
    at org.eclipse.birt.data.engine.executor.DataSourceQuery.addColumnHints(DataSourceQuery.java:635)
    at org.eclipse.birt.data.engine.executor.DataSourceQuery.prepareColumns(DataSourceQuery.java:352)
    at org.eclipse.birt.data.engine.executor.DataSourceQuery.prepare(DataSourceQuery.java:312)
    at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery$OdaDSQueryExecutor.prepareOdiQuery(PreparedOdaDSQuery.java:350)
[...]

This happens, because java.sql.Blob is passed to this method but the Assertion only accepts org.eclipse.datatools.connectivity.oda.IBlob as a datatype for BLOBs.

When I start the JVM with assertions disabled I don't get this Error. Everthing works fine and the picture is rendered correctly.
In the designer, I couldn't find any option to map java datatypes or something else.

I created the report with the Designer Plugin (2.5.1) and I'm using the BIRT Runtime (alos 2.5.1) inside a web application (EAR). The application is deployed on a BEA Weblogic 10.3.

Maybe this only some configuration thing but I can't get on. And by the way, disabling assertions is not an option.


Reproducible: Always

Steps to Reproduce:
1. Create a dataset which contains a BLOB column.
2. Run the report (JVM must have assertions enabled)
3. Wait for the AssertionError
Comment 1 Linda Chan CLA 2010-05-07 23:40:16 EDT
Resolved.