Spring AOP

2 views
Skip to first unread message

TK

unread,
May 4, 2010, 11:51:55 AM5/4/10
to OpenHDS
Hey guys how are you? I have run into an issue which as yet I have not
been able to resolve, and have posted it on the javaranch forum
(http://www.coderanch.com/t/494226/Spring/Spring-AOP-Help). If anyone
has any idea why that is before I get a response, would be glad of any
help.

Kind regards,
Tumaini

Dave

unread,
May 4, 2010, 12:50:51 PM5/4/10
to OpenHDS
Tumaini, have you tried adding elements inside the <aop:config>
element and do you receive the same error?

TK

unread,
May 5, 2010, 6:22:33 AM5/5/10
to OpenHDS
Hello Dave. Yes I have, originally it was like so:

<!-- Simple bean which will later be used as an aspect -->
<bean id="auditor" class="org.openhds.webui.util.Auditor" >
<property name="currentUser" ref="currentUser" />
</bean>

<!-- Aspect definition -->
<aop:config>

<aop:aspect ref="auditor">

<aop:pointcut id="insertByMethod"
expression="execution(*
org.openhds.webui.EntityCrud.performAudit(java.lang.Object))
and args(entityItem)"/>

<aop:before pointcut-ref="insertByMethod"
method="setInsertBy"/>

</aop:aspect>

</aop:config>
However in order to learn where the exception was coming from I
started deleting the lines within the <aop:config> element, and the
error persisted until there was nothing else left except just the
<aop:config> elements with no other elements within it. And when just
the <aop:config> element is left the error is still there, leading me
to believe the error begins on the declaration of this element
Reply all
Reply to author
Forward
0 new messages