Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#24 fix for birt report with scripted datasource

closed-fixed
nobody
None
5
2007-12-31
2007-01-31
Ingo Foullois
No

Birt reports, which consists of at least one scripted data source, currently cause class cast exceptions due to a cast operation (in BirtReportEngine.java, line 163).
I modified a few lines in org/efs/openreports/engine/BirtReportEngine.java to solve this problem:

replace the line

OdaDataSourceHandle dataSH = (OdaDataSourceHandle) iterator.next();

with

Object item = iterator.next();
if (!(item instanceof OdaDataSourceHandle)) continue;

OdaDataSourceHandle dataSH = (OdaDataSourceHandle) item;

and openreports is able to generate reports with scripted datasources as well.

Discussion

  • Ingo Foullois
    Ingo Foullois
    2007-01-31

    patched BirtReportEngine

     
    Attachments
  • Erik Swenson
    Erik Swenson
    2007-12-31

    • status: open --> closed-fixed
     
  • Erik Swenson
    Erik Swenson
    2007-12-31

    Logged In: YES
    user_id=477376
    Originator: NO

    Fixed in OpenReports 3.0.1