|
From: SourceForge.net <no...@so...> - 2011-10-01 01:11:27
|
Bugs item #3416409, was opened at 2011-09-30 21:11 Message generated for change (Tracker Item Submitted) made by ljnelson You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=449491&aid=3416409&group_id=47439 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Bug Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Laird Nelson (ljnelson) Assigned to: matthias g (gommma) Summary: Date type conversion does not work with Java 7 Initial Comment: org.dbunit.dataset.datatype.TypeCastException: Error casting value for table 'foo.bar' and column 'CREATED_ON' at org.dbunit.operation.AbstractBatchOperation.execute(AbstractBatchOperation.java:190) at org.dbunit.operation.CompositeOperation.execute(CompositeOperation.java:79) at org.dbunit.AbstractDatabaseTester.executeOperation(AbstractDatabaseTester.java:190) at org.dbunit.AbstractDatabaseTester.onSetup(AbstractDatabaseTester.java:103) This was caused by: Caused by: org.dbunit.dataset.datatype.TypeCastException: Unable to typecast value <2010-20-10 10:30:45> of type <java.lang.String> to DATE at org.dbunit.dataset.datatype.DateDataType.typeCast(DateDataType.java:106) at org.dbunit.dataset.datatype.DateDataType.setSqlValue(DateDataType.java:141) at org.dbunit.database.statement.SimplePreparedStatement.addValue(SimplePreparedStatement.java:73) at org.dbunit.database.statement.AutomaticPreparedBatchStatement.addValue(AutomaticPreparedBatchStatement.java:63) at org.dbunit.operation.AbstractBatchOperation.execute(AbstractBatchOperation.java:186) ... 42 more Caused by: java.lang.IllegalArgumentException at java.sql.Date.valueOf(Date.java:140) at org.dbunit.dataset.datatype.DateDataType.typeCast(DateDataType.java:102) Java 7 on Windows 7. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=449491&aid=3416409&group_id=47439 |