EhCache does not start correctly

565 views
Skip to first unread message

Song, Doe-Hyun

unread,
Jul 12, 2017, 3:44:25 PM7/12/17
to CAS Community

Hello Caser,

 

EhCache does not start correctly at Cas 5.1.0. The followings are my configurations and logs.

 

Cas.properties

#========================================

# Ehcache Ticket Registry

# https://apereo.github.io/cas/5.0.x/installation/Configuration-Properties.html#ehcache-ticket-registry

#========================================

# cas.ticket.registry.ehcache.replicateUpdatesViaCopy=true

# cas.ticket.registry.ehcache.cacheManagerName=ticketRegistryCacheManager

# cas.ticket.registry.ehcache.replicatePuts=true

# cas.ticket.registry.ehcache.replicateUpdates=true

# cas.ticket.registry.ehcache.memoryStoreEvictionPolicy=LRU

 cas.ticket.registry.ehcache.configLocation=file:///etc/cas/config/ehcache-replicated.xml

# cas.ticket.registry.ehcache.maximumBatchSize=100

# cas.ticket.registry.ehcache.shared=false

# cas.ticket.registry.ehcache.replicationInterval=10000

# cas.ticket.registry.ehcache.cacheTimeToLive=2147483647

# cas.ticket.registry.ehcache.diskExpiryThreadIntervalSeconds=0

# cas.ticket.registry.ehcache.replicateRemovals=true

# cas.ticket.registry.ehcache.maxChunkSize=5000000

# cas.ticket.registry.ehcache.maxElementsOnDisk=0

# cas.ticket.registry.ehcache.maxElementsInCache=0

# cas.ticket.registry.ehcache.maxElementsInMemory=10000

# cas.ticket.registry.ehcache.cacheName=org.apereo.cas.ticket.TicketCache

# cas.ticket.registry.ehcache.eternal=false

# cas.ticket.registry.ehcache.loaderAsync=true

# cas.ticket.registry.ehcache.replicatePutsViaCopy=true

# cas.ticket.registry.ehcache.cacheTimeToIdle=0

# cas.ticket.registry.ehcache.persistence=LOCALTEMPSWAP|NONE|LOCALRESTARTABLE|DISTRIBUTED

cas.ticket.registry.ehcache.persistence=LOCALTEMPSWAP

# cas.ticket.registry.ehcache.synchronousWrites=

 

cas.ticket.registry.ehcache.crypto.signing.key=SomeKey

 cas.ticket.registry.ehcache.crypto.encryption.key=SomeKey

 

# cas.ticket.registry.ehcache.crypto.alg=AES

 

 

Ehcache-replicated.xml at host02

<ehcache name="ehCacheTicketRegistryCache"

    updateCheck="false"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd">

 

  <diskStore path="java.io.tmpdir/cas"/>

 

  <!--

     | Manual peer discovery

     | See http://ehcache.org/documentation/user-guide/rmi-replicated-caching#manual-peer-discovery-manual-peer-discovery

     | for more information

     -->

<!-- https://apereo.github.io/cas/5.0.x/installation/Ehcache-Ticket-Registry.html -->

  <cacheManagerPeerProviderFactory

            class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"

            properties="peerDiscovery=manual,rmiUrls=//host01:41001/org.apereo.cas.ticket.TicketCache" />

 

  <cacheManagerPeerListenerFactory

      class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"

      properties="hostName=host02,port=41001,remoteObjectPort=41002" />

</ehcache>

 

 

 

Ehcache-replicated.xml at host01

 

<ehcache name="ehCacheTicketRegistryCache"

    updateCheck="false"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd">

 

  <diskStore path="java.io.tmpdir/cas"/>

 

  <!--

     | Manual peer discovery

     | See http://ehcache.org/documentation/user-guide/rmi-replicated-caching#manual-peer-discovery-manual-peer-discovery

     | for more information

     -->

      <!-- https://apereo.github.io/cas/5.0.x/installation/Ehcache-Ticket-Registry.html -->

        <cacheManagerPeerProviderFactory

            class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"

            properties="peerDiscovery=manual,rmiUrls=//host02:41001/org.apereo.cas.ticket.TicketCache" />

 

  <cacheManagerPeerListenerFactory

      class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"

      properties="hostName=host01,port=41001,remoteObjectPort=41002" />

</ehcache>

 

 

Logs

 

