Do you get the same error using non-cayenne java code while reading the field?
On Mon, Jul 11, 2016 at 6:56 PM, Tony Giaccone <[email protected]> wrote: > I'm using the H2 database and have a field that's a timestamp, > > > I get this message on trying to read the field with Cayenne: > > > org.h2.jdbc.JdbcSQLException: Hexadecimal string with odd number of > characters: "2016-07-11 18:21:16.0" [90003-192] > > stack trace looks like: > > at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) > at org.h2.message.DbException.get(DbException.java:179) > at org.h2.message.DbException.get(DbException.java:155) > at org.h2.util.StringUtils.convertHexToBytes(StringUtils.java:970) > at org.h2.value.Value.convertTo(Value.java:973) > at org.h2.value.Value.getBytes(Value.java:422) > at org.h2.jdbc.JdbcResultSet.getBytes(JdbcResultSet.java:1059) > at > org.apache.cayenne.access.types.ByteArrayType.materializeObject(ByteArrayType.java:86) > > And it’s true the string is odd in length. > > > Seems odd…any thoughts? > > > > Tony Giaccone
