非英语语言环境的Alfresco H2 db初始化

时间:2020-04-09 11:59:51

标签: h2 alfresco

我试图在空的Alfresco h2数据库中执行NodeRef的INSERT操作,但出现错误:

### Error updating database. Cause: org.h2.jdbc.JdbcSQLException: Timeout trying to lock table 
Timeout trying to lock table ; SQL statement:
insert into alf_locale (id, version, locale_str)
values (?, ?, ?) [50200-190]
### The error may exist in alfresco/ibatis/#resource.dialect#/locale-insert-SqlMap.xml
### The error may involve alfresco.locale.insert.insert_Locale-Inline
### The error occurred while setting parameters
### SQL: insert into alf_locale (id, version, locale_str) values (?, ?, ?)

在开始时使用语言环境参数会发生这种情况:

 export MAVEN_OPTS="-Duser.language=ru -Duser.country=RU -Duser.region=RU"

当我使用默认语言环境时,一切正常。也是h2:db参数MVCC = TRUE 请告诉我,解决这个问题好吗? 谢谢!

0 个答案:

没有答案