2017-07-12 15:20:58,638 DEBUG [net.sf.ehcache.config.ConfigurationFactory] - <Configuring ehcache from InputStream>

2017-07-12 15:20:58,683 DEBUG [net.sf.ehcache.config.BeanHandler] - <Ignoring ehcache attribute xmlns:xsi>

2017-07-12 15:20:58,684 DEBUG [net.sf.ehcache.config.BeanHandler] - <Ignoring ehcache attribute xsi:noNamespaceSchemaLocation>

2017-07-12 15:20:58,686 DEBUG [net.sf.ehcache.config.DiskStoreConfiguration] - <Disk Store Path: /opt/tomcat8/temp/cas>

2017-07-12 15:20:58,734 DEBUG [net.sf.ehcache.util.PropertyUtil] - <propertiesString is null.>

2017-07-12 15:20:58,782 DEBUG [net.sf.ehcache.config.ConfigurationHelper] - <No CacheManagerEventListenerFactory class specified. Skipping...>

2017-07-12 15:20:58,789 DEBUG [net.sf.ehcache.util.PropertyUtil] - <Value found for hostName: appcasl02t>

2017-07-12 15:20:58,789 DEBUG [net.sf.ehcache.util.PropertyUtil] - <Value found for port: 41001>

2017-07-12 15:20:58,789 DEBUG [net.sf.ehcache.util.PropertyUtil] - <Value found for remoteObjectPort: 41002>

2017-07-12 15:20:58,789 DEBUG [net.sf.ehcache.util.PropertyUtil] - <Value found for socketTimeoutMillis: null>

2017-07-12 15:20:58,806 DEBUG [net.sf.ehcache.util.PropertyUtil] - <Value found for peerDiscovery: manual>

2017-07-12 15:20:58,810 DEBUG [net.sf.ehcache.util.PropertyUtil] - <Value found for rmiUrls: //appcasl01t:41001/org.apereo.cas.ticket.TicketCache>

2017-07-12 15:20:58,815 DEBUG [net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory] - <Registering peer //appcasl01t:41001/org.apereo.cas.ticket.TicketCache>

2017-07-12 15:20:58,862 DEBUG [net.sf.ehcache.distribution.RMICacheManagerPeerListener] - <0 RMICachePeers bound in registry for RMI listener>

2017-07-12 15:20:59,449 DEBUG [net.sf.ehcache.Cache] - <No BootstrapCacheLoaderFactory class specified. Skipping...>

2017-07-12 15:20:59,453 DEBUG [net.sf.ehcache.Cache] - <CacheWriter factory not configured. Skipping...>

2017-07-12 15:20:59,499 WARN [net.sf.ehcache.DiskStorePathManager] - <diskStorePath '/opt/tomcat8/temp/cas' is already used by an existing CacheManager either in the same VM or in a different process.

The diskStore path for this CacheManager will be set to /opt/tomcat8/temp/cas/ehcache_auto_created665908887232789751diskstore.

To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance.>

2017-07-12 15:20:59,499 DEBUG [net.sf.ehcache.DiskStorePathManager] - <Using diskstore path /opt/tomcat8/temp/cas/ehcache_auto_created665908887232789751diskstore>

2017-07-12 15:20:59,499 DEBUG [net.sf.ehcache.DiskStorePathManager] - <Holding exclusive lock on /opt/tomcat8/temp/cas/ehcache_auto_created665908887232789751diskstore/.ehcache-diskstore.lock>

2017-07-12 15:20:59,499 DEBUG [net.sf.ehcache.store.disk.DiskStorageFactory] - <Failed to delete file org%002eapereo%002ecas%002eticket%002e%0054icket%0043ache.data>

2017-07-12 15:20:59,499 DEBUG [net.sf.ehcache.store.disk.DiskStorageFactory] - <Failed to delete file org%002eapereo%002ecas%002eticket%002e%0054icket%0043ache.index>

2017-07-12 15:20:59,515 DEBUG [net.sf.ehcache.store.disk.DiskStorageFactory] - <Matching data file missing (or empty) for index file. Deleting index file /opt/tomcat8/temp/cas/ehcache_auto_created665908887232789751diskstore/org%002eapereo%002ecas%002eticket%002e%0054icket%0043ache.index>

2017-07-12 15:20:59,515 DEBUG [net.sf.ehcache.store.disk.DiskStorageFactory] - <Failed to delete file org%002eapereo%002ecas%002eticket%002e%0054icket%0043ache.index>

