-->
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.  [ 3 posts ] 
Author Message
 Post subject: C3P0 dependency upgrade
PostPosted: Fri Mar 29, 2013 6:32 am 
Newbie

Joined: Sat Apr 02, 2011 1:06 pm
Posts: 11
Hey guys,

I just noticed here
http://repo1.maven.org/maven2/org/hibernate/hibernate-c3p0/4.2.0.Final/

that Hibernate is still using c3p0/c3p0/0.9.1

And you made the release on 19th of March.

However there has been a newer version of c3p0 just two months old:
com/mchange/c3p0/0.9.2

Is there any specific reason to stick with 0.9.1? If not do you plan to upgrade?


Top
 Profile  
 
 Post subject: Re: C3P0 dependency upgrade
PostPosted: Sat Mar 30, 2013 3:04 am 
Newbie

Joined: Sat Apr 02, 2011 1:06 pm
Posts: 11
OK,

to make it even more interesting, they have released 0.9.2.1 on 27th of march. And from time to time my code throws the "java.sql.SQLException: You can't operate on a closed Connection!!!" error, so I read this could be c3p0 issue dropping the connection. So I wanted to test the new versions.


Top
 Profile  
 
 Post subject: Re: C3P0 dependency upgrade
PostPosted: Sat Mar 30, 2013 3:36 am 
Newbie

Joined: Sat Apr 02, 2011 1:06 pm
Posts: 11
I tried to update to the latest version but, of course it didn't work. Instead I got the exception bellow:

Code:
Caused by:
javax.naming.NamingException: com.mchange.v2.c3p0.WrapperConnectionPoolDataSource; local class incompatible: stream classdesc serialVersionUID = -7086951306718003710, local class serialVersionUID = 7806429541739165290
   at org.eclipse.jetty.jndi.NamingContext.lookup(NamingContext.java:485)
   at org.eclipse.jetty.jndi.local.localContextRoot.lookup(localContextRoot.java:521)
   at org.eclipse.jetty.jndi.local.localContextRoot.lookup(localContextRoot.java:536)
   at javax.naming.InitialContext.lookup(InitialContext.java:411)
   at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154)


I think the only artifact that needs to be updated is the http://repo1.maven.org/maven2/org/hibernate/hibernate-c3p0/

Cheers, Petar


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.