mulcamd Posted August 19, 2011 Share Posted August 19, 2011 In my report I have a date and a long.startDate class java.util.DatestartDateLong : class See below from the JRXML of these 2 variables.In my report I have to devide the time by 1000, to get from milliseconds to seconds.My expression is $P{startDate}.getTime() /1000L.In iReport 4.1.1. I get the error:Error filling print... Incompatible java.math.BigDecimal value assigned to parameter startDateLongWhen I change the same expression to $P{startDate}.getTime() all is fine. In iReport 4.0.2. the first expression with the divide by 1000L works fine.Questions Why do I get a problem with Incompatible java.math.BigDecimal value since both the getTime() and 1000L are long values What has changed from 4.0.2 to 4.1.1. in this aspect Most important: how can I solve this. Code: Post Edited by mulcamd at 08/19/2011 16:53 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