spring AOP aspect4j logger on the spring mvc application exception

>>>java.lang.IllegalStateException: Failed to load ApplicationContext
                at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:203)


Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'updateIndicatorClient' defined in class path resource [applicationContext-xyz.xml]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class $Proxy15]: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class class $Proxy15



When running spring AOP aspect4j logger on the spring mvc application getting above exception.

How can i resolve it.
Any ideas, resources,sample code,links,  highly appreciated. thanks in advance.
LVL 7
gudii9Asked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
looks like your trying to proxy a class defined as final
you cannot proxy final classes as they need to be subclassed
0
 
Sathish David Kumar NConnect With a Mentor ArchitectCommented:
>>>>>>>>java.lang.IllegalStateException: Failed to load ApplicationContext
                at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:203)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'updateIndicatorClient' defined in class path resource [applicationContext-xyz.xml]:

Your define 'updateIndicatorClient'  class in the applicationContext-xyz.xml but your not properly define setter method for that class ....

You need to check...
is setter method is there ?
'updateIndicatorClient'  is this class name is corret ?
you define the path is correct or not ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.