EHC ❯ EhcacheDx: When invalid license path is specified, proper message should display instead of Exception
-
Bug
-
Status: Closed
-
2 Major
-
Resolution: Fixed
-
ehcache-monitor
-
-
gbevin
-
Reporter: kkannaiy
-
November 12, 2009
-
0
-
Watchers: 0
-
July 21, 2010
-
November 18, 2009
Description
Steps:
- Install the ehcacheDx beta version (http://fileserver/terra/ehcache-monitor/ehcache-monitor-1.0.0-beta-distribution.tar.gz)
- set the license_file to invalid path under /etc/ehcache-monitor.conf
- start the monitor server from bin/startup.sh
Actual: Exception occurred
Exception in thread “main” org.terracotta.ehcachedx.license.util.LicenseError: Can’t find license key at path: /export1/dev/kalai/ehcahe-dx-sample/ehcachedx.key
at org.terracotta.ehcachedx.license.LicenseResolver.getLicenseStreamFromPath(LicenseResolver.java:186)
at org.terracotta.ehcachedx.license.LicenseResolver.resolveLicense(LicenseResolver.java:77)
at org.terracotta.ehcachedx.license.LicenseResolver.
Verified with the latest ehcache-dx-kit, when invalid license path is specified in the ehcache-moniotr.conf
proper error message is displayed as expected.
WARNING: Can’t find license key at path: /export1/dev/kalai/ehcahce-dx-kits/trial-ehcachedx.key