gpt4 book ai didi

liferay - java.sql.SQLException : Connections could not be acquired from the underlying database! — HSQLDB

转载 作者:行者123 更新时间:2023-12-02 16:03:39 25 4
gpt4 key购买 nike

我已经安装了SQL Workbench/J Build 118我登录了Liferay PortalHSQL数据库。

然后我关闭了 SQL Workbench,没有对数据库进行任何更改。我重新启动了 Liferay tomcat 服务器,然后出现以下错误:

ERROR [localhost-startStop-1][DialectDetector:124] java.sql.SQLException:
Connections could not be acquired from the underlying database!

还有这个警告:

WARN  [C3P0PooledConnectionPoolManager[identityToken->3c8jofUN]-HelperThread-#4][BasicResourcePool:1851]
com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@3249a129 --
Acquisition Attempt Failed!!! Clearing pending acquires.
While trying to acquire a needed new resource, we failed to succeed more than
the maximum number of allowed acquisition attempts (3).
Last acquisition attempt exception:
java.sql.SQLException: error in script file line:
7 unexpected token: CONFLICT required: DEADLOCK

<子>ps。我正在使用最新版本的 HSQL JDBC 驱动程序 (v.2.3.3)

最佳答案

我通过更改 %LIFERAY_DIR%/data/hsql/lportal.script 文件中的这一行解决了该问题:

SET DATABASE TRANSACTION ROLLBACK ON CONFLICT TRUE

SET DATABASE TRANSACTION ROLLBACK ON DEADLOCK TRUE

然后我删除了这一行:

SET DATABASE SQL AVG SCALE 0

我成功启动了服务器。

关于liferay - java.sql.SQLException : Connections could not be acquired from the underlying database! — HSQLDB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33913394/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com