`

lock is locked... waiting 10 seconds for the database to be unlocked

 
阅读更多

 

今天配置Pure master slave with activeMQ, 碰到如下错误:

C:\apache-activemq-5.4.3\bin>activemq xbean:file:../conf/pure_master.xml

Java Runtime: Sun Microsystems Inc. 1.6.0_24 C:\Program Files\Java\jre6

  Heap sizes: current=15872k  free=14433k  max=506816k

    JVM args: -Dcom.sun.management.jmxremote -Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties -Dactivemq.classpath=C:\apache-activemq-5.4.3\bin\../conf;C:\apache-activemq-5.4.3\bin\../conf; -Dactivemq.home=C:\apache-activemq-5.4.3\bin\.. -Dactivemq.base=C:\apache-activemq-5.4.3\bin\..

ACTIVEMQ_HOME: C:\apache-activemq-5.4.3\bin\..

ACTIVEMQ_BASE: C:\apache-activemq-5.4.3\bin\..

Loading message broker from: xbean:file:../conf/pure_master.xml

 INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@15e83f9: startup date [Thu Oct 27 12:41:12 CST 2011];root of context hierarchy

 WARN | destroyApplicationContextOnStop parameter is deprecated, please use shutdown hooks instead

 INFO | PListStore:C:\apache-activemq-5.4.3\bin\..\data\pure_master\tmp_storage started

 INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[C:\apache-activemq-5.4.3\bin\..\data\kahadb_pure_master ]

 INFO | Database C:\apache-activemq-5.4.3\bin\..\data\kahadb_pure_master \lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.FileNotFoundException: C:\apache-activemq-5.4.3\bin\..\data\kahadb_pure_master \lock (The system cannot find the path specified)

 INFO | Database C:\apache-activemq-5.4.3\bin\..\data\kahadb_pure_master \lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.FileNotFoundException: C:\apache-activemq-5.4.3\bin\..\data\kahadb_pure_master \lock (The system cannot find the path specified)

 

 

原因竟是kahadb_pure_master 与 双引号" 之间多了一个空格.

 

错误:
        <persistenceAdapter>
            <kahaDB directory="${activemq.base}/data/kahadb_pure_master "/>
        </persistenceAdapter>
 

 

 

正确
        <persistenceAdapter>
            <kahaDB directory="${activemq.base}/data/kahadb_pure_master"/>
        </persistenceAdapter>
 

 

 

分享到:
评论

相关推荐

    解决sqlite死锁示例异常database is locked示例

    "database is locked"错误是SQLite在遇到死锁情况时抛出的异常,意味着数据库当前处于锁定状态,无法进行预期的操作。本文将深入探讨SQLite死锁的原因、诊断方法以及解决策略。 **1. SQLite死锁原因** SQLite死锁...

    disable/enable adb codes

    在Android系统开发和调试过程中,ADB(Android Debug Bridge)是一个不可或缺的工具。它允许开发者通过USB或网络连接在计算机上对设备进行各种操作,如安装应用、查看日志、执行命令等。标题“disable/enable adb ...

    微软内部资料-SQL性能优化3

    For example, if you defer constraint checking, it is your responsibility to ensure that the database is consistent. Isolation Concurrent transactions are isolated from the updates of other incomplete...

    SVN在客户端执行UPDATE报locked的处理办法

    ### SVN在客户端执行UPDATE报locked的处理办法 #### 背景介绍 在软件开发过程中,版本控制系统(Version Control System, VCS)是必不可少的工具之一。Subversion(SVN)作为一款开源的集中式版本控制系统,被广泛...

    sqlite死锁datebaselock解决方案

    在多线程环境下,由于并发操作不当,可能会出现“database is locked”(数据库被锁定)的错误,这通常涉及到SQLite的锁机制和事务处理。本文将深入探讨这个问题,并提供具体的解决方案。 一、SQLite锁机制 SQLite...

    Core is locked-up! stm32 flash 解锁

    stm32 flash解锁,我的是开发板,在按键中断中解锁flash,具体的见源代码,使用ram.icf,把程序烧录在ram中,环境是IAR6.10,库版本是3.0,成功解决Core is locked-up问题。~

    Oracle the account is locked解决办法

    本文将针对“Oracle the account is locked”这一主题进行深入探讨,包括其原因、查询方法以及具体的解锁步骤。 #### 错误提示与含义 当出现`ORA-28000: the account is locked`这样的错误提示时,表明当前尝试登录...

    Android多线程操作sqlite(Sqlite解决database locked问题)

    然而,在多线程环境中,由于并发访问数据库,可能会遇到“database locked”(数据库被锁定)的问题。本文将深入探讨如何在Android中使用多线程操作SQLite并解决数据库被锁定的问题。 首先,理解“database locked...

    pll.rar_back_frequency control_phase locked loop_pll lock_pll lo

    A phase-locked loop or phase lock loop (PLL) is a control system that generates an output signal whose phase is related to the phase of an input signal. While there are several differing types, it is ...

    微软内部资料-SQL性能优化2

    Each virtual memory address is tagged as to what access mode the processor must be running in. System space can only be accessed while in kernel mode, while user space is accessible in user mode. This...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    is written to stream, which is then read by the flex-property, for which the Assign method is called. - ADD: In TIdPool (module FlexUtils), added the method NextUsed (allows iterating all taken ...

    Micro CMOS Design, 2012.pdf

    This.book.is.mainly.written.and.organized.to.give.proper.perspectives.on.the.various. designs.of.data.converters.and.PLLs,.which.are.the.two.most.common.analog.circuit.com- ponents.in.SoCs..The....

    sqlLiteManager

    svn: 'E:\eclipse2018workspace2\SWS' is already locked. 出现的原因: SVN更新时意外中止,触发了SVN的保护机制 解决方案: 首先,打开隐藏的文件夹,会发现 .svn 文件夹,打开之后会发现有个wc.db的文件 使用...

    lock_table.rar_Table_lock table_oracle lock table

    在Oracle数据库系统中,"lock table" 是一个重要的管理功能,用于控制多个用户对特定表的并发访问。当一个用户对表执行修改操作(如INSERT、UPDATE或DELETE)时,Oracle会自动对表施加锁,以防止其他用户在同一时间...

    Radmin自动登录器v3.0-多国语言绿色版-Release1-20150615

    1、程序功能和使用环境介绍 2、程序操作方法介绍 3、登录信息文件RadminM.txt介绍 4、登录信息文件RadminM.txt的转换和编制 5、v3.0版新增解锁远程桌面功能 6、相关配置和多种语言支持介绍 ...

    java 锁 Lock接口详解.docx

    4. **状态查询**:`synchronized`无法检查是否已获取锁,而`Lock`的`isHeldByCurrentThread()`和`isLocked()`方法可以查询锁的状态。 在使用`Lock`时,需要注意手动释放锁,避免死锁。`Lock`的`unlock()`方法必须在...

    Radmin自动登录器v3.0

    1、程序功能和使用环境介绍 2、程序操作方法介绍 3、登录信息文件RadminM.txt介绍 4、登录信息文件RadminM.txt的转换和编制 5、v3.0版新增解锁 远程桌面功能 6、相关配置和多种语言支持介绍 ...

    proxysql-2.0.5-1-centos7.x86_64.rpm

    proxysql-2.0.5可修复'ProxySQL Error:connection is locked to hostgroup 10 but trying to reach hostgroup 20这个问题

    数位板压力测试

    This specification is intended to be an open standard, and as such the text and information contained herein may be freely used, copied, or distributed without compensation or licensing restrictions. ...

    Phaes-Locked Loops Design R.E.Best

    CD-Rom for the book "Phase-Locked Loops Design,Simulation and Applications by R.E.Best. A design program for Phase-locked loops circuits

Global site tag (gtag.js) - Google Analytics