org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'myadvice' is defined

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Spring JIRA by James Kavanagh, 1 year ago
No bean named 'myadvice' is defined
via Spring JIRA by James Kavanagh, 1 year ago
No bean named 'myadvice' is defined
via Stack Overflow by Ashwin Bn
, 11 months ago
No bean named 'applicationContext-main' is defined
via Google Groups by Seance, 2 years ago
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'myadvice' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1083)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:274)
at org.springframework.aop.framework.ProxyFactoryBean.initializeAdvisorChain(ProxyFactoryBean.java:454)
at com.scansafe.prototype.ThingammyCaptureAdvice.injectIntoContext(ThingammyCaptureAdvice.java:20)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

Users with the same issue

3 times, 4 months ago
128 times, 7 months ago
2 times, 4 months ago
Once, 10 months ago
Once, 8 months ago
101 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.