C3P0发生如下错误,正在寻求解决方法。
[hb] WARN [Timer-16] 2011-01-23 19:36:52 - com.mchange.v2.async.ThreadPoolAsynchronousRunner(608) - com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@8e8f3a -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!
[hb] WARN [Timer-16] 2011-01-23 19:37:23 - com.mchange.v2.async.ThreadPoolAsynchronousRunner(624) - com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@8e8f3a -- APPARENT DEADLOCK!!! Complete Status:
Managed Threads: 3
Active Threads: 3
Active Tasks:
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@188ab5 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@13aac9e (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@11af639 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1)
Pending Tasks:
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@11b2f51
Pool thread stack traces:
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main]
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:560)
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2,5,main]
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:560)
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1,5,main]
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:560)
[hb] WARN [Timer-16] 2011-01-23 19:54:46 - com.mchange.v2.async.ThreadPoolAsynchronousRunner(608) - com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@8e8f3a -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!
[hb] WARN [Timer-16] 2011-01-23 19:55:05 - com.mchange.v2.async.ThreadPoolAsynchronousRunner(624) - com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@8e8f3a -- APPARENT DEADLOCK!!! Complete Status:
Managed Threads: 3
Active Threads: 3
Active Tasks:
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@6f55b4 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@163bf85 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1)
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@1b2ead1 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)
Pending Tasks:
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1564971
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1efbe4d
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@b6ebab
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@12a4190
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@136589c
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@f39eb4
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@384c52
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1ac9c4
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@b47667
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1c97911
Pool thread stack traces:
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2,5,main]
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:560)
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1,5,main]
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:560)
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main]
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:560)
本人的问题解决是因为:
由于数据源配置出错,数据库名字后面多了一个空格导致的。
分享到:
相关推荐
网上传言C3P0是因为本身的BUG问题,然而今天我遇到这个问题并解决了,结果发现并不是。通过配置c3p0.maxStatements=0 这种方案只是治标不治本,或者干脆无效。我上传的解决方案肯定能解决这个问题的根本原因。...
SQL Server上的一个奇怪的Deadlock及其分析方法 Deadlock是SQL Server中的一种常见问题,它会导致事务无法继续执行,影响系统的性能和可靠性。了解Deadlock的产生原因和分析方法是非常重要的。本文将详细介绍SQL ...
当遇到无法访问MySQL数据库时,可能会出现如描述中的异常情况:“ThreadPoolAsynchronousRunner - com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@75d634ea -- APPARENT DEADLOCK!...
"Apparent"是一个开源的Swift µFramework(微型框架),它旨在简化这个过程,让开发者能够更优雅地处理UIAppearance。 在Objective-C中,UIAppearance接口非常直观,允许开发者通过类方法来设置特定UI组件的全局...
"power_flow.zip_apparent_流动_流动方程_能量方程_能量流动"这个标题暗示了我们正在探讨的是电力系统的功率流分析,这涉及到电能如何在电网中传输。"apparent flow"(视在流动)和"流动方程"可能指的是电路理论中的...
- 完成:complete, fulfill, accomplish, achieve - 保存:keep, preserve, retain, hold 4. 影响与损害: - 有害于:destroy, impair, undermine, jeopardize - 减轻:ease, alleviate, relieve, lighten 三...
表观太阳时间该应用程序可计算特定位置和时间范围内的太阳能数据。 它利用了和 。 为了运行此演示应用程序的实例,您需要生成自己的API密钥,并从~/config.js文件中导出它们: const geocodeApiKey = 'YOUR_OWN_...
"Apparent Contour" 是一个开源项目,专注于处理三维(3D)模型的外观轮廓。在计算机图形学中,外观轮廓是指当一个3D对象被渲染时,由于法线(normal)与观察者视线(view direction)垂直而形成的边缘。这些轮廓在...
r.raise_for_status() r.encoding=r.apparent_encoding return r.text except: return "error" def fillUnivList(ulist,html): soup=BeautifulSoup(html,"html.parser") for tr in soup.find('tbody').children: ...
* `apparent_encoding`: 从内容分析出的响应内容的编码方式(备选编码方式)。 * `content`: HTTP 响应内容的二进制形式。 * `headers`: HTTP 响应内容的头部内容。 requests 模块访问页面 requests 模块可以用来...
response.encoding = response.apparent_encoding # 设置正确的编码 return response.text except: print("Failed to get the content of the url") ``` **知识点解析**: 1. **requests.get(url)**:这是发送 ...
- `apparent_encoding`:基于内容分析的编码方式,当`encoding`不准确时可以使用。 - `content`:响应内容的二进制形式。 **注意**:如果HTTP头中没有指定`charset`,`encoding`默认为ISO-8859-1,而`apparent_...
response.encoding = response.apparent_encoding print("状态码:", response.status_code) print(response.text) ``` 第二个实例演示了get方法的基本使用,打印出响应的状态码和内容: ```python import requests...
r.raise_for_status() r.encoding = r.apparent_encoding return r.text except: return "" def fillUnivList(ulist, html): soup = BeautifulSoup(html, "html.parser") for a in soup.find('tbody')....
- 完成:complete可以换成fulfill, accomplish或achieve。 - 保存:keep可以用preserve, retain或hold来表示。 - 有害于:destroy可以用impair, undermine或jeopardize来替换。 - 减轻:ease可以用alleviate, ...
* apparent:明显的、 rõ ràng的 * arbitrary:任意的、随意的 * automatic:自动的、机械的 * auxiliary:辅助的、次要的 * available:可利用的、可用的 * awful:可怕的、糟糕的 * awkward:笨拙的、尴尬的 ...
- 完成:complete、fulfill、accomplish和achieve表示完成任务或达成目标。 - 保存:keep、preserve、retain和hold都有保持或保存的意思。 - 有害于:destroy、impair、undermine和jeopardize都表示对某事造成...
* apparent:显然的,明白的 * appeal:呼吁,恳求 * appetite:胃口;欲望 * applause:鼓掌,掌声 * appliance:器具,器械 * applicable:可应用的,适当的 * applicant:申请人 这些词汇继续拓展了学生的词汇量...
程序语言为Fortran,计算速度快,程序可改性也很强,欢迎学习电法的同行来下载!
“This timely book says out loud what has finally become apparent: in the modern world, Data is Business, and you can no longer think business without thinking data. Read this book and you will ...