ClosedWatchServiceException error on AdminUI shutdown

Document ID : KB000095155
Last Modified Date : 09/05/2018
Show Technical Document Details
Issue:
On AdminUI shutdown, java.nio.file.ClosedWatchServiceException errors are written in server.log as following.

Example:
ERROR [stderr] (xnio-file-watcher[Watcher for /opt/CA/siteminder/adminui/standalone/deployments/castylesr5.1.1.ear/castylesr5.1.1.war/]-0) Exception in thread "xnio-file-watcher[Watcher for /opt/CA/siteminder/adminui/standalone/deployments/castylesr5.1.1.ear/castylesr5.1.1.war/]-0" java.nio.file.ClosedWatchServiceException
ERROR [stderr] (xnio-file-watcher[Watcher for /opt/CA/siteminder/adminui/standalone/deployments/castylesr5.1.1.ear/castylesr5.1.1.war/]-0) 	at sun.nio.fs.AbstractWatchService.checkOpen(AbstractWatchService.java:80)
ERROR [stderr] (xnio-file-watcher[Watcher for /opt/CA/siteminder/adminui/standalone/deployments/castylesr5.1.1.ear/castylesr5.1.1.war/]-0) 	at sun.nio.fs.AbstractWatchService.checkKey(AbstractWatchService.java:92)
ERROR [stderr] (xnio-file-watcher[Watcher for /opt/CA/siteminder/adminui/standalone/deployments/castylesr5.1.1.ear/castylesr5.1.1.war/]-0) 	at sun.nio.fs.AbstractWatchService.take(AbstractWatchService.java:119)
ERROR [stderr] (xnio-file-watcher[Watcher for /opt/CA/siteminder/adminui/standalone/deployments/castylesr5.1.1.ear/castylesr5.1.1.war/]-0) 	at org.xnio.nio.WatchServiceFileSystemWatcher.run(WatchServiceFileSystemWatcher.java:85)
ERROR [stderr] (xnio-file-watcher[Watcher for /opt/CA/siteminder/adminui/standalone/deployments/castylesr5.1.1.ear/castylesr5.1.1.war/]-0) 	at java.lang.Thread.run(Thread.java:745)

Ā 
Environment:
CA SSO Administrative UI r12.7
OS: All
Resolution:
The exceptions have nothing to do with Siteminder.

The 'hot deployment' feature of JBOSS watches for file changes and restart the application if it detects changes in the files constituting the application

WatchService monitors file changes.

ClosedWatchServiceException is innocuous exception which often happens during the service shut down. it says "trying to close WatchService which is already closed".

Hence, you may ignore the exception.