2006 IR Open Dicussion Posted August 17, 2006 Share Posted August 17, 2006 By: RR - raffarost Exception when filling report 2002-12-16 05:24 Hi, I'm getting a ClassCastException (see below), when trying to fill a report. The reports' compilation is ok. If I try to fill a non-database filled report, everything is ok, even in complex design reports. The version of JasperReports lib I'm using is 0.4.4. Thanks for any help! Error message: java.lang.ClassCastException: Assigning instance of class java.lang.Class to field dori.jasper.engine.base.JRBaseTextField#pattern java.lang.Object java.io.ObjectInputStream.readObject(boolean) java.lang.Object java.io.ObjectInputStream.readObject() java.lang.Object dori.jasper.engine.util.JRLoader.loadObject(java.io.File) dori.jasper.engine.JasperPrint dori.jasper.engine.JasperFillManager.fillReport(java.lang.String, java.util.Map, dori.jasper.engine.JRDataSource) void IReportCompiler.main(java.lang.String[]) By: Teodor Danciu - teodord RE: Exception when filling report 2002-12-16 05:30 Hi, Are you sure iReport is already compatible with JasperReports 0.4.4? Thank you, Teodor By: Teodor Danciu - teodord RE: Exception when filling report 2002-12-16 05:34 Sorry, I assumed you use iReport because I saw IReportCompiler in the stack trace. Make sure you are compiling the reports using the same version as when you fill them. I hope this helps. Teodor By: RR - raffarost RE: Exception when filling report 2002-12-16 05:39 Teodor, you're right, I'm using IReport. When I had the error message for the first time, I was using the lib that came with IReport, so I decided to switch to 0.4.4. As the design of the report that I'm trying to fill is extremely simple (just a database field), I didn't suspect about IReport design mistakes. Thanks for your help, Raffael By: Teodor Danciu - teodord RE: Exception when filling report 2002-12-16 05:49 Hi, To isolate the problem, maybe you should try to compile and fill the reports outside iReport. The error has something to do with the formatting pattern you have used fo one of your text fields. I hope this helps. Teodor By: RR - raffarost RE: Exception when filling report 2002-12-16 10:09 Teodor, the problem was jsdk 1.2. I just updated to 1.3 and it started working. Thanks, Raffael By: RR - raffarost RE: Exception when filling report 2002-12-16 06:54 Teodor, you're right, I'm using IReport. When I had the error message for the first time, I was using the lib that came with IReport, so I decided to switch to 0.4.4. As the design of the report that I'm trying to fill is extremely simple (just a database field), I didn't suspect about IReport design mistakes. Thanks for your help, Raffael Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now