Error locking felix bundle cache after web app hot redeploy

Description

I occasionally get this error. It happens if I redeploy a WAR-based app (bundled with lucee.jar) to JBoss, or occasionally when republishing to Tomcat hosted within Eclipse. Once I see the error, however, the app does not work until I restart the server instance.

Environment

Windows 7 Pro
Tomcat 8 / JBoss 6.4 EAP
Java 8

Activity

Show:

Zac Spitzer 30 January 2022 at 12:49

the big problem is that, when this happens, the entire server config gets blown away out

30.01.2022 13:38:07,849 ERROR [server.application] application->no password set and no password file found at [C:\lucee\tomcat\lucee-server\context\password.txt]

Zac Spitzer 30 January 2022 at 12:36

this happens with a 5.3.7.47 loader without the required bundle, when starting offline

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
ERROR: Failed to download the bundle [com.sun.jna:5.5.0] from [https://update.lucee.org/rest/update/provider/download/com.sun.jna/5.5.0/?allowRedirect=true&jv=11.0.13] and copy to [C:\lucee\tomcat\lucee-server\bundles\com-sun-jna-5-5-0.jar]
ERROR: Error creating bundle cache.
java.lang.Exception: Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:180)
at org.apache.felix.framework.Felix.init(Felix.java:703)
at org.apache.felix.framework.Felix.init(Felix.java:641)
at org.apache.felix.framework.Felix.start(Felix.java:1084)
at lucee.loader.engine.CFMLEngineFactory.getFelix(CFMLEngineFactory.java:510)
at lucee.loader.osgi.BundleLoader.loadBundles(BundleLoader.java:105)
at lucee.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:368)
at lucee.loader.engine.CFMLEngineFactory.initEngineIfNecessary(CFMLEngineFactory.java:267)
at lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:169)
at lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:207)
at lucee.loader.servlet.RestServlet.init(RestServlet.java:42)

Zac Spitzer 30 January 2022 at 11:15
Edited

i was getting this a bit yesterday deploying a core .lco

Jesse Shaffer 28 January 2019 at 21:13

I have since attacked it from a different angle. Not sure whether the actual problem is fixed though.

Pothys - MitrahSoft 10 December 2018 at 11:35

Hi ,

Still you are facing this issue? If not can I close this ticket?

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Created 5 November 2015 at 19:44
Updated 30 January 2022 at 12:49