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,



I’m testing CAS 3.5.1 with CAS Addons 1.0 and JSON service registry and so 
far it’s 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.onApplicationEvent(JsonServiceRegistryDao.java:144)

        at 
net.unicon.cas.addons.serviceregistry.JsonServiceRegistryDao.onApplicationEvent(JsonServiceRegistryDao.java:1)

        at 
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)

        at 
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:324)

        at 
net.unicon.cas.addons.support.ResourceChangeDetectingEventNotifier.notifyOfTheResourceChangeEventIfNecessary(ResourceChangeDetectingEventNotifier.java:92)

        at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)

        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:601)

        at 
org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.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.access$301(ScheduledThreadPoolExecutor.java:178)

        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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.ReloadableServicesManagerSuppressionAspect"

    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 Joseph’s 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

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

Attachment: servicesRegistry.conf
Description: Binary data

Reply via email to