Apache Camel Aggregator Repository throws OverlappingFileLockExceptionWhat's the difference between @Component, @Repository & @Service annotations in Spring?What exactly is Apache Camel?Spring Boot logging issue with logbackUnable to configure LocalContainerEntityManagerFactoryBean from @EntityScan, ensure an appropriate bean is registeredPropertiesComponent with name properties must be defined in CamelContext to support property placeholdersspring boot + mongodb + camel route connection issueCamel route creation error, No component found with scheme: mongodbHow to change HikariDataource bean name in JHIPSTER generated context?The below error i am getting when i start the tomcatSpring Boot Runs on Tomcat 8.5.x but not 8.0.37 java.lang.NoClassDefFoundError: org/apache/coyote/UpgradeProtocol

What's the difference between にしては、 わりに and くせに?

Children's short story about material that accelerates away from gravity

How should I behave to assure my friends that I am not after their money?

How can I check type T is among parameter pack Ts... in C++?

Why is a blank required between "[[" and "-e xxx" in ksh?

How to convert object fill in to fine lines?

Find smallest index that is identical to the value in an array

Does the UK have a written constitution?

Why cruise at 7000' in an A319?

What shortcut does ⌦ symbol in Camunda macOS app indicate and how to invoke it?

Inverse-quotes-quine

A player is constantly pestering me about rules, what do I do as a DM?

Transitive action of a discrete group on a compact space

Are there any vegetarian astronauts?

Does ultrasonic bath cleaning damage laboratory volumetric glassware calibration?

“Faire” being used to mean “avoir l’air”?

Do 3D printers really reach 50 micron (0.050mm) accuracy?

Should I hide continue button until tasks are completed?

How well known and how commonly used was Huffman coding in 1979?

Why does this fireplace work?

How exactly is a normal force exerted, at the molecular level?

Do we or do we not observe (measure) superpositions all the time?

Why won't the ground take my seed?

Why is Madam Hooch not a professor?



Apache Camel Aggregator Repository throws OverlappingFileLockException


What's the difference between @Component, @Repository & @Service annotations in Spring?What exactly is Apache Camel?Spring Boot logging issue with logbackUnable to configure LocalContainerEntityManagerFactoryBean from @EntityScan, ensure an appropriate bean is registeredPropertiesComponent with name properties must be defined in CamelContext to support property placeholdersspring boot + mongodb + camel route connection issueCamel route creation error, No component found with scheme: mongodbHow to change HikariDataource bean name in JHIPSTER generated context?The below error i am getting when i start the tomcatSpring Boot Runs on Tomcat 8.5.x but not 8.0.37 java.lang.NoClassDefFoundError: org/apache/coyote/UpgradeProtocol






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have three different routes using Aggregator EIP for storing. They have different stores defined.



When restarting my Camel application on Tomcat my application throws an exception of type OverlappingFileLockException.



The error is not always the same, it can differ on the repository.




org.apache.camel.RuntimeCamelException:
org.apache.camel.FailedToCreateRouteException: Failed to create route
route1: Route(route1)[[From[direct:brexit]] -> [Aggregate[true ->
[L... because of OverlappingFileLockException at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1826)
at
org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:136)
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:174)
at
org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at
org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402)
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359)
at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:896)
at
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:163)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552)
at
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
at
org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157)
at
org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137)
at
org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91)
at
org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:988)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1860)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
Source) at java.util.concurrent.FutureTask.run(Unknown Source) at
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at
java.lang.Thread.run(Unknown Source) Caused by:
org.apache.camel.FailedToCreateRouteException: Failed to create route
route1: Route(route1)[[From[direct:brexit]] -> [Aggregate[true ->
[L... because of OverlappingFileLockException at
org.apache.camel.impl.RouteService.warmUp(RouteService.java:147) at
org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:3953)
at
org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3860)
at
org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3646)
at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3489)
at
org.apache.camel.impl.DefaultCamelContext$4.call(DefaultCamelContext.java:3248)
at
org.apache.camel.impl.DefaultCamelContext$4.call(DefaultCamelContext.java:3244)
at
org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3267)
at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3244)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3160)
at
org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:133)
... 29 common frames omitted Caused by:
java.nio.channels.OverlappingFileLockException: null at
sun.nio.ch.SharedFileLockTable.checkList(Unknown Source) at
sun.nio.ch.SharedFileLockTable.add(Unknown Source) at
sun.nio.ch.FileChannelImpl.tryLock(Unknown Source) at
java.nio.channels.FileChannel.tryLock(Unknown Source) at
org.iq80.leveldb.impl.DbLock.(DbLock.java:47) at
org.iq80.leveldb.impl.DbImpl.(DbImpl.java:169) at
org.iq80.leveldb.impl.Iq80DBFactory.open(Iq80DBFactory.java:83) at
org.apache.camel.component.leveldb.LevelDBFile.start(LevelDBFile.java:175)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.component.leveldb.LevelDBAggregationRepository.doStart(LevelDBAggregationRepository.java:412)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at
org.apache.camel.processor.aggregate.AggregateProcessor.doStart(AggregateProcessor.java:1384)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at
org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1484)
at
org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:44)
at
org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:31)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at
org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:160)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:80)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.impl.RouteService.startChildService(RouteService.java:370)
at org.apache.camel.impl.RouteService.doWarmUp(RouteService.java:196)
at org.apache.camel.impl.RouteService.warmUp(RouteService.java:145)
... 40 common frames omitted




