Hi Torsten,
now I reproduced the error, the full error message is pasted below;
I will add this to the issue list and for the time until someone
resolves this issue: do not use the getLexicalEntryIterator method
from the Uby-API.
25178 [main] WARN org.hibernate.jdbc.AbstractBatcher - exception
clearing maxRows/queryTimeout
java.sql.SQLException: You can't operate on a closed Statement!!!
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65)
at
com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.getMaxRows(NewProxyPreparedStatement.java:
1206)
at
org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:
298)
at
org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:
234)
at org.hibernate.loader.Loader.doQuery(Loader.java:854)
at syntax.LexEntryQueries.main(LexEntryQueries.java:48)
Caused by: java.lang.NullPointerException
at
com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.maybeDirtyTransaction(NewProxyPreparedStatement.java:
2069)
at
com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.getMaxRows(NewProxyPreparedStatement.java:
1198)
... 13 more
Exception in thread "main" org.hibernate.SessionException: Session is
closed!
at
org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:
72)
at
org.hibernate.impl.SessionImpl.getPersistenceContext(SessionImpl.java:
1954)
at
org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:
120)
at
org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:
982)
at org.hibernate.loader.Loader.doQuery(Loader.java:857)
at syntax.LexEntryQueries.main(LexEntryQueries.java:47)
See also Issue at Google Code:
http://code.google.com/p/uby/issues/detail?id=33
--- Judith