Topic: 请教:为什么会抛出javax.resource.ResourceException: No ManagedConnections Available!异常?

  Print this page

1.请教:为什么会抛出javax.resource.ResourceException: No ManagedConnections Available!异常? Copy to clipboard
Posted by: tozx96
Posted on: 2003-09-03 17:19

我的环境是:jboss-3.2.0_tomcat-4.1.24(MS JDBC驱动程序),MSSQLServer2000数据库,Windows2000 Professional操作系统。
刚开始时系统运行时正常的,不过运行一段时间后,任何对数据库的请求都会抛出javax.resource.ResourceException: No ManagedConnections Available!异常。是不是我把一些资源用了后没有释放造成的。我对数据库的操作都是通过实体Bean(CMP)进行的。请大家帮忙,谢谢。以下是具体异常的片段:
javax.resource.ResourceException: No ManagedConnections Available!
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.ge
tConnection(InternalManagedConnectionPool.java:183)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePo
ol.getConnection(JBossManagedConnectionPool.java:648)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManage
dConnection(BaseConnectionManager2.java:413)
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedCo
nnection(TxConnectionManager.java:331)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateC
onnection(BaseConnectionManager2.java:488)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$Connectio
nManagerProxy.allocateConnection(BaseConnectionManager2.java:798)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(Wrapp
erDataSource.java:102)

2.Re:请教:为什么会抛出javax.resource.ResourceException: No ManagedConnections Available!异常? [Re: tozx96] Copy to clipboard
Posted by: jameszhang
Posted on: 2003-09-03 18:47

看样好象是POOL 和 DATASOURCE之间没配好


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923