2017-07-12 15:20:59,612 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl] - <Mocking Pass-Through Statistic: LOCAL_OFFHEAP_SIZE>

2017-07-12 15:20:59,613 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl] - <Mocking Pass-Through Statistic: LOCAL_OFFHEAP_SIZE_BYTES>

2017-07-12 15:20:59,614 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl] - <Mocking Pass-Through Statistic: WRITER_QUEUE_LENGTH>

2017-07-12 15:20:59,615 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl] - <Mocking Pass-Through Statistic: REMOTE_SIZE>

2017-07-12 15:20:59,616 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl] - <Mocking Pass-Through Statistic: LAST_REJOIN_TIMESTAMP>

2017-07-12 15:20:59,637 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl] - <Mocking Operation Statistic: OFFHEAP_GET>

2017-07-12 15:20:59,638 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl] - <Mocking Operation Statistic: OFFHEAP_PUT>

2017-07-12 15:20:59,638 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl] - <Mocking Operation Statistic: OFFHEAP_REMOVE>

2017-07-12 15:20:59,643 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl] - <Mocking Operation Statistic: XA_COMMIT>

2017-07-12 15:20:59,643 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl] - <Mocking Operation Statistic: XA_ROLLBACK>

2017-07-12 15:20:59,644 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl] - <Mocking Operation Statistic: XA_RECOVERY>

2017-07-12 15:20:59,649 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl] - <Mocking Operation Statistic: CLUSTER_EVENT>

2017-07-12 15:20:59,650 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl] - <Mocking Operation Statistic: NONSTOP>

2017-07-12 15:20:59,665 DEBUG [net.sf.ehcache.Cache] - <Initialised cache: org.apereo.cas.ticket.TicketCache>

2017-07-12 15:20:59,714 DEBUG [net.sf.ehcache.distribution.RMICacheManagerPeerListener] - <Adding to RMI listener>

2017-07-12 15:20:59,718 DEBUG [net.sf.ehcache.distribution.RMIBootstrapCacheLoader] - <Attempting to acquire cache peers for cache org.apereo.cas.ticket.TicketCache to bootstrap from. Will wait up to 0ms for cache to join cluster.>

2017-07-12 15:20:59,718 DEBUG [net.sf.ehcache.distribution.RMICacheManagerPeerProvider] - <Lookup URL //appcasl01t:41001/org.apereo.cas.ticket.TicketCache>

2017-07-12 15:20:59,734 WARN [org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext] - <Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthCheckMonitor' defined in class path resource [org/apereo/cas/monitor/config/CasCoreMonitorConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.monitor.Monitor]: Factory method 'healthCheckMonitor' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ehcacheTicketsCache' defined in class path resource [org/apereo/cas/config/EhcacheTicketRegistryConfiguration.class]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem starting listener for RMICachePeer null. Initial cause was Port already in use: 41002; nested exception is:

        java.net.BindException: Address already in use>

2017-07-12 15:20:59,735 DEBUG [net.sf.ehcache.distribution.RMICacheManagerPeerListener] - <0 RMICachePeers unbound from registry in RMI listener>

2017-07-12 15:20:59,778 DEBUG [net.sf.ehcache.distribution.RMIBootstrapCacheLoader] - <cache peers: [RMICachePeer_Stub[UnicastRef2 [liveRef: [endpoint:[127.0.1.1:41002,net.sf.ehcache.distribution.ConfigurableRMIClientSocketFactory@1d4c0](remote),objID:[-63dd6bf7:15d383de6ac:-7fff, 7093832884212072426]]]]]>

2017-07-12 15:20:59,778 DEBUG [net.sf.ehcache.distribution.RMIBootstrapCacheLoader] - <Bootstrapping org.apereo.cas.ticket.TicketCache from RMICachePeer_Stub[UnicastRef2 [liveRef: [endpoint:[127.0.1.1:41002,net.sf.ehcache.distribution.ConfigurableRMIClientSocketFactory@1d4c0](remote),objID:[-63dd6bf7:15d383de6ac:-7fff, 7093832884212072426]]]]>

2017-07-12 15:20:59,790 WARN [net.sf.ehcache.distribution.RMIBootstrapCacheLoader] - <Error asynchronously performing bootstrap. The cause was: Error bootstrapping from remote peer. Message was: no such object in table>

