Skip to content

LDEV-6144 - recover from stale Felix cache on startup (bundle name conflict)#2767

Closed
zspitzer wants to merge 1 commit into6.2from
LDEV-6144
Closed

LDEV-6144 - recover from stale Felix cache on startup (bundle name conflict)#2767
zspitzer wants to merge 1 commit into6.2from
LDEV-6144

Conversation

@zspitzer
Copy link
Copy Markdown
Member

https://luceeserver.atlassian.net/browse/LDEV-6144

Summary

  • When Felix starts and encounters "Bundle symbolic name and version are not unique" (caused by a stale cache, e.g. from LDEV-6145), Lucee would crash on startup with no recovery
  • Also fixes an existing bug in getFelix() where "Error creating bundle cache" was caught and the cache cleared, but Felix was never restarted — returning an unstarted Felix instance causing an NPE
  • Fix: catch the "not unique" BundleException from BundleLoader.loadBundles(), clear the stale Felix cache, and retry with a fresh Felix instance

Why this is needed alongside LDEV-6145

LDEV-6145 prevents future corruption, but users who already have a corrupted Felix cache (from an older Lucee version) cannot start Lucee at all — core never loads, so the LDEV-6145 fix never runs. This loader-level fix recovers from the corrupted state automatically on next restart.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 12, 2026

Lucee Test Results

    1 files  ±0  1 700 suites  ±0   6m 20s ⏱️ + 1m 28s
4 511 tests ±0  4 268 ✅ ±0  243 💤 ±0  0 ❌ ±0 
4 729 runs  ±0  4 427 ✅ ±0  302 💤 ±0  0 ❌ ±0 

Results for commit ee55982. ± Comparison against base commit e3f6e53.

♻️ This comment has been updated with latest results.

@michaeloffner
Copy link
Copy Markdown
Contributor

manually adapted the patch
82dd062

@zspitzer zspitzer deleted the LDEV-6144 branch April 1, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants