Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363056 - java.lang.ClassCastException: org.eclipse.birt.data.engine.impl.JointDataSetAdapter cannot be cast to org.eclipse.birt.data.engine.api.IOdaDataSetDesign
Summary: java.lang.ClassCastException: org.eclipse.birt.data.engine.impl.JointDataSetA...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 3.7.1   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Birt-Data-inbox@eclipse.org CLA
QA Contact: Sissi Zhu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-07 10:34 EST by Philippe Marsteau CLA
Modified: 2011-12-29 04:35 EST (History)
3 users (show)

See Also:


Attachments
Stacktrace (9.15 KB, application/octet-stream)
2011-11-07 10:35 EST, Philippe Marsteau CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Marsteau CLA 2011-11-07 10:34:15 EST
Build Identifier: Eclipse Build id: 20110916-0149, BIRT Framework 3.7.1.v20110905-BDF9E8OGTzuHfoz-Au7-CWvXDn6N

I can't generate some dataset because of code bug in org.eclipse.birt.data.engine.executor.DataSourceQuery, assuming IOdaDataSetDesign where a IBaseDataSetDesign is returned. Specifically, a org.eclipse.birt.data.engine.impl.JointDataSetAdapter is attempted to be casted to a IOdaDataSetDesign, which fails with the error in the title.

See attached stacktrace for more details.

Line in problem:
resultMetadata = getMetaData( (IOdaDataSetDesign)session.getDataSetCacheManager( ).getCurrentDataSetDesign( ), odaStatement );


Reproducible: Always
Comment 1 Philippe Marsteau CLA 2011-11-07 10:35:56 EST
Created attachment 206527 [details]
Stacktrace

This is the detailed stacktrace recieved when generating a report using a subquery making use of Joined DataSet
Comment 2 Liwen Chen CLA 2011-12-29 03:10:46 EST
I tried to design a report using Joindataset in subquery but cannot reproduce it.
Could you attach sample report can reproduce it?