Hello okm'ers,
I am trying to implement the simple report example (RegisterdUsers.jrxml) from the wiki. after importing and executing it, there is no result. When I open the report I get this error:
Code: Select allClass: net.sf.jasperreports.engine.JRException
Message: Errors were encountered when compiling report expressions class file: 1. Cannot cast from Date to String value = (java.lang.String)(new Date()); //$JR_EXPR_ID=8$ <----------------------------> 2. Cannot cast from Date to String value = (java.lang.String)(new Date()); //$JR_EXPR_ID=9$ <----------------------------> 3. Cannot cast from Date to String value = (java.lang.String)(new Date()); //$JR_EXPR_ID=8$ <----------------------------> 4. Cannot cast from Date to String value = (java.lang.String)(new Date()); //$JR_EXPR_ID=9$ <----------------------------> 5. Cannot cast from Date to String value = (java.lang.String)(new Date()); //$JR_EXPR_ID=8$ <----------------------------> 6. Cannot cast from Date to String value = (java.lang.String)(new Date()); //$JR_EXPR_ID=9$ <----------------------------> 6 errors
Date: Wed Feb 01 13:45:44 CET 2012
I use Aqua Data Studio vor editing the .jrxml-files. With this tool I also generate an .jasper-file, but there is also no result. That means the PDF, Rich-Text, CSV-files are empty.
My first question is how to get the example to run. Maybe someone knows what the error means.
Secondly I need to know, how I can get the database relationship-model for scripting some custom reports.
Best regards
Sascha