org.dbunit.dataset.datatype.TypeCastException: Unable to typecast value <1997/02/14> of type <java.lang.String> to TIMESTAMP

Stack Overflow | ArbiPorter | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    DBunit - Unable to typecast <1997/02/14> to TimeStamp

    Stack Overflow | 8 months ago | ArbiPorter
    org.dbunit.dataset.datatype.TypeCastException: Unable to typecast value <1997/02/14> of type <java.lang.String> to TIMESTAMP
  2. 0

    存取DATE类型的时候发生错误

    GitHub | 4 years ago | tomasWade
    java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]
  3. 0

    Hibernate 3.6.7-final java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]

    Stack Overflow | 2 years ago | Radu Nicolae Satnoianu
    java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    error Timestamp format must be yyyy-mm-dd hh:mm:ss on date field (Page 1) / Open Data Integration - Usage, Operation / Talend Community Forum

    talendforge.org | 1 year ago
    java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]

  1. vega113 4 times, last 9 months ago
4 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]

    at java.sql.Timestamp.valueOf()
  2. Java RT
    Timestamp.valueOf
    1. java.sql.Timestamp.valueOf(Unknown Source)
    1 frame
  3. dbUnit Extension
    DatabaseTestCase.setUp
    1. org.dbunit.dataset.datatype.TimestampDataType.typeCast(TimestampDataType.java:116)
    2. org.dbunit.dataset.datatype.TimestampDataType.typeCast(TimestampDataType.java:120)
    3. org.dbunit.dataset.datatype.TimestampDataType.setSqlValue(TimestampDataType.java:176)
    4. org.dbunit.database.statement.SimplePreparedStatement.addValue(SimplePreparedStatement.java:73)
    5. org.dbunit.operation.RefreshOperation$RowOperation.execute(RefreshOperation.java:189)
    6. org.dbunit.operation.RefreshOperation.execute(RefreshOperation.java:113)
    7. org.dbunit.AbstractDatabaseTester.executeOperation(AbstractDatabaseTester.java:190)
    8. org.dbunit.AbstractDatabaseTester.onSetup(AbstractDatabaseTester.java:103)
    9. org.dbunit.DatabaseTestCase.setUp(DatabaseTestCase.java:156)
    9 frames
  4. test
    PlayerTest.setUp
    1. test.HibernateDbUnitTestCase.setUp(HibernateDbUnitTestCase.java:85)
    2. test.PlayerTest.setUp(PlayerTest.java:117)
    2 frames