-->
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.  [ 2 posts ] 
Author Message
 Post subject: C3P0 - Connection Pooling Problem
PostPosted: Tue Dec 30, 2003 10:30 am 
Newbie

Joined: Sun Nov 30, 2003 4:46 am
Posts: 17
Hi,
I have a class A and B. and B has a 1-1 relationship with A such that they have the following mapping:

<class name="B" table="B">
<id name="id" column="id">
<generator class="foreign">
<param name="property">Aref</param>
</generator>
</id>

<one-to-one name="Aref" class="A"
constrained="true" cascade="all"/>
</class>

<class name="A" table="A">
<id name="id" column="id">
<generator class="identity"/>
</id>
</class>

Now when I try to save B I expect that A will be saved too. But I get the following connection pooling error:

Quote:
c3p0 -- Uh oh... getConnection() was called on a PooledConnection when it had already provided a client with a Connection that has not yet been closed. This probably indicates a bug in the connection pool!!!

[ERROR] JDBCExceptionReporter - -[Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode.


Is it that C3P0 library that has been recommended in Hiberbate docs is buggy?
are there any other alternatives?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 30, 2003 11:13 am 
Newbie

Joined: Sun Nov 30, 2003 4:46 am
Posts: 17
Im using MS SQL Server 2000 and the JDBC driver is SQLServer 2000 Driver for JDBC


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

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.