Below is the entire stack trace from the logs. I tried to figure out where exactly the NPE is coming from which is in the ehcache library but I couldn't get Eclipse debug to point to the right sources.
SEVERE: Exception starting filter CAS Validate Filter java.lang.IllegalArgumentException: Error creating new instance of class org.jasig.cas.client.proxy.EhcacheBackedProxyGrantingTicketStorageImpl at org.jasig.cas.client.util.ReflectUtils.newInstance(ReflectUtils.java:84) at org.jasig.cas.client.util.ReflectUtils.newInstance(ReflectUtils.java:66) at org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter.initInternal(Cas20ProxyReceivingTicketValidationFilter.java:78) at org.jasig.cas.client.util.AbstractCasFilter.init(AbstractCasFilter.java:82) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4746) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5399) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.jasig.cas.client.util.ReflectUtils.newInstance(ReflectUtils.java:82) ... 20 more Caused by: java.lang.NullPointerException at org.jasig.cas.client.proxy.EhcacheBackedProxyGrantingTicketStorageImpl.<init>(EhcacheBackedProxyGrantingTicketStorageImpl.java:48) ... 25 more From: "<Young III>", Microsoft Office User <[email protected]<mailto:[email protected]>> Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Date: Thursday, June 20, 2013 2:51 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Re:[cas-user] [uportal-user] uPortal CAS proxy authentication for clearPass We followed very similar instructions that were for clearPass configuration specifically. So, basically yes. The passwords are getting cached. We are just having issues getting them replicated across the nodes. It is looking like we will have to start looking for alternative methods since ehcache doesn't look like it's going to work for using clearPass with uportal. I am sending this over to the CAS community as well. From: Eric Dalquist <[email protected]<mailto:[email protected]>> Reply-To: <[email protected]<mailto:[email protected]>> Date: Thursday, June 20, 2013 2:28 PM To: <[email protected]<mailto:[email protected]>> Subject: Re: [uportal-user] uPortal CAS proxy authentication for clearPass Are you getting these errors after following the instructions here: https://wiki.jasig.org/display/UPM40/Caching+and+Re-playing+Credentials I'm not really familiar with CAS but it could be that the org.jasig.cas.client.proxy.EhcacheBackedProxyGrantingTicketStorageImpl doesn't work with Ehcache 2.6, you might see if someone in the CAS community can answer that question. Also is there any more to that stack trace? It seems like it might be missing a "Caused By:" or two. -Eric On 06/20/2013 02:21 PM, Young III, Russell Alonzo wrote: One thing that I just noticed is that CAS client v3.2.1 is using v2.2.0 of ehcache and uportal 4 is using 2.6.5. From: "<Young III>", Microsoft Office User <[email protected]<mailto:[email protected]>> Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Date: Thursday, June 20, 2013 1:40 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Re: [uportal-user] uPortal CAS proxy authentication for clearPass Has anyone looked at this? From: "<Young III>", Microsoft Office User <[email protected]<mailto:[email protected]>> Date: Tuesday, June 18, 2013 1:51 PM To: James Wennmacher <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Re: [uportal-user] uPortal CAS proxy authentication for clearPass We just upgraded to uportal 4. This is the related stack trace in the logs: SEVERE: Exception starting filter CAS Validate Filter java.lang.IllegalArgumentException: Error creating new instance of class org.jasig.cas.client.proxy.EhcacheBackedProxyGrantingTicketStorageImpl at org.jasig.cas.client.util.ReflectUtils.newInstance(ReflectUtils.java:84) at org.jasig.cas.client.util.ReflectUtils.newInstance(ReflectUtils.java:66) at org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter.initInternal(Cas20ProxyReceivingTicketValidationFilter.java:78) at org.jasig.cas.client.util.AbstractCasFilter.init(AbstractCasFilter.java:82) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281) From: James Wennmacher <[email protected]<mailto:[email protected]>> Date: Tuesday, June 18, 2013 1:38 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Cc: Microsoft Office User <[email protected]<mailto:[email protected]>> Subject: Re: [uportal-user] uPortal CAS proxy authentication for clearPass You may want to post what version of uPortal are you using. Is there an error message in the logs? James Wennmacher Unicon 480.558.2420 On 06/18/2013 11:29 AM, Young III, Russell Alonzo wrote: CacheManager in the EhcacheBackedProxyGrantingTicketStorageImpl class is not getting the cache. ________________________________ From: Young III, Russell Alonzo Sent: Tuesday, June 18, 2013 9:33 AM To: [email protected]<mailto:[email protected]> Subject: uPortal CAS proxy authentication for clearPass We are trying to get the proxy ticket cache to sync across the servers in a load balanced environment. I have the following in the uportal-war web.xml under the CAS validate filter. <init-param> <param-name>proxyGrantingTicketStorageClass</param-name> <param-value>org.jasig.cas.client.proxy.EhcacheBackedProxyGrantingTicketStorageImpl</param-value> </init-param> We are using the Cas20ProxyRecievingTicketValidationFilter. uPortal already has a Cache Manager setup in it's src/main/resources/properties/ehcache.xml using Jgroups. I added the following to that file. <cache name="org.jasig.cas.client.proxy.EhcacheBackedProxyGrantingTicketStorageImpl.cache" eternal="false"maxElementsInMemory="1000"overflowToDisk="false" diskPersistent="false"timeToIdleSeconds="0"timeToLiveSeconds="300" memoryStoreEvictionPolicy="LRU"statistics="true"/> I tried this with the name being both with and without the ".cache". Either way the CacheManage in the EhcacheBackedProxyGrantingTicketStorageImpl class is not getting the class. Do I need to setup a different ehcache cache manager in a different file? Is there something else we need to do? Thanks, -Russ -- 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/uportal-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/uportal-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/uportal-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
