org.dbunit.dataset.datatype.TypeCastException

Unable to typecast value <1997-02-14 00:00:00.0> of type <java.lang.String> to TIMESTAMP

Solutions on the web6

  • Unable to typecast value <1997-02-14 00:00:00.0> of type <java.lang.String> to TIMESTAMP
  • Unable to typecast value <1974-23-06 23:40:00.0> of type <java.lang.String> to TIMESTAMP
  • via sourceforge.net by Unknown author, 1 year ago
    Unable to >> typecast value <oracle.sql.ROWID@...> of type <oracle.sql.ROWID> to >> VARCHAR
  • Stack trace

    • org.dbunit.dataset.datatype.TypeCastException: Unable to typecast value <1997-02-14 00:00:00.0> of type <java.lang.String> to TIMESTAMP at test.CustomTimestampDataType.typeCast(CustomTimestampDataType.java:69) at test.CustomTimestampDataType.setSqlValue(CustomTimestampDataType.java:84) at org.dbunit.database.statement.SimplePreparedStatement.addValue(SimplePreparedStatement.java:73) at org.dbunit.operation.RefreshOperation$RowOperation.execute(RefreshOperation.java:189) at org.dbunit.operation.RefreshOperation.execute(RefreshOperation.java:113) at org.dbunit.AbstractDatabaseTester.executeOperation(AbstractDatabaseTester.java:190) at org.dbunit.AbstractDatabaseTester.onSetup(AbstractDatabaseTester.java:103) at org.dbunit.DatabaseTestCase.setUp(DatabaseTestCase.java:156) at test.HibernateDbUnitTestCase.setUp(HibernateDbUnitTestCase.java:85) at test.PlayerTest.setUp(PlayerTest.java:117)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.