I am still getting the same exception even with changed configuration
Code:
<bean id="deviceManager" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces" value="com.xyz.jdbc.DeviceManager"/>
<property name="target">
<bean class="com.xyz.jdbc.DeviceManagerImpl">
<property name="deviceDao">
<bean class="com.xyz.jdbc.DeviceDaoSpring">
<property name="dataSource" ref="dataSource"/>
</bean>
</property>
<property name="mutableAclService" ref="aclService"/>
</bean>
</property>
<property name="interceptorNames">
<list>
<idref local="transactionInterceptor"/>
<idref bean="deviceManagerSecurity"/>
</list>
</property>
</bean>
<bean id="contactDataStore" class="com.xyz.domain.ContactDataStore">
<property name="deviceManager" ref="deviceManager"/>
</bean>
Exception
at org.springframework.context.event.SimpleApplicatio nEventMulticaster$1.run(SimpleApplicationEventMult icaster.java:77)
at org.springframework.core.task.SyncTaskExecutor.exe cute(SyncTaskExecutor.java:49)
at org.springframework.context.event.SimpleApplicatio nEventMulticaster.multicastEvent(SimpleApplication EventMulticaster.java:75)
at org.springframework.context.support.AbstractApplic ationContext.publishEvent(AbstractApplicationConte xt.java:246)
at org.springframework.security.intercept.AbstractSec urityInterceptor.publishEvent(AbstractSecurityInte rceptor.java:492)
at org.springframework.security.intercept.AbstractSec urityInterceptor.beforeInvocation(AbstractSecurity Interceptor.java:328)
at org.springframework.security.intercept.method.aopa lliance.MethodSecurityInterceptor.invoke(MethodSec urityInterceptor.java:63)
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :166)
at org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(TransactionInterceptor.jav a:107)
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :166)
at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy0.getAll(Unknown Source)
This is very much the same from acegi contact sample but somehow I am not able to figure what is missing from my code/xml file
Here is the configuration from sample contact application
Code:
<bean id="contactManager" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces" value="sample.contact.ContactManager"/>
<property name="interceptorNames">
<list>
<idref local="transactionInterceptor"/>
<idref bean="contactManagerSecurity"/>
<idref local="contactManagerTarget"/>
</list>
</property>
</bean>
<bean id="contactManagerTarget" class="sample.contact.ContactManagerBackend">
<property name="contactDao">
<bean class="sample.contact.ContactDaoSpring">
<property name="dataSource"><ref local="dataSource"/></property>
</bean>
</property>
<property name="mutableAclService" ref="aclService"/>
</bean>