java.lang.ClassCastException: Cannot convert object "11/05/05 00:00" of type "class java.sql.Date" into an instance of " class java.sql.Timestamp".

Oracle Community | 3004 | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Timestamp and Date type mapping problem

    Oracle Community | 1 decade ago | 3004
    java.lang.ClassCastException: Cannot convert object "11/05/05 00:00" of type "class java.sql.Date" into an instance of " class java.sql.Timestamp".

    Root Cause Analysis

    1. java.lang.ClassCastException

      Cannot convert object "11/05/05 00:00" of type "class java.sql.Date" into an instance of " class java.sql.Timestamp".

      at kodo.query.Filters.convert()
    2. kodo.query
      ResultPacker.pack
      1. kodo.query.Filters.convert(Filters.java:223)
      2. kodo.query.ResultPacker.packUserType(ResultPacker.java:184)
      3. kodo.query.ResultPacker.pack(ResultPacker.java:167)
      3 frames
    3. kodo.jdbc.query
      SQLProjectionResultObjectProvider.getResultObject
      1. kodo.jdbc.query.SQLProjectionResultObjectProvider.getResultObject(SQLProjectionResultObjectProvider.java:102)
      1 frame
    4. com.solarmetric.rop
      EagerResultList.<init>
      1. com.solarmetric.rop.EagerResultList.<init>(EagerResultList.java:24)
      1 frame
    5. kodo.query
      AbstractQuery.executeWithArray
      1. kodo.query.AbstractQuery.execute(AbstractQuery.java:1054)
      2. kodo.query.AbstractQuery.executeWithArray(AbstractQuery.java:838)
      2 frames