Yes. Not sure if it's this exact error, but occasionally the build fails on my 
Windows laptop because of something with Felix. "Unable to lock bundle cache" 
looks  familiar. Restarting the build always fixes it. 

Sent from my iPhone

> On 2016/04/28, at 8:42, Gary Gregory <[email protected]> wrote:
> 
> Hi,
> 
> I've never seen this failure before:
> 
> ERROR: Error creating bundle cache. (java.lang.Exception: Unable to lock 
> bundle cache: java.nio.channels.OverlappingFileLockException)
> java.lang.Exception: Unable to lock bundle cache: 
> java.nio.channels.OverlappingFileLockException
>         at 
> org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:176)
>         at org.apache.felix.framework.Felix.init(Felix.java:689)
>         at org.apache.felix.framework.Felix.init(Felix.java:624)
>         at org.apache.logging.log4j.junit.OsgiRule.before(OsgiRule.java:52)
>         at 
> org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:46)
>         at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>         at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>         at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>         at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>         at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>         at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
>         at 
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
>         at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
>         at 
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
> Tests run: 3, Failures: 0, Errors: 1, Skipped: 2, Time elapsed: 2.185 sec <<< 
> FAILURE! - in org.apache.logging.log4j.osgi.felix.FelixLoadApiBundleTest
> testSimpleLogInAnOsgiContext(org.apache.logging.log4j.osgi.felix.FelixLoadApiBundleTest)
>   Time elapsed: 0.044 sec  <<< ERROR!
> org.osgi.framework.BundleException: Error creating bundle cache.
> Caused by: java.lang.Exception: Unable to lock bundle cache: 
> java.nio.channels.OverlappingFileLockException
> 
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 3, Time elapsed: 2.812 sec - 
> in org.apache.logging.log4j.osgi.equinox.EquinoxLoadApiBundleTest
> 
> Results :
> 
> Tests in error:
>   FelixLoadApiBundleTest.testSimpleLogInAnOsgiContext ยป Bundle Error creating 
> bu...
> 
> Anyone has any ideas?
> 
> Gary
> -- 
> E-Mail: [email protected] | [email protected] 
> Java Persistence with Hibernate, Second Edition
> JUnit in Action, Second Edition
> Spring Batch in Action
> Blog: http://garygregory.wordpress.com 
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory

Reply via email to