[請教] 會話Bean呼叫實體Bean時產生的Conection沒有關閉的異常

mm_hotsky發表於2005-02-18
很奇怪的錯誤,我用的會話Bean是無狀態的,並且會話Bean和實體Bean都是本地的,資料庫的連線應該是由容器自己來管理的,丟擲這樣的異常不知道是不是容器自己產生的錯誤呢?請大家幫忙看一下.

以下是Weblogic產生的錯誤提示:

<2005-2-18 下午03時53分52秒 CST> <Warning> <JDBC> <BEA-001074> <A JDBC pool connection leak was detected. A connection leak occurs when a connection obtained from the pool was not closed explicitly by calling close() and then was disposed by the garbage collector and returned to the connection pool. The following stack trace at create shows where the leaked connection was created.

[Null exception passed, creating stack trace for offending caller]
at weblogic.utils.StackTraceUtils.throwable2StackTrace(StackTraceUtils.java:28)
at weblogic.jdbc.wrapper.JTSConnection.finalizeInternal(JTSConnection.java:115)
at weblogic.jdbc.wrapper.JTSConnection_oracle_jdbc_driver_OracleConnection.finalize(Unknown Source)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
>

相關文章