All three routes are using a LevelDBAggregationRepository using a different repositoryName and persistenFileName like this:



 LevelDBAggregationRepository shuttleRepo = new LevelDBAggregationRepository("shuttleArt26",
"mifir/data/shuttle/article26.dat");

LevelDBAggregationRepository myTransRepoBrexit = new LevelDBAggregationRepository("jmstransBrexit",
"mifir/data/brexit/jmstransBrexit.dat");

LevelDBAggregationRepository myTransRepo = new LevelDBAggregationRepository("jmstrans",
"mifir/data/art26/jmstrans.dat");


When stopping and restarting Tomcat service no exceptions are thrown.



The issues came after implementing more than one Aggregator…



Camel: 2.23.1

Spring Boot: 2.1.3.RELEASE

Tomcat: 8.5 Windows



What is wrong?



Thx



Mike










share|improve this question
























  • Debugging the JNI on tomcat makes visible that in Tomcat the chosen JNI library is org.iq80.leveldb.* but when running locally it uses org.fusesource.leveldbjni.*

    – Mikael Grevsten
    Mar 27 at 10:18


















0















I have three different routes using Aggregator EIP for storing. They have different stores defined.



When restarting my Camel application on Tomcat my application throws an exception of type OverlappingFileLockException.



The error is not always the same, it can differ on the repository.




org.apache.camel.RuntimeCamelException:
org.apache.camel.FailedToCreateRouteException: Failed to create route
route1: Route(route1)[[From[direct:brexit]] -> [Aggregate[true ->
[L... because of OverlappingFileLockException at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1826)
at
org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:136)
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:174)
at
org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at
org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402)
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359)
at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:896)
at
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:163)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552)
at
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
at
org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157)
at
org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137)
at
org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91)
at
org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:988)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1860)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
Source) at java.util.concurrent.FutureTask.run(Unknown Source) at
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at
java.lang.Thread.run(Unknown Source) Caused by:
org.apache.camel.FailedToCreateRouteException: Failed to create route
route1: Route(route1)[[From[direct:brexit]] -> [Aggregate[true ->
[L... because of OverlappingFileLockException at
org.apache.camel.impl.RouteService.warmUp(RouteService.java:147) at
org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:3953)
at
org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3860)
at
org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3646)
at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3489)
at
org.apache.camel.impl.DefaultCamelContext$4.call(DefaultCamelContext.java:3248)
at
org.apache.camel.impl.DefaultCamelContext$4.call(DefaultCamelContext.java:3244)
at
org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3267)
at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3244)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3160)
at
org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:133)
... 29 common frames omitted Caused by:
java.nio.channels.OverlappingFileLockException: null at
sun.nio.ch.SharedFileLockTable.checkList(Unknown Source) at
sun.nio.ch.SharedFileLockTable.add(Unknown Source) at
sun.nio.ch.FileChannelImpl.tryLock(Unknown Source) at
java.nio.channels.FileChannel.tryLock(Unknown Source) at
org.iq80.leveldb.impl.DbLock.(DbLock.java:47) at
org.iq80.leveldb.impl.DbImpl.(DbImpl.java:169) at
org.iq80.leveldb.impl.Iq80DBFactory.open(Iq80DBFactory.java:83) at
org.apache.camel.component.leveldb.LevelDBFile.start(LevelDBFile.java:175)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.component.leveldb.LevelDBAggregationRepository.doStart(LevelDBAggregationRepository.java:412)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at
org.apache.camel.processor.aggregate.AggregateProcessor.doStart(AggregateProcessor.java:1384)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at
org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1484)
at
org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:44)
at
org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:31)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at
org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:160)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:80)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.impl.RouteService.startChildService(RouteService.java:370)
at org.apache.camel.impl.RouteService.doWarmUp(RouteService.java:196)
at org.apache.camel.impl.RouteService.warmUp(RouteService.java:145)
... 40 common frames omitted




All three routes are using a LevelDBAggregationRepository using a different repositoryName and persistenFileName like this:



 LevelDBAggregationRepository shuttleRepo = new LevelDBAggregationRepository("shuttleArt26",
"mifir/data/shuttle/article26.dat");

