Bryan, I haven't seen anyone ask these questions, so I'll start with these.
1. In your ticketRegistry.xml, have you configured your ticket caches for your ServiceTicketsCache and your TicketGrantingTicketCache? 2. In your ehcache-replicated.xml, do you have your rmiUrls configured properly? Example: rmiUrls=//cas01.example.com:41001/org.jasig.ticket.ServiceTicket|//cas01.example.com:41001/org.jasig.ticket.TicketGrantingTicket? Also, if you wouldn't mind posting a pastebin of your configs (please scrub them for sensitive material before posting), that would really helpful. Ben Branch UNIX/Linux Administrator University of Central Oklahoma ITIL Foundation v3, Network+, RHCE 100 N. University Drive, Box 122 Edmond, OK 73034 D: 405.974.2649 | M: 405.550.6804 | bbranch@uco.<mailto:bbranch@uco.>edu | www.uco.edu<http://www.uco.edu/> "I am wiser than this man, for neither of us appears to know anything great and good; but he fancies he knows something, although he knows nothing; whereas I, as I do not know anything, so I do not fancy I do. In this trifling particular, then, I appear to be wiser than he, because I do not fancy I know what I do not know." - Socrates From: Bryan Wooten [mailto:[email protected]] Sent: Wednesday, February 18, 2015 8:18 AM To: [email protected] Subject: RE:[cas-user] ERROR net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator Thanks! We made the change to shared=true and the ehcache exception has gone away. But unfortunately the behavior has not changed... Still get ticket validation exceptions. Sigh -Bryan From: Jaroslav Kacer [mailto:[email protected]] Sent: Wednesday, February 18, 2015 1:15 AM To: [email protected]<mailto:[email protected]> Subject: RE:[cas-user] ERROR net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator Hi Bryan! I remember I've already seen this issue. I am using CAS 4.0 with EH Cache. I found the solution here: https://www.mail-archive.com/[email protected]/msg12970.html Please check the definition of bean "cacheManager" in ticketRegistry.xml. You should have set property "shared" to true like in this example: <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" p:configLocation="classpath:ehcache-replicated.xml" p:shared="true" p:cacheManagerName="ticketRegistryCacheManager" /> <!-- Shared must be set to true! by default it is false. See https://www.mail-archive.com/[email protected]/msg12970.html --> At least this is what helped in my case. Best Regards, Jarda From: Bryan Wooten [mailto:[email protected]] Sent: 17. February 2015 6:21 odp. To: [email protected]<mailto:[email protected]> Subject: [cas-user] ERROR net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator My cas.log is filled with this error: (CAS 3.5.2) 2015-02-17 07:53:18,138 ERROR [net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator] - Exception on flushing of replication queue: null. Continuing... java.lang.NullPointerException at net.sf.ehcache.distribution.RMISynchronousCacheReplicator.listRemoteCachePeers(RMISynchronousCacheReplicator.java:335) at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.writeReplicationQueue(RMIAsynchronousCacheReplicator.java:312) at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.replicationThreadMain(RMIAsynchronousCacheReplicator.java:127) at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.access$000(RMIAsynchronousCacheReplicator.java:58) at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator$ReplicationThread.run(RMIAsynchronousCacheReplicator.java:389) I found this: https://issues.jasig.org/browse/CAS-1174 But I am not using ClearPass. Bryan Wooten UIT-Common Infrastructure Systems -- You are currently subscribed to [email protected]<mailto:[email protected]> as: [email protected]<mailto:[email protected]> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected]<mailto:[email protected]> as: [email protected]<mailto:[email protected]> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected]<mailto:[email protected]> as: [email protected]<mailto:[email protected]> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
