• 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:

  1. Install the ehcacheDx beta version (http://fileserver/terra/ehcache-monitor/ehcache-monitor-1.0.0-beta-distribution.tar.gz)
  2. set the license_file to invalid path under /etc/ehcache-monitor.conf
  3. 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.(LicenseResolver.java:48) at org.terracotta.ehcachedx.monitor.handler.LicenseHandler.registerLicense(LicenseHandler.java:25) at org.terracotta.ehcachedx.monitor.DxService.(DxService.java:102) at org.terracotta.ehcachedx.monitor.StandaloneServer$Command$1.execute(StandaloneServer.java:118) at org.terracotta.ehcachedx.monitor.StandaloneServer.main(StandaloneServer.java:54)

Comments

Kalai Kannaiyan 2009-11-19

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