You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So i've just updated to 4.4 and now I get this error from spring:
Caused by: org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class cz.jiripinkas.jsitemapgenerator.generator.SitemapGenerator: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: No visible constructors in class cz.jiripinkas.jsitemapgenerator.generator.SitemapGenerator
at org.springframework.aop.framework.CglibAopProxy.getProxy(CglibAopProxy.java:208)
at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:110)
at org.springframework.aop.scope.ScopedProxyFactoryBean.setBeanFactory(ScopedProxyFactoryBean.java:117)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeAwareMethods(AbstractAutowireCapableBeanFactory.java:1818)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1783)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595)
... 13 more
Caused by: java.lang.IllegalArgumentException: No visible constructors in class cz.jiripinkas.jsitemapgenerator.generator.SitemapGenerator
at org.springframework.cglib.proxy.Enhancer.filterConstructors(Enhancer.java:760)
So i've just updated to 4.4 and now I get this error from spring:
I'm creating a
SitemapGenerator
bean like this:and apparently spring tries to create a proxy but you don't provide any constructors and spring doesn't know how to make the proxy.
Is it possible to provide a constructor?
The text was updated successfully, but these errors were encountered: