This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


JavaRanch » Java Forums » Frameworks » Spring
Bookmark "BeforeAdvice" Watch "BeforeAdvice" New topic
Author

BeforeAdvice

Ritu Kapoor
Ranch Hand

Joined: Oct 03, 2004
Posts: 102
Hi,

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
Target::com.spring.aop.before.TestBean@fa9cf
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at com.spring.aop.before.TestBefore.before(TestBefore.java:12)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:49)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
at com.spring.aop.before.TestBean$$EnhancerByCGLIB$$419f8de6.getName(<generated>)
at com.spring.aop.before.TestBeforeAOP.main(TestBeforeAOP.java:16)


Can anybody tell me the reason ?

Thanks,

Ritu
Ritu Kapoor
Ranch Hand

Joined: Oct 03, 2004
Posts: 102
Resolved.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: BeforeAdvice
 
It's not a secret anymore!