mtassinari Posted October 5, 2012 Share Posted October 5, 2012 I'm having an issue determining what is causing this problem: when I compile a specific report in our webapp, I get this error:java.lang.ClassCastException: java.lang.Stringalso, by reading the stack trace, this seems to be caused bynet.sf.jasperreports.engine.query.JRJdbcQueryExecuter.setStatementParameter() in JRJdbcQueryExecuter.java at line 469but I really do not understand what is wrong here nor how to debug this error.Could you please help me? Link to comment Share on other sites More sharing options...
Solution mgeise Posted October 5, 2012 Solution Share Posted October 5, 2012 It likely has something to do with you passing a value into the query for your report and JasperReports is expecting it to be a string but you are passing in a date or something. You might play with the values that you are passing in your where clause, etc. to see if removing one clears the issue and then you will be able to pinpoint the cause. Link to comment Share on other sites More sharing options...
mtassinari Posted October 8, 2012 Author Share Posted October 8, 2012 That was it, I was passing a string to a subreport that was expecting an integer. 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