-->
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: Error - connection manager closed.
PostPosted: Fri Aug 26, 2011 12:24 am 
Newbie

Joined: Mon Aug 30, 2010 5:26 am
Posts: 3
when I am running this code
lastVersionNo = dataAccessManager.getJdbcTemplate()
.query(QUERY_LAST_VERS_NO_BY_ENTITL,...


I am getting error - connection manager closed.


org.hibernate.HibernateException: connection manager has been closed
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:141)
at org.hibernate.jdbc.BorrowedConnectionProxy.invoke(BorrowedConnectionProxy.java:50)
at $Proxy16.prepareStatement(Unknown Source)
at org.springframework.jdbc.core.JdbcTemplate$SimplePreparedStatementCreator.createPreparedStatement(JdbcTemplate.java:1318)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:580)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:636)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:665)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:673)


How can I get a connection and run this query.

thanks


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.