java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Date

tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

Root Cause Analysis

  1. java.lang.ClassCastException

    java.lang.String cannot be cast to java.util.Date

    at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.setDate()
  2. JasperReports
    JRJdbcQueryExecuter.createDatasource
    1. net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.setDate(JRJdbcQueryExecuter.java:649)
    2. net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.setStatementParameter(JRJdbcQueryExecuter.java:577)
    3. net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.setStatementParameter(JRJdbcQueryExecuter.java:399)
    4. net.sf.jasperreports.engine.query.JRJdbcQueryExecuter$1.visit(JRJdbcQueryExecuter.java:332)
    5. net.sf.jasperreports.engine.query.JRAbstractQueryExecuter$QueryParameter.accept(JRAbstractQueryExecuter.java:157)
    6. net.sf.jasperreports.engine.query.JRAbstractQueryExecuter.visitQueryParameters(JRAbstractQueryExecuter.java:646)
    7. net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createStatement(JRJdbcQueryExecuter.java:317)
    8. net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:196)
    8 frames
  3. com.jaspersoft.jasperserver
    JRTimezoneJdbcQueryExecuter.createDatasource
    1. com.jaspersoft.jasperserver.api.engine.jasperreports.util.JRTimezoneJdbcQueryExecuter.createDatasource(JRTimezoneJdbcQueryExecuter.java:168)
    1 frame
  4. JasperReports
    BaseFillHandle$ReportFiller.run
    1. net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java:1087)
    2. net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(JRFillDataset.java:668)
    3. net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:1258)
    4. net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:877)
    5. net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFiller.run(BaseFillHandle.java:120)
    5 frames
  5. com.jaspersoft.jasperserver
    EngineServiceImpl$SynchronousExecutor.execute
    1. com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$SynchronousExecutor.execute(EngineServiceImpl.java:875)
    1 frame
  6. JasperReports
    BaseFillHandle.startFill
    1. net.sf.jasperreports.engine.fill.BaseFillHandle.startFill(BaseFillHandle.java:165)
    1 frame
  7. com.jaspersoft.jasperserver
    EngineServiceImpl$ReportRunnable.run
    1. com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$AsynchronousReportFiller.fillReport(EngineServiceImpl.java:831)
    2. com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillReport(EngineServiceImpl.java:1658)
    3. com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runReport(EngineServiceImpl.java:1022)
    4. com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportRunnable.run(EngineServiceImpl.java:897)
    4 frames
  8. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    3. java.lang.Thread.run(Thread.java:619)
    3 frames