LevelDBAggregationRepository myTransRepoBrexit = new LevelDBAggregationRepository("jmstransBrexit",
"mifir/data/brexit/jmstransBrexit.dat");

LevelDBAggregationRepository myTransRepo = new LevelDBAggregationRepository("jmstrans",
"mifir/data/art26/jmstrans.dat");


When stopping and restarting Tomcat service no exceptions are thrown.



The issues came after implementing more than one Aggregator…



Camel: 2.23.1

Spring Boot: 2.1.3.RELEASE

Tomcat: 8.5 Windows



What is wrong?



Thx



Mike










share|improve this question
























  • Debugging the JNI on tomcat makes visible that in Tomcat the chosen JNI library is org.iq80.leveldb.* but when running locally it uses org.fusesource.leveldbjni.*

    – Mikael Grevsten
    Mar 27 at 10:18














0












0








0








I have three different routes using Aggregator EIP for storing. They have different stores defined.



When restarting my Camel application on Tomcat my application throws an exception of type OverlappingFileLockException.



The error is not always the same, it can differ on the repository.




org.apache.camel.RuntimeCamelException:
org.apache.camel.FailedToCreateRouteException: Failed to create route
route1: Route(route1)[[From[direct:brexit]] -> [Aggregate[true ->
[L... because of OverlappingFileLockException at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1826)
at
org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:136)
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:174)
at
org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at
org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402)
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359)
at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:896)
at
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:163)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552)
at
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
at
org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157)
at
org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137)
at
org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91)
at
org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:988)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1860)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
Source) at java.util.concurrent.FutureTask.run(Unknown Source) at
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at
java.lang.Thread.run(Unknown Source) Caused by:
org.apache.camel.FailedToCreateRouteException: Failed to create route
route1: Route(route1)[[From[direct:brexit]] -> [Aggregate[true ->
[L... because of OverlappingFileLockException at
org.apache.camel.impl.RouteService.warmUp(RouteService.java:147) at
org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:3953)
at
org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3860)
at
org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3646)
at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3489)
at
org.apache.camel.impl.DefaultCamelContext$4.call(DefaultCamelContext.java:3248)
at
org.apache.camel.impl.DefaultCamelContext$4.call(DefaultCamelContext.java:3244)
at
org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3267)
at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3244)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3160)
at
org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:133)
... 29 common frames omitted Caused by:
java.nio.channels.OverlappingFileLockException: null at
sun.nio.ch.SharedFileLockTable.checkList(Unknown Source) at
sun.nio.ch.SharedFileLockTable.add(Unknown Source) at
sun.nio.ch.FileChannelImpl.tryLock(Unknown Source) at
java.nio.channels.FileChannel.tryLock(Unknown Source) at
org.iq80.leveldb.impl.DbLock.(DbLock.java:47) at
org.iq80.leveldb.impl.DbImpl.(DbImpl.java:169) at
org.iq80.leveldb.impl.Iq80DBFactory.open(Iq80DBFactory.java:83) at
org.apache.camel.component.leveldb.LevelDBFile.start(LevelDBFile.java:175)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.component.leveldb.LevelDBAggregationRepository.doStart(LevelDBAggregationRepository.java:412)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at
org.apache.camel.processor.aggregate.AggregateProcessor.doStart(AggregateProcessor.java:1384)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at
org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1484)
at
org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:44)
at
org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:31)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at
org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:160)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:80)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.impl.RouteService.startChildService(RouteService.java:370)
at org.apache.camel.impl.RouteService.doWarmUp(RouteService.java:196)
at org.apache.camel.impl.RouteService.warmUp(RouteService.java:145)
... 40 common frames omitted




All three routes are using a LevelDBAggregationRepository using a different repositoryName and persistenFileName like this:



 LevelDBAggregationRepository shuttleRepo = new LevelDBAggregationRepository("shuttleArt26",
"mifir/data/shuttle/article26.dat");

LevelDBAggregationRepository myTransRepoBrexit = new LevelDBAggregationRepository("jmstransBrexit",
"mifir/data/brexit/jmstransBrexit.dat");

LevelDBAggregationRepository myTransRepo = new LevelDBAggregationRepository("jmstrans",
"mifir/data/art26/jmstrans.dat");


When stopping and restarting Tomcat service no exceptions are thrown.



The issues came after implementing more than one Aggregator…



Camel: 2.23.1

Spring Boot: 2.1.3.RELEASE

Tomcat: 8.5 Windows



What is wrong?



Thx



Mike










share|improve this question
















I have three different routes using Aggregator EIP for storing. They have different stores defined.



When restarting my Camel application on Tomcat my application throws an exception of type OverlappingFileLockException.



The error is not always the same, it can differ on the repository.




