"connection already null in cleanup" when using validators
----------------------------------------------------------
Key: HV-28
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HV-28
Project: Hibernate Validator
Issue Type: Bug
Environment: hibernate annotations 3.3.0ga
hibernate validator 3.0.0ga
hibernate 3.2.4.sp1
hibernate-commons-annotations 3.3.0.ga
Reporter: David J. M. Karlsen
Priority: Critical
2007-06-27 21:18:39,133 [WorkManager.DefaultWorkManager : 0] DEBUG
org.hibernate.impl.SessionImpl - opened session at timestamp: 11829719154
(SessionImpl.java:220)
2007-06-27 21:18:39,159 [WorkManager.DefaultWorkManager : 0] TRACE
org.hibernate.event.def.DefaultSaveOrUpdateEventListener - saving transient instance
(DefaultSaveOrUpdateEventListener.java:158)
2007-06-27 21:18:39,162 [WorkManager.DefaultWorkManager : 0] DEBUG
org.hibernate.event.def.AbstractSaveEventListener - generated identifier:
e2632934-a800-4a91-a9ff-ce8e1f95a03d, using strategy: org.hibernate.id.Assigned
(AbstractSaveE
ventListener.java:112)
2007-06-27 21:18:39,168 [WorkManager.DefaultWorkManager : 0] TRACE
org.hibernate.event.def.AbstractSaveEventListener - saving
[mypackage.server.types.Fee#e2632934-a800-4a91-a9ff-ce8e1f95a03d]
(AbstractSaveEventListener.java:
153)
2007-06-27 21:18:39,228 [WorkManager.DefaultWorkManager : 0] TRACE
org.hibernate.event.def.AbstractFlushingEventListener - flushing session
(AbstractFlushingEventListener.java:58)
2007-06-27 21:18:39,232 [WorkManager.DefaultWorkManager : 0] DEBUG
org.hibernate.event.def.AbstractFlushingEventListener - processing flush-time cascades
(AbstractFlushingEventListener.java:111)
2007-06-27 21:18:39,237 [WorkManager.DefaultWorkManager : 0] DEBUG
org.hibernate.event.def.AbstractFlushingEventListener - dirty checking collections
(AbstractFlushingEventListener.java:154)
2007-06-27 21:18:39,238 [WorkManager.DefaultWorkManager : 0] TRACE
org.hibernate.event.def.AbstractFlushingEventListener - Flushing entities and processing
referenced collections (AbstractFlushingEventListener.java:171)
2007-06-27 21:18:39,249 [WorkManager.DefaultWorkManager : 0] TRACE
org.hibernate.event.def.AbstractFlushingEventListener - Processing unreferenced
collections (AbstractFlushingEventListener.java:210)
2007-06-27 21:18:39,251 [WorkManager.DefaultWorkManager : 0] TRACE
org.hibernate.event.def.AbstractFlushingEventListener - Scheduling collection
removes/(re)creates/updates (AbstractFlushingEventListener.java:224)
2007-06-27 21:18:39,252 [WorkManager.DefaultWorkManager : 0] DEBUG
org.hibernate.event.def.AbstractFlushingEventListener - Flushed: 1 insertions, 0
updates, 0 deletions to 1 objects (AbstractFlushingEventListener.java:85)
2007-06-27 21:18:39,254 [WorkManager.DefaultWorkManager : 0] DEBUG
org.hibernate.event.def.AbstractFlushingEventListener - Flushed: 0 (re)creations, 0
updates, 0 removals to 0 collections (AbstractFlushingEventListener.java:91)
2007-06-27 21:18:39,260 [WorkManager.DefaultWorkManager : 0] DEBUG
org.hibernate.pretty.Printer - listing entities: (Printer.java:83)
2007-06-27 21:18:39,262 [WorkManager.DefaultWorkManager : 0] DEBUG
org.hibernate.pretty.Printer - mypackage.types.Fee{<values anonymized>}
(Printer.java:90)
2007-06-27 21:18:39,264 [WorkManager.DefaultWorkManager : 0] TRACE
org.hibernate.event.def.AbstractFlushingEventListener - executing flush
(AbstractFlushingEventListener.java:290)
2007-06-27 21:18:39,265 [WorkManager.DefaultWorkManager : 0] TRACE
org.hibernate.jdbc.ConnectionManager - registering flush begin
(ConnectionManager.java:469)
2007-06-27 21:18:39,276 [WorkManager.DefaultWorkManager : 0] TRACE
org.hibernate.jdbc.ConnectionManager - registering flush end
(ConnectionManager.java:478)
2007-06-27 21:18:39,278 [WorkManager.DefaultWorkManager : 0] TRACE
org.hibernate.impl.SessionImpl - after transaction completion (SessionImpl.java:422)
2007-06-27 21:18:39,280 [WorkManager.DefaultWorkManager : 0] TRACE
org.hibernate.impl.SessionImpl - closing session (SessionImpl.java:273)
2007-06-27 21:18:39,281 [WorkManager.DefaultWorkManager : 0] TRACE
org.hibernate.jdbc.ConnectionManager - connection already null in cleanup : no action
(ConnectionManager.java:375)
2007-06-27 21:18:39,298 [WorkManager.DefaultWorkManager : 0] ERROR Could not insert Fee
org.hibernate.validator.InvalidStateException: validation failed for:
mypackage.server.types.Fee
at
org.hibernate.validator.event.ValidateEventListener.validate(ValidateEventListener.java:148)
at
org.hibernate.validator.event.ValidateEventListener.onPreInsert(ValidateEventListener.java:172)
at
org.hibernate.action.EntityInsertAction.preInsert(EntityInsertAction.java:156)
at
org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:49)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:234)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141)
This only seems to happen when I'm running inside an appserver (WebSphere 6.1) with
pooled connections - in my unit-tests using a
org.springframework.jdbc.datasource.DriverManagerDataSource (eg. non-pooled) it works OK -
and only if adding validating annotations (@NotEmpty)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira