Hi,
I am working on OpenMRS 2.0.1 version and running jasper report module on it.
The version I am using to build jrxml is 1.6.
While uploading the report, I am getting following exception :
Report not saved : Could not compile report: Errors were encountered when compiling report expressions class file: 1. java.util.Date cannot be resolved to a type value = new java.util.Date(); //$JR_EXPR_ID=8$ <------------> 2. java.util.Date cannot be resolved to a type value = new java.util.Date(); //$JR_EXPR_ID=10$ <------------> 3. java.sql.Connection cannot be resolved to a type value = ((java.sql.Connection)parameter_REPORT_CONNECTION.getValue()); //$JR_EXPR_ID=11$ <-----------------> 4. java.util.Date cannot be resolved to a type value = new java.util.Date(); //$JR_EXPR_ID=8$ <------------> 5. java.util.Date cannot be resolved to a type value = new java.util.Date(); //$JR_EXPR_ID=10$ <------------> 6. java.sql.Connection cannot be resolved to a type value = ((java.sql.Connection)parameter_REPORT_CONNECTION.getValue()); //$JR_EXPR_ID=11$ <-----------------> 7. java.util.Date cannot be resolved to a type value = new java.util.Date(); //$JR_EXPR_ID=8$ <------------> 8. java.util.Date cannot be resolved to a type value = new java.util.Date(); //$JR_EXPR_ID=10$ <------------> 9. java.sql.Connection cannot be resolved to a type value = ((java.sql.Connection)parameter_REPORT_CONNECTION.getValue()); //$JR_EXPR_ID=11$ <-----------------> 9 errors 1. java.lang.Long cannot be resolved to a type value = ((java.lang.Long)field_datediff40curdate404144persn46birthdate41.getValue()); //$JR_EXPR_ID=13$ <------------> 2. java.lang.Long cannot be resolved to a type value = ((java.lang.Long)field_datediff40curdate404144persn46birthdate41.getOldValue()); //$JR_EXPR_ID=13$ <------------> 3. java.lang.Long cannot be resolved to a type value = ((java.lang.Long)field_datediff40curdate404144persn46birthdate41.getValue()); //$JR_EXPR_ID=13$ <------------> 3 errors
Hi,
By opening “Manage Jasper Reports” I am getting below error :
There is path issue : System is not able to get Path to upload report to. So we did apply null check and this error goes away.
Should I upload updated module or you will do it? To check next issue ?