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
--
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