These are chat archives for spring-cloud/spring-cloud

30th
Jun 2015
Ryan Baxter
@ryanjbaxter
Jun 30 2015 15:51
this question might be better suited for the spring-boot chat but I will start here
I am trying to run my project with the Brixton snapshot but I am getting Exception in thread "main" java.lang.NoSuchMethodError: org.springframework.core.ResolvableType.forInstance(Ljava/lang/Object;)Lorg/springframework/core/ResolvableType
I looked at the dependency on the spring-boot-parent and it was 1.2.4 so I switched my project to use the same version but still no luck
Dave Syer
@dsyer
Jun 30 2015 15:53
Brixton should be Boot 1.3
It hasn't really had a proper run out yet though, so there are probably issues still
The Security stuff won't work with Boot 1.3 I know for sure
Ryan Baxter
@ryanjbaxter
Jun 30 2015 15:55
ok what i am trying to test wont required the security stuff…..i hope
:)
let me try that
Dave Syer
@dsyer
Jun 30 2015 16:00
I see that master is still saying 1.2.4
So I don't know what the problem is
I'm going to bump it to 1.3 anyway
Ryan Baxter
@ryanjbaxter
Jun 30 2015 16:01
yeah using 1.3 M1 doesnt fix the problem
and then if i jump to 1.3 snapshot i think i am running into an issue with the security stuff
:(
Dave Syer
@dsyer
Jun 30 2015 16:03
It will take a while to unravel that
I'll try and do it tomorrow
Do you need Brixton for something specific?
It's only a gnat's whisker ahead of Angel.SR3 right now
Ryan Baxter
@ryanjbaxter
Jun 30 2015 16:08
i have a fix for spring-cloud/spring-cloud-netflix#315 so I wanted to test it against the latest and greatest before i submit the pull request
Dave Syer
@dsyer
Jun 30 2015 16:09
I see.
I'll try and get it working soon then
I don't recoignize that error you pasted originally anywa
And if it isn't a Spring version problem I don't know what it is
Ryan Baxter
@ryanjbaxter
Jun 30 2015 16:11
it could be fixed by moving to 1.3 snapshot but then i see java.lang.UnsupportedClassVersionError: org/springframework/cloud/security/oauth2/resource/UserInfoRestTemplateCustomizer : Unsupported major.minor version 51.0 which i believe is what you were referring to before
Dave Syer
@dsyer
Jun 30 2015 16:13
No, that's just a JDK version mismatch
You aren't trying to use Java 1.6 are you?
Ryan Baxter
@ryanjbaxter
Jun 30 2015 16:26
this is just going to be one of those days where maven and eclipse cant agree
ok i fixed that :)
is this possible the error you were referring to then? Error creating bean with name 'securityFilterChainRegistration' defined in class path resource [org/springframework/boot/autoconfigure/security/SpringBootWebSecurityConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [javax.servlet.Filter]: : Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.setFilterChainProxySecurityConfigurer(org.springframework.security.config.annotation.ObjectPostProcessor,java.util.List) throws java.lang.Exception; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cloud.security.oauth2.sso.OAuth2SsoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.oauth2.provider.token.ResourceServerTokenServices org.springframework.cloud.security.oauth2.sso.OAuth2SsoConfiguration.tokenServices; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cloud.security.oauth2.resource.ResourceServerTokenServicesConfiguration$RemoteTokenServicesConfiguration$UserInfoTokenServicesConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.cloud.security.oauth2.resource.ResourceServerProperties org.springframework.cloud.security.oauth2.resource.ResourceServerTokenServicesConfiguration$RemoteTokenServicesConfiguration$UserInfoTokenServicesConfiguration.sso; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.cloud.security.oauth2.resource.ResourceServerProperties] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.setFilterChainProxySecurityConfigurer(org.springframework.security.config.annotation.ObjectPostProcessor,java.util.List) throws java.lang.Exception; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cloud.security.oauth2.sso.OAuth2SsoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.oauth2.provider.token.ResourceServerTokenServices org.springframework.cloud.security.oauth2.sso.OAuth2SsoConfiguration.tokenServices;
Dave Syer
@dsyer
Jun 30 2015 16:28
That's the kind of issue I expect with Boot 1.3
Ryan Baxter
@ryanjbaxter
Jun 30 2015 16:29
ok
well i at least got to what you expected then :)
Dave Syer
@dsyer
Jun 30 2015 16:30
I thought you said you didn't need security?
Ryan Baxter
@ryanjbaxter
Jun 30 2015 16:31
went back and looked and turns out i did
Dave Syer
@dsyer
Jun 30 2015 16:32
Ah. Can you wait a bit then
Ryan Baxter
@ryanjbaxter
Jun 30 2015 16:32
yeah
i can wait
Dave Syer
@dsyer
Jun 30 2015 16:32
I picked a lousy day to try and install STS 3.7
I'll get it sorted out and under control tomorrow
Ryan Baxter
@ryanjbaxter
Jun 30 2015 16:32
there is never a good time to upgrade your dev environment
np
thanks for the help
Raj
@rajjaiswalsaumya
Jun 30 2015 17:04
apart from properties suggestion that we get in STS... i love intellij for everything else .
had worst experience with eclipse so far... though STS overcomes some of those but not all.