Jump to content
We've recently updated our Privacy Statement, available here ×

Class Cast Exception when evaluating expression


mohamed.daly

Recommended Posts

JasperStudio is breaking when trying to preview a report. It attempts to evaluate an expression and throws a ClassCastException.

Caused by: java.lang.ClassCastException: class java.lang.String cannot be cast to class java.util.Date (java.lang.String and java.util.Date are in module java.base of loader 'bootstrap')	at Journal_1636110498190_941219.evaluate(Journal_1636110498190_941219:288) ~[?:?]	at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:182) ~[jasperreports-javaflow-4.0.0.jar:?]	at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:589) ~[jasperreports-javaflow-4.0.0.jar:?]	at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:557) ~[jasperreports-javaflow-4.0.0.jar:?]	at net.sf.jasperreports.engine.fill.JRFillElement.evaluateExpression(JRFillElement.java:929) ~[jasperreports-java

my date expression is valid and I've attached the jrxml file..i realy don't see where is the problem in evaluating date expression

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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