org.apache.camel.RuntimeCamelException:
org.apache.camel.FailedToCreateRouteException: Failed to create route
route1: Route(route1)[[From[direct:brexit]] -> [Aggregate[true ->
[L... because of OverlappingFileLockException at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1826)
at
org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:136)
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:174)
at
org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at
org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402)
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359)
at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:896)
at
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:163)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552)
at
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
at
org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157)
at
org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137)
at
org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91)
at
org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:988)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1860)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
Source) at java.util.concurrent.FutureTask.run(Unknown Source) at
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at
java.lang.Thread.run(Unknown Source) Caused by:
org.apache.camel.FailedToCreateRouteException: Failed to create route
route1: Route(route1)[[From[direct:brexit]] -> [Aggregate[true ->
[L... because of OverlappingFileLockException at
org.apache.camel.impl.RouteService.warmUp(RouteService.java:147) at
org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:3953)
at
org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3860)
at
org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3646)
at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3489)
at
org.apache.camel.impl.DefaultCamelContext$4.call(DefaultCamelContext.java:3248)
at
org.apache.camel.impl.DefaultCamelContext$4.call(DefaultCamelContext.java:3244)
at
org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3267)
at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3244)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3160)
at
org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:133)
... 29 common frames omitted Caused by:
java.nio.channels.OverlappingFileLockException: null at
sun.nio.ch.SharedFileLockTable.checkList(Unknown Source) at
sun.nio.ch.SharedFileLockTable.add(Unknown Source) at
sun.nio.ch.FileChannelImpl.tryLock(Unknown Source) at
java.nio.channels.FileChannel.tryLock(Unknown Source) at
org.iq80.leveldb.impl.DbLock.(DbLock.java:47) at
org.iq80.leveldb.impl.DbImpl.(DbImpl.java:169) at
org.iq80.leveldb.impl.Iq80DBFactory.open(Iq80DBFactory.java:83) at
org.apache.camel.component.leveldb.LevelDBFile.start(LevelDBFile.java:175)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.component.leveldb.LevelDBAggregationRepository.doStart(LevelDBAggregationRepository.java:412)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at
org.apache.camel.processor.aggregate.AggregateProcessor.doStart(AggregateProcessor.java:1384)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at
org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1484)
at
org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:44)
at
org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:31)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at
org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:160)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:80)
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at
org.apache.camel.impl.RouteService.startChildService(RouteService.java:370)
at org.apache.camel.impl.RouteService.doWarmUp(RouteService.java:196)
at org.apache.camel.impl.RouteService.warmUp(RouteService.java:145)
... 40 common frames omitted




All three routes are using a LevelDBAggregationRepository using a different repositoryName and persistenFileName like this:



 LevelDBAggregationRepository shuttleRepo = new LevelDBAggregationRepository("shuttleArt26",
"mifir/data/shuttle/article26.dat");

LevelDBAggregationRepository myTransRepoBrexit = new LevelDBAggregationRepository("jmstransBrexit",
"mifir/data/brexit/jmstransBrexit.dat");

LevelDBAggregationRepository myTransRepo = new LevelDBAggregationRepository("jmstrans",
"mifir/data/art26/jmstrans.dat");


When stopping and restarting Tomcat service no exceptions are thrown.



The issues came after implementing more than one Aggregator…



Camel: 2.23.1

Spring Boot: 2.1.3.RELEASE

Tomcat: 8.5 Windows



What is wrong?



Thx



Mike







java spring-boot apache-camel






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 26 at 14:28







Mikael Grevsten

















asked Mar 25 at 11:39









Mikael GrevstenMikael Grevsten

3844 silver badges28 bronze badges




3844 silver badges28 bronze badges












  • Debugging the JNI on tomcat makes visible that in Tomcat the chosen JNI library is org.iq80.leveldb.* but when running locally it uses org.fusesource.leveldbjni.*

    – Mikael Grevsten
    Mar 27 at 10:18


















  • Debugging the JNI on tomcat makes visible that in Tomcat the chosen JNI library is org.iq80.leveldb.* but when running locally it uses org.fusesource.leveldbjni.*

    – Mikael Grevsten
    Mar 27 at 10:18

















Debugging the JNI on tomcat makes visible that in Tomcat the chosen JNI library is org.iq80.leveldb.* but when running locally it uses org.fusesource.leveldbjni.*

– Mikael Grevsten
Mar 27 at 10:18






Debugging the JNI on tomcat makes visible that in Tomcat the chosen JNI library is org.iq80.leveldb.* but when running locally it uses org.fusesource.leveldbjni.*

– Mikael Grevsten
Mar 27 at 10:18













0






active

oldest

votes














Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55336969%2fapache-camel-aggregator-repository-throws-overlappingfilelockexception%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55336969%2fapache-camel-aggregator-repository-throws-overlappingfilelockexception%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript