Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Cannot Reproduce
-
2.15.2
-
None
-
None
-
Unknown
Description
I am using "org.apache.camel.component.leveldb.LevelDBAggregationRepository" as aggregation repository. Camel context imported to ActiveMQ context. ActiveMQ installed as windows service.
Case:
1. Execute restart command on activemq.
2. Camel cannot start.
3. If then start service manually - camel successfully starts.
Exception:
INFO | jvm 1 | 2015/11/30 09:50:58 | {}
INFO | jvm 1 | 2015/11/30 10:02:46 | Restarting broker
INFO | jvm 1 | 2015/11/30 10:02:46 | Loading message broker from: xbean:activemq.xml
INFO | jvm 1 | 2015/11/30 10:02:47 | {}
INFO | jvm 1 | 2015/11/30 10:02:54 | ERROR: java.lang.RuntimeException: Failed to execute broker build task. Reason: org.apache.camel.RuntimeCamelException: java.lang.RuntimeException: Error opening LevelDB with file F:\AMQ\bin\win64\..\..\data\aggregation\aggregate_%2A.%2A
INFO | jvm 1 | 2015/11/30 10:02:54 | java.lang.RuntimeException: Failed to execute broker build task. Reason: org.apache.camel.RuntimeCamelException: java.lang.RuntimeException: Error opening LevelDB with file F:\AMQ\bin\win64\..\..\data\aggregation\aggregate_%2A.%2A
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:101)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)
INFO | jvm 1 | 2015/11/30 10:02:54 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2015/11/30 10:02:54 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2015/11/30 10:02:54 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2015/11/30 10:02:54 | at java.lang.reflect.Method.invoke(Unknown Source)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.activemq.console.Main.runTaskClass(Main.java:262)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.activemq.console.Main.main(Main.java:115)
INFO | jvm 1 | 2015/11/30 10:02:54 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2015/11/30 10:02:54 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2015/11/30 10:02:54 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2015/11/30 10:02:54 | at java.lang.reflect.Method.invoke(Unknown Source)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO | jvm 1 | 2015/11/30 10:02:54 | at java.lang.Thread.run(Unknown Source)
INFO | jvm 1 | 2015/11/30 10:02:54 | Caused by: org.apache.camel.RuntimeCamelException: java.lang.RuntimeException: Error opening LevelDB with file F:\AMQ\bin\win64\..\..\data\aggregation\aggregate_%2A.%2A
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1619)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:123)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:332)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:950)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:97)
INFO | jvm 1 | 2015/11/30 10:02:54 | ... 16 more
INFO | jvm 1 | 2015/11/30 10:02:54 | Caused by: java.lang.RuntimeException: Error opening LevelDB with file F:\AMQ\bin\win64\..\..\data\aggregation\aggregate_%2A.%2A
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.component.leveldb.LevelDBFile.start(LevelDBFile.java:177)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.component.leveldb.LevelDBAggregationRepository.doStart(LevelDBAggregationRepository.java:414)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.processor.aggregate.AggregateProcessor.doStart(AggregateProcessor.java:1053)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1272)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:44)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:31)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:155)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1272)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:44)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:31)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1272)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:44)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:31)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:155)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.impl.RouteService.startChildService(RouteService.java:340)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.impl.RouteService.warmUp(RouteService.java:182)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:3090)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3020)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:2797)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:2653)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:167)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2467)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2463)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2486)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2463)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2432)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:255)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:121)
INFO | jvm 1 | 2015/11/30 10:02:54 | ... 29 more
INFO | jvm 1 | 2015/11/30 10:02:54 | Caused by: org.fusesource.leveldbjni.internal.NativeDB$DBException: IO error: F:\AMQ\data\aggregation\aggregate_%2A.%2A\MANIFEST-000002: The handle is invalid.
INFO | jvm 1 | 2015/11/30 10:02:54 |
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.fusesource.leveldbjni.internal.NativeDB.checkStatus(NativeDB.java:200)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.fusesource.leveldbjni.internal.NativeDB.open(NativeDB.java:218)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.fusesource.leveldbjni.JniDBFactory.open(JniDBFactory.java:168)
INFO | jvm 1 | 2015/11/30 10:02:54 | at org.apache.camel.component.leveldb.LevelDBFile.start(LevelDBFile.java:175)
INFO | jvm 1 | 2015/11/30 10:02:54 | ... 105 more