Hello,
I am using Hibernate 3.2 with Eclipse 3.2.1 RCP. I try to load a single result from my database, but get the following error:
Code:
2006-11-20 19:01:04,984 [main] DEBUG org.dseas.base.dao.PersistentContext - Transaction started.
2006-11-20 19:01:04,984 [main] DEBUG org.hibernate.SQL - select appuser0_.ID as ID2_, appuser0_.USER_CRE as USER9_2_, appuser0_.USER_UPD as USER8_2_, appuser0_.TIME_CRE as TIME2_2_, appuser0_.TIME_UPD as TIME3_2_, appuser0_.USER_GROUP_ID as USER7_2_, appuser0_.CODE_ID as CODE4_2_, appuser0_.TXT_NAME as TXT5_2_, appuser0_.TXT_EMAIL as TXT6_2_ from DSEAS.APP_USER appuser0_ where appuser0_.CODE_ID=?
2006-11-20 19:01:04,984 [main] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache - com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache ----> CACHE HIT
2006-11-20 19:01:04,984 [main] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache - checkoutStatement: com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 2; checked out: 1; num connections: 2; num keys: 2
2006-11-20 19:01:04,984 [main] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache - checkinStatement(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 2; checked out: 0; num connections: 2; num keys: 2
2006-11-20 19:01:05,000 [main] ERROR org.dseas.base.dao.AppUserDAO - unknown handler key
2006-11-20 19:01:05,000 [main] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 2; checked out: 0; num connections: 2; num keys: 2
2006-11-20 19:01:05,000 [main] DEBUG com.mchange.v2.resourcepool.BasicResourcePool - trace com.mchange.v2.resourcepool.BasicResourcePool@18eabf6 [managed: 2, unused: 1, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@d2efa1)
2006-11-20 19:01:05,000 [main] DEBUG org.dseas.base.dao.PersistentContext - Transaction commited.
I don't know what the reason for the error could be. I can make the query but when I call Query.getSingleResult() I get a "unknown handler key" error.
Any ideas?