Dmitriy,
I added the last service in the file, id #121. CAS generated the error message after I saved the file. I later restarted Tomcat, and CAS loaded the file without errors, which I guess means that there are no errors in the service registry file. Best regards, -- Carlos. From: Dmitriy Kopylenko [mailto:[email protected]] Sent: Monday, 05 November, 2012 11:56 To: [email protected] Subject: Re: [cas-user] Exception during 'watchedResource' after modifying JSON service registry file Carlos, in trying to reproduce the problem you mentioned, would you please provide more info on what exactly you are trying to modify in servicesRegistry.conf that causes the aforementioned NPE? Cheers, Dmitriy. On Mon, Nov 5, 2012 at 11:21 AM, Carlos Fernandez <[email protected]> wrote: Dmitriy, My setup doesnt stray much from whats published in the CAS user manual, if at all. Im only configuring the JSON service registry, EhCache ticket registry, LDAP support using FastBindLdapAuthenticationHandler, and Google SAML. The relevant files from my overlay are in the attached zip file. Best regards, -- Carlos. From: Dmitriy Kopylenko [mailto:[email protected]] Sent: Sunday, 04 November, 2012 17:30 To: [email protected] Subject: Re: [cas-user] Exception during 'watchedResource' after modifying JSON service registry file Carlos, I have tried the reloading behavior with the attached configuration file using "template overlay": https://github.com/Unicon/unicon-cas-overlay and everything works as expected. Can you be more specific on what config changes you have made (so I could try to reproduce the NPE you have indicated)? Thanks, Dmitriy. On Thu, Nov 1, 2012 at 9:39 AM, Carlos Fernandez <[email protected]> wrote: Dmitriy, The file is attached. Best regards, -- Carlos. From: Dmitriy Kopylenko [mailto:[email protected]] Sent: Thursday, 01 November, 2012 08:20 To: [email protected] Subject: Re: [cas-user] Exception during 'watchedResource' after modifying JSON service registry file Hi Carlos, would you mind attaching your servicesRegistry.conf file? Thanks, Dmitriy. Sent from my iPhone On Oct 31, 2012, at 16:53, Carlos Fernandez <[email protected]> wrote: Good afternoon, Im testing CAS 3.5.1 with CAS Addons 1.0 and JSON service registry and so far its working except where I try to modify the registry file, which after saving it results in the exception quoted below, and an unchanged service registry when viewed through /services/manage.html: 2012-10-31 16:32:10,824 ERROR [net.unicon.cas.addons.support.ResourceChangeDetectingEventNotifier] - <An exception is caught during 'watchedResource' access> java.lang.NullPointerException at net.unicon.cas.addons.serviceregistry.JsonServiceRegistryDao.onApplication Event(JsonServiceRegistryDao.java:144) at net.unicon.cas.addons.serviceregistry.JsonServiceRegistryDao.onApplication Event(JsonServiceRegistryDao.java:1) at org.springframework.context.event.SimpleApplicationEventMulticaster.multic astEvent(SimpleApplicationEventMulticaster.java:97) at org.springframework.context.support.AbstractApplicationContext.publishEven t(AbstractApplicationContext.java:324) at net.unicon.cas.addons.support.ResourceChangeDetectingEventNotifier.notifyO fTheResourceChangeEventIfNecessary(ResourceChangeDetectingEventNotifier.ja va:92) at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm pl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.scheduling.support.ScheduledMethodRunnable.run(Schedul edMethodRunnable.java:64) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run (DelegatingErrorHandlingRunnable.java:53) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acces s$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(S cheduledThreadPoolExecutor.java:293) 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) The corresponding configuration in deployerConfigContext.xml is: <bean id="serviceRegistryDao" class="net.unicon.cas.addons.serviceregistry.JsonServiceRegistryDao" init-method="loadServices"> <constructor-arg index="0" value="file:/var/lib/tomcat6/servicesRegistry.conf"/> </bean> <bean id="reloadableServicesManagerSupressionAspect" class="net.unicon.cas.addons.serviceregistry.ReloadableServicesManagerSupp ressionAspect" factory-method="aspectOf"/> <bean id="registeredServicesChangeDetectingEventNotifier" class="net.unicon.cas.addons.support.ResourceChangeDetectingEventNotifier" c:watchedResource="file:/var/lib/tomcat6/servicesRegistry.conf"/> <task:scheduler id="springScheduler" pool-size="3"/> <task:scheduled-tasks scheduler="springScheduler"> <task:scheduled ref="registeredServicesChangeDetectingEventNotifier" method="notifyOfTheResourceChangeEventIfNecessary" fixed-delay="5000"/> </task:scheduled-tasks> Any suggestions on what I might be missing here? Best regards, -- Carlos M. Fernández Sr. Enterprise Systems Administrator Saint Josephs University Philadelphia PA 19131 T: +1 610 660 1501 <tel:%2B1%20610%20660%201501> -- 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 -- 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 -- 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 -- 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 -- 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 -- 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 -- 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
