You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by melwong <mw...@pd.jaring.my> on 2009/02/08 02:38:47 UTC

java.sql.SQLException: Already closed.


-I'm using iBatis 2.3.4 and DBCP 1.2.2 on Tomcat 6
-When I start Tomcat and run my first request, things went fine
-Then I when i run my second request, error below happened
-My ibatis config file is attached

**********************************
ERROR LOG

java.sql.SQLException: Already closed.
                at
org.apache.commons.dbcp.PoolableConnection.close(PoolableConnection.java:84)
                at
org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.close(PoolingDataSource.java:181)
                at
com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransaction.close(JdbcTransaction.java:81)
                at
com.ibatis.sqlmap.engine.transaction.TransactionManager.end(TransactionManager.java:93)
                at
com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.endTransaction(SqlMapExecutorDelegate.java:734)
                at
com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.endTransaction(SqlMapSessionImpl.java:176)
                at
com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.endTransaction(SqlMapClientImpl.java:153)
              at
com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.autoEndTransaction(SqlMapExecutorDelegate.java:835)
                at
com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.insert(SqlMapExecutorDelegate.java:410)
                at
com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.insert(SqlMapSessionImpl.java:82)
                at
com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.insert(SqlMapClientImpl.java:58)
                at
my.com.justmobile.engine.SSUMEngine.log(SSUMEngine.java:408)
                at
my.com.justmobile.engine.SSUMEngine.validate(SSUMEngine.java:292)
                at
my.com.justmobile.engine.SSUMEngine.process(SSUMEngine.java:205)
                at
my.com.justmobile.SSUMServlet.processRequest(SSUMServlet.java:145)
                at my.com.justmobile.SSUMServlet.doGet(SSUMServlet.java:242)
                at
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
                at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
                at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
                at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:852)
                at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:584)
                at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
                at java.lang.Thread.run(Thread.java:619)

-- 
View this message in context: http://www.nabble.com/java.sql.SQLException%3A-Already-closed.-tp21895010p21895010.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: java.sql.SQLException: Already closed.

Posted by j-lists <ja...@gmail.com>.
Are you upgrading from a version before the two jars were merged into one? I
remember encountering a similar problem when the old second jar was
accidentally left in our classpath and in our lib directory.

-J

On Sun, Feb 8, 2009 at 10:40 PM, Larry Meadors <la...@gmail.com>wrote:

> What's the database?
>
> Larry
>

Re: java.sql.SQLException: Already closed.

Posted by Larry Meadors <la...@gmail.com>.
What's the database?

Larry