title: Spring Social - Could not generate CGLIB subclass
body: <p>I am getting the following error when attempting to navigate to the /connect endpoint of the spring social web module.</p>
  
  <p>What I am getting:</p>
  
  <pre><code>[Request processing failed; nested exception is 
  org.springframework.beans.factory.BeanCreationException: 
  Error creating bean with name 'scopedTarget.connectionRepository' 
  defined in ServletContext resource [/WEB-INF/appContext.xml]: 
  Initialization of bean failed; nested exception is 
  org.springframework.aop.framework.AopConfigException: 
  Could not generate CGLIB subclass of class 
  [class org.springframework.social.connect.jdbc.JdbcConnectionRepository]: 
  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]
  </code></pre>
  
  <p>Relevant portions of web.xml:</p>
  
  <pre><code>&lt;context-param&gt;
      &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
      &lt;param-value&gt;
          /WEB-INF/appContext.xml
      &lt;/param-value&gt;
  &lt;/context-param&gt;
  
  &lt;listener&gt;
      &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  
  &lt;servlet&gt;
      &lt;servlet-name&gt;mvc-dispatcher&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-value&gt;&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  </code></pre>
  
  <p>Relevant portion of appContext.xml:</p>
  
  <pre><code>&lt;bean id="connectionFactoryLocator" 
            class="org.springframework.social.connect.support.ConnectionFactoryRegistry"&gt;
          &lt;property name="connectionFactories"&gt;
              &lt;list&gt;
                  &lt;bean class="org.springframework.social.facebook.connect.FacebookConnectionFactory"&gt;
                      &lt;constructor-arg value="${facebook.clientId}" /&gt;
                      &lt;constructor-arg value="${facebook.clientSecret}" /&gt;                
                  &lt;/bean&gt;
              &lt;/list&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
      &lt;bean id="usersConnectionRepository" 
            class="org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository"&gt;
          &lt;constructor-arg ref="dataSource" /&gt;
          &lt;constructor-arg ref="connectionFactoryLocator" /&gt;
          &lt;constructor-arg ref="textEncryptor" /&gt;
      &lt;/bean&gt;
  
      &lt;bean id="connectionRepository" factory-method="createConnectionRepository" 
            factory-bean="usersConnectionRepository" scope="request"&gt;
          &lt;constructor-arg value="#{request.userPrincipal.name}" /&gt;
          &lt;aop:scoped-proxy proxy-target-class="false" /&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>Thank you for any responses.</p>