net.sf.ehcache.distribution.RemoteCacheException: Error bootstrapping from remote peer. Message was: no such object in table

        at net.sf.ehcache.distribution.RMIBootstrapCacheLoader.doLoad(RMIBootstrapCacheLoader.java:176) ~[ehcache-2.10.3.jar:2.10.3]

        at net.sf.ehcache.distribution.RMIBootstrapCacheLoader$BootstrapThread.run(RMIBootstrapCacheLoader.java:107) ~[ehcache-2.10.3.jar:2.10.3]

Caused by: java.rmi.NoSuchObjectException: no such object in table

        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276) ~[?:1.8.0_101]

        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253) ~[?:1.8.0_101]

        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162) ~[?:1.8.0_101]

        at net.sf.ehcache.distribution.RMICachePeer_Stub.getKeys(Unknown Source) ~[ehcache-2.10.3.jar:2.10.3]

        at net.sf.ehcache.distribution.RMIBootstrapCacheLoader.doLoad(RMIBootstrapCacheLoader.java:146) ~[ehcache-2.10.3.jar:2.10.3]

        ... 1 more

2017-07-12 15:20:59,837 DEBUG [net.sf.ehcache.store.disk.DiskStorageFactory] - <Failed to delete file org%002eapereo%002ecas%002eticket%002e%0054icket%0043ache.index>

2017-07-12 15:20:59,840 DEBUG [net.sf.ehcache.store.disk.DiskStorageFactory] - <Failed to delete file org%002eapereo%002ecas%002eticket%002e%0054icket%0043ache.data>

2017-07-12 15:20:59,850 DEBUG [net.sf.ehcache.DiskStorePathManager] - <Deleted directory ehcache_auto_created665908887232789751diskstore>

2017-07-12 15:20:59,926 ERROR [org.springframework.boot.SpringApplication] - <Application startup failed>

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthCheckMonitor' defined in class path resource [org/apereo/cas/monitor/config/CasCoreMonitorConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.monitor.Monitor]: Factory method 'healthCheckMonitor' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ehcacheTicketsCache' defined in class path resource [org/apereo/cas/config/EhcacheTicketRegistryConfiguration.class]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem starting listener for RMICachePeer null. Initial cause was Port already in use: 41002; nested exception is:

        java.net.BindException: Address already in use

        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

 

 

 

 

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866) ~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542) ~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]

        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737) ~[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]

        at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370) ~[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]

        at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) ~[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]

        at org.springframework.boot.web.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:151) ~[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]

        at org.springframework.boot.web.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:131) ~[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]

        at org.springframework.boot.web.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:86) ~[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]

        at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:169) ~[spring-web-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196) ~[catalina.jar:8.5.15]

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ~[catalina.jar:8.5.15]

        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752) ~[catalina.jar:8.5.15]

        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728) ~[catalina.jar:8.5.15]

        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) ~[catalina.jar:8.5.15]

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952) ~[catalina.jar:8.5.15]

        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823) ~[catalina.jar:8.5.15]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_101]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_101]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_101]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_101]

        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.monitor.Monitor]: Factory method 'healthCheckMonitor' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ehcacheTicketsCache' defined in class path resource [org/apereo/cas/config/EhcacheTicketRegistryConfiguration.class]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem starting listener for RMICachePeer null. Initial cause was Port already in use: 41002; nested exception is:

        java.net.BindException: Address already in use

        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        ... 31 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ehcacheTicketsCache' defined in class path resource [org/apereo/cas/config/EhcacheTicketRegistryConfiguration.class]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem starting listener for RMICachePeer null. Initial cause was Port already in use: 41002; nested exception is:

        java.net.BindException: Address already in use

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractBeanFactory.isSingleton(AbstractBeanFactory.java:427) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:431) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:403) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:515) ~[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]

        at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1197) ~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]

 

 

 

 

 

 

 


The information contained in this e-mail and any attachments is confidential and
intended only for the recipient. If you are not the intended recipient, the
information contained in this message may not be used, copied, or forwarded to
third parties or otherwise distributed for any other purpose. Please notify the
sender if you received this e-mail in error and delete the e-mail and its
attachments promptly.  Nothing in this e-mail may be used or deemed to form the
basis of a contractual or any other legally binding obligation unless separately
confirmed in writing by an authorized representative of ARMADA.

Christian Poirier

unread,
Feb 18, 2019, 11:53:13 AM2/18/19
to CAS Community, DS...@armada.net
Did you solve your problem because I have the same problem?
Reply all
Reply to author
Forward
0 new messages