-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: hibernate hangs on insert
PostPosted: Thu Aug 11, 2011 10:26 am 
Beginner
Beginner

Joined: Fri Jul 20, 2007 10:38 am
Posts: 49
I have an issue that hibernate hangs on an insert, I checked the connection pool but there are sufficient connections available. The hibernate logging doesn't reveal anything to me:
Code:
(INSERT STATEMENT ON POJO HERE)
jdbc.AbstractBatcher  - preparing statement
entity.AbstractEntityPersister  - Dehydrating entity: [org.company.domain.Pojo#13013]
type.StringType  - binding 'test' to parameter: 1
type.StringType  - binding '468' to parameter: 2
type.BooleanType  - binding 'true' to parameter: 3
type.IntegerType  - binding '13013' to parameter: 4
jdbc.AbstractBatcher  - Adding to batch
entity.AbstractEntityPersister  - Inserting entity: [org.company.domain.AnotherPojo#10010]
jdbc.AbstractBatcher  - Executing batch size: 1


A unittest proved fine, so there may be something with the spring configuration. It's a batch process that creates it's own session including a flush and clear etc. So I didn't set any of the transactionattributes on this method, but adding "PROPAGATION_REQUIRED" didn't help either.

I'm really stuck here, don't know where to look. Any thoughts would be very appreciated.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.