Re: [Resin-interest] Closing dangling connections error

2007-06-18 Thread koyama
Hello.

Thank you for reply.

> This is most likely a bug in application code.  You need a finally  
> { conn.close() } for all connections.  You want to look for the next  
> stack trace, which would show when the connection was allocated  
> (which will make debugging easier.)

I understand it.
Stack trace error from resin was all.
But, I think my jdbc application code have wrong.

Tank you !!




___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Closing dangling connections error

2007-06-18 Thread Scott Ferguson

On Jun 18, 2007, at 2:18 AM, koyama wrote:

> Hello.
>
> I hava error message from resin 3.1.1
>
> I found status at http://bugs.caucho.com/view.php?id=998.

This is most likely a bug in application code.  You need a finally  
{ conn.close() } for all connections.  You want to look for the next  
stack trace, which would show when the connection was allocated  
(which will make debugging easier.)

That bug report is referring to the Amber stack trace specifically.   
It is not a general report on the dangling connections.
>
> Does resin 3.1.1 have this problem yet ?

It's not a resin problem.  It's an application bug that resin 3.1.1  
is detecting and reporting.

-- Scott

>
> Closing dangling connections.  All connections must have a close()  
> in a
> finally block
> java.lang.IllegalStateException: Connection
> UserConnection[com.caucho.sql.ManagedConn
> [EMAIL PROTECTED] was not closed. Connections must have a close()  
> in a
> finally block.
> at
> com.caucho.jca.UserTransactionImpl.abortTransaction 
> (UserTransactionImpl.java:498)
> at
> com.caucho.jca.UserTransactionProxy.abortTransaction 
> (UserTransactionProxy.java:182)
> at
> com.caucho.server.webapp.WebAppFilterChain.doFilter 
> (WebAppFilterChain.java:195)
> at
> com.caucho.server.dispatch.ServletInvocation.service 
> (ServletInvocation.java:240)
> at com.caucho.server.http.HttpRequest.handleRequest 
> (HttpRequest.java:263)
> at com.caucho.server.port.TcpConnection.run(TcpConnection.java:477)
> at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:600)
> at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:522)
> at java.lang.Thread.run(Thread.java:595)
>
>
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest