При попытке запустить отладчик ehcache я сталкиваюсь с этой ошибкой.
$ java -cp ehcache-debugger-1.7.1.jar net.sf.ehcache.distribution.RemoteDebugger EhCache-Sample.xml userEntityCache
This debugger prints all ehcache debugging messages. Set your log handler to the most detailed level to see the messages.
Exception in thread "main" java.lang.NullPointerException
at net.sf.ehcache.CacheManager.init(CacheManager.java:295)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:208)
at net.sf.ehcache.distribution.RemoteDebugger.<init>(RemoteDebugger.java:75)
at net.sf.ehcache.distribution.RemoteDebugger.main(RemoteDebugger.java:196)
У меня есть файл конфигурации кэша ниже.
<?xml version="1.0" encoding="UTF-8"?>
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="ehcache.xsd"
updateCheck="false" monitoring="autodetect"
dynamicConfig="true">
<cacheManagerPeerProviderFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
properties="peerDiscovery=automatic,
multicastGroupAddress=230.0.0.1,
multicastGroupPort=4446,
timeToLive=32"/>
<cacheManagerPeerListenerFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory" properties="hostName=172.19.16.114,port=40001"/>
<cache name="userEntityCache"
eternal="false"
memoryStoreEvictionPolicy="FIFO">
<cacheEventListenerFactory
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true,
replicateUpdatesViaCopy=false, replicateRemovals=true "/>
<bootstrapCacheLoaderFactory
class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
properties="bootstrapAsynchronously=true"
propertySeparator="," />
</cache>
</ehcache>