Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » class cast exception in extending ReportEventAdapter(Getting class cast exception for the class that extends ReportEventAdapter)
class cast exception in extending ReportEventAdapter [message #1229832] Fri, 10 January 2014 10:11
sudhansu bal is currently offline sudhansu balFriend
Messages: 3
Registered: December 2013
Junior Member
Hi All,

I am creating a BIRT report with ODA data source.
For a requirement I want to report parameter from java.
To achieve this I have created a class that extends ReportEventAdapter like this
public class OrderReport extends ReportEventAdapter{}
and in the Reports event handler, providing the fully qualified name of the class.

When the report runs it throws an error whose root cause is
Caused by: java.lang.ClassCastException: com.optisys.reports.OrderDataSource1 cannot be cast to org.eclipse.birt.report.engine.api.script.eventhandler.IReportEventHandler
at org.eclipse.birt.report.engine.script.internal.ReportScriptExecutor.handleInitialize(ReportScriptExecutor.java:74)

What might be the solution for this!!

Thanks
Sudhansu
Previous Topic:Create RANK column based on Grand Total in Crosstab
Next Topic:Confirmation of download location for 4.3.1 source bundle (for osgi birt version)
Goto Forum:
  


Current Time: Tue Sep 24 10:23:44 GMT 2024

Powered by FUDForum. Page generated in 0.03463 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top