java.sql.SQLDataException: An attempt was made to get a data value of type 'DATE' from a data value of type 'java.time.LocalDate'.

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • JDK 8 and setObject
    via by Martijn Blankestijn,
    • java.sql.SQLDataException: An attempt was made to get a data value of type 'DATE' from a data value of type 'java.time.LocalDate'. at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(UnknownSource) at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(UnknownSource) at org.apache.derby.impl.jdbc.ConnectionChild.newSQLException(UnknownSource) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.dataTypeConversion(UnknownSource) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.setObject(UnknownSource) at nl.ordina.jdk8.TimePersistenceTest.insertParameterSetObject(TimePersistenceTest.java:48)
    No Bugmate found.