This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Spring and the fly likes BeforeAdvice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "BeforeAdvice" Watch "BeforeAdvice" New topic


Ritu Kapoor
Ranch Hand

Joined: Oct 03, 2004
Posts: 102

I am new to Spring. Got the following issue. Please help to understand.

On executing this, I am getting following exception:

Method name::public void com.spring.aop.before.TestBean.setName(java.lang.String)
Argument List::ABCCDDE
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at com.spring.aop.before.TestBefore.before(
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(
at com.spring.aop.before.TestBean$$EnhancerByCGLIB$$419f8de6.getName(<generated>)
at com.spring.aop.before.TestBeforeAOP.main(

Can anybody tell me the reason ?


Ritu Kapoor
Ranch Hand

Joined: Oct 03, 2004
Posts: 102
I agree. Here's the link:
subject: BeforeAdvice
It's not a secret anymore!