Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363056

Summary: java.lang.ClassCastException: org.eclipse.birt.data.engine.impl.JointDataSetAdapter cannot be cast to org.eclipse.birt.data.engine.api.IOdaDataSetDesign
Product: z_Archived Reporter: Philippe Marsteau <pmarsteau>
Component: BIRTAssignee: Birt-Data-inbox <Birt-Data-inbox>
Status: NEW --- QA Contact: Sissi Zhu <szhu>
Severity: major    
Priority: P3 CC: bluesoldier, lchen, pmarsteau
Version: 3.7.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Stacktrace none

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?