Using some recent examples on the message board I can extend connect controller and override methods. However, when I try to add a method I get this:
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'connectController' defined in class path resource [spring/social.xml]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigExcepti on: Could not generate CGLIB subclass of class [class com.xx.yy.controller.MyConnectController]: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Superclass has no null constructors but no arguments were given
I use xml configuration and spring 1.1.0.M4. The reason I want to add a method is to write a custom connectionStatus method instead of returning the JSP. I have also tried to override the connectionStatus method as well but receive the same error. Once I remove my new method or my attempt to override the connectionStatus I get no errors at startup.
The problem I am trying to solve is I need to know if a user is connected to a service provider. I thought I could use the social:connected tags but the architecture of my application is such that these tags don't work because the tag code can't get access to the social beans since they are in different web apps.
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'connectController' defined in class path resource [spring/social.xml]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigExcepti on: Could not generate CGLIB subclass of class [class com.xx.yy.controller.MyConnectController]: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Superclass has no null constructors but no arguments were given
I use xml configuration and spring 1.1.0.M4. The reason I want to add a method is to write a custom connectionStatus method instead of returning the JSP. I have also tried to override the connectionStatus method as well but receive the same error. Once I remove my new method or my attempt to override the connectionStatus I get no errors at startup.
The problem I am trying to solve is I need to know if a user is connected to a service provider. I thought I could use the social:connected tags but the architecture of my application is such that these tags don't work because the tag code can't get access to the social beans since they are in different web apps.