Hi rob,
i think i have a tough one here. i'm not really sure what happens, but maybe you got an idea:
java.lang.NumberFormatException: For input string: ""
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
java.lang.Long.parseLong(Long.java:431)
java.lang.Long.valueOf(Long.java:498)
java.lang.Long.decode(Long.java:641)
org.h2.util.MathUtils.decodeLong(MathUtils.java:160)
org.h2.value.Value.convertTo(Value.java:741)
org.h2.value.Value.getLong(Value.java:415)
org.h2.jdbc.JdbcResultSet.getLong(JdbcResultSet.java:613)
com.avaje.ebean.server.type.RsetDataReader.getLong(RsetDataReader.java:169)
com.avaje.ebean.server.type.ScalarTypeLong.read(ScalarTypeLong.java:46)
com.avaje.ebean.server.type.ScalarTypeLong.read(ScalarTypeLong.java:30)
com.avaje.ebean.server.deploy.BeanProperty.read(BeanProperty.java:565)
com.avaje.ebean.server.deploy.id.IdBinderSimple.readSet(IdBinderSimple.java:138)
com.avaje.ebean.server.query.SqlTreeNodeBean.load(SqlTreeNodeBean.java:225)
com.avaje.ebean.server.query.SqlTreeNodeManyRoot.load(SqlTreeNodeManyRoot.java:29)
com.avaje.ebean.server.query.SqlTreeNodeBean.load(SqlTreeNodeBean.java:294)
com.avaje.ebean.server.query.CQuery.readRow(CQuery.java:557)
com.avaje.ebean.server.query.CQuery.readIntoCurrentDetailCollection(CQuery.java:617)
com.avaje.ebean.server.query.CQuery.readBeanInternal(CQuery.java:602)
com.avaje.ebean.server.query.CQuery.readTheRows(CQuery.java:674)
com.avaje.ebean.server.query.CQuery.readCollection(CQuery.java:659)
com.avaje.ebean.server.query.CQueryEngine.findMany(CQueryEngine.java:166)
com.avaje.ebean.server.query.DefaultOrmQueryEngine.findMany(DefaultOrmQueryEngine.java:88)
com.avaje.ebean.server.core.OrmQueryRequest.findList(OrmQueryRequest.java:284)
com.avaje.ebean.server.core.DefaultServer.findList(DefaultServer.java:1340)
com.avaje.ebean.server.querydefn.DefaultOrmQuery.findList(DefaultOrmQuery.java:765)
tk.eabin.event.client.model.UserModel.loadItemsInternal(UserModel.java:42)
the sql statement:
select u.id c0, u.login c1, u.active c2, u.firstname c3, u.lastname c4, u.password c5, u.description c6, u.cdate c7, u.last_seen c8, u.email c9, u.home_address c10, u.jabber_id c11
, ug.id c12, ug.name c13, ug.description c14
from systemuser u
left outer join user_group ugz_ on ugz_.user_id = u.id
left outer join usergroup ug on ug.id = ugz_.usergroup_id
where u.active=1 AND (u.id=3 OR ug.id IN (1,4,5))
order by u.login , u.id, ug.name;
at RsetDataReader:169
i have pos==10 (so ++pos==11)
which means ebean is trying to read column c10 as a Long.
it seems it lost count somewhere?
regards,
-erwin