Announcement Announcement Module
Collapse
No announcement yet.
Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExcept Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExcept

    So I am now using my local build of the code as of today. social modules core, config, web, and security. Below is my configuration class. And I am getting exception about

    Caused by: org.springframework.beans.factory.BeanDefinitionSt oreException: Failed to read candidate component class: file [/Users/bytor99999/Documents/blah/blah/blah/blah/blah-web/target/classes/com/blah/social/config/SocialConfig.class]; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProx y

    Any ideas?

    Code:
    @Configuration
    @EnableJdbcConnectionRepository
    @EnableTwitter(appId="${twitter.consumerKey}", appSecret = "${twitter.consumerSecret}")
    @EnableFacebook(appId = "${facebook.clientId}", appSecret = "${facebook.clientSecret}")
    public class SocialConfig {
    
      //@Autowired
      //SpringSecuritySignInAdapter springSecuritySignInAdapter;
    
      @Autowired
      ConnectionFactoryLocator connectionFactoryLocator;
    
      @Autowired
      ConnectionRepository connectionRepository;
    
      @Autowired
      UsersConnectionRepository usersConnectionRepository;
    
    
     	@Bean
     	public ConnectController connectController() {
     		ConnectController connectController = new ConnectController(connectionFactoryLocator, connectionRepository);
     		return connectController;
     	}
    
      @Bean
      public ProviderSignInController providerSignInController(RequestCache requestCache) {
        ProviderSignInController controller = new ProviderSignInController(connectionFactoryLocator, usersConnectionRepository, new SpringSecuritySignInAdapter(requestCache));
        controller.setSignUpUrl("/account/signup");
        return controller;
      }
    
      @Bean
      	public SocialAuthenticationFilter socialAuthenticationFilter(AuthenticationManager authenticationManager, RememberMeServices rememberMeServices, SocialAuthenticationServiceLocator authenticationServiceLocator) {
      		SocialAuthenticationFilter socialAuthenticationFilter = new SocialAuthenticationFilter(authenticationManager, userIdSource(), usersConnectionRepository, authenticationServiceLocator);
      		socialAuthenticationFilter.setFilterProcessesUrl("/auth");
      		socialAuthenticationFilter.setSignupUrl("/account/signup"); // TODO: Fix filter to handle in-app paths
      		socialAuthenticationFilter.setRememberMeServices(rememberMeServices);
      		return socialAuthenticationFilter;
      	}
    
      	@Bean
      	public AuthenticationProvider socialAuthenticationProvider(UserDetailsService userDetailsService) {
      		return new SocialAuthenticationProvider(usersConnectionRepository, socialUsersDetailsService(userDetailsService));
      	}
    
      	@Bean
      	public SocialUserDetailsService socialUsersDetailsService(UserDetailsService userDetailsService) {
      		return new SimpleSocialUserDetailsService(userDetailsService);
      	}
    
      @Bean
      public PasswordEncoder passwordEncoder() {
          return NoOpPasswordEncoder.getInstance();
      }
    
      @Bean
      public TextEncryptor textEncryptor() {
        return Encryptors.noOpText();
      }
    
      @Bean
      public AuthenticationNameUserIdSource userIdSource() {
        return new AuthenticationNameUserIdSource();
      }
    
    }
    Thanks

    Mark
Working...
X