tracker issue : CF-4203581

select a category, or use search below
(searches all categories and all time range)

"java.lang.NoClassDefFoundError: java/nio/channels/FileLock" during shutdown and restart

| View in Tracker

Status/Resolution/Reason: Open//

Reporter/Name(from Bugbase): A. Bakia / ()

Created: 11/27/2018

Components: Caching, Distributed Caching

Versions: 2016

Failure Type: Others

Found In Build/Fixed In Build: 2016.0.07.311392 /

Priority/Frequency: Normal /

Locale/System: / Win 2016

Vote Count: 0

Problem Description: 
Whenever we restart ColdFusion we get the following error message in coldfusion-error.log.

Steps to Reproduce:
1) Restart ColdFusion (or a ColdFusion instance);
2) Open the log file, coldfusion-error.log, in a text editor and examine the lines corresponding to the restart.

Actual Result:
You will see the following error message:

Jul 26, 2018 11:01:18 AM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-nio-8026"]
Exception in thread "Thread-11" java.lang.NoClassDefFoundError: java/nio/channels/FileLock
	at net.sf.ehcache.DiskStorePathManager$DiskStorePath.unlock(
	at net.sf.ehcache.DiskStorePathManager.releaseLock(
	at net.sf.ehcache.CacheManager.shutdown(
Caused by: java.lang.ClassNotFoundException: java.nio.channels.FileLock
	at coldfusion.bootstrap.BootstrapClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(

Expected Result:
No such error message.

Any Workarounds:
Not applicable



We are uncertain as to the effect of NoClassDefFoundError exception on java.nio.channels.FileLock. It might be negligible. But then again it might be critical.
Comment by A. Bakia
29971 | November 27, 2018 04:16:24 PM GMT
Setup: We are using distributed Ehcache
Comment by A. Bakia
29990 | December 03, 2018 11:14:25 AM GMT