Jump to content
Changes to the Jaspersoft community edition download ×

java.lang.ClassCastException while compiling report


mtassinari
Go to solution Solved by mgeise,

Recommended Posts

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.String

also, by reading the stack trace, this seems to be caused by

net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.setStatementParameter() in JRJdbcQueryExecuter.java at line 469

but 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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...