-
Notifications
You must be signed in to change notification settings - Fork 369
stackResourceRegistryFactoryBean returns null value #496
Comments
same issue in my project. |
I am not able to reproduce it using 2.2.1 version. Could you please provide complete sample as a github repository that reproduces this issue? |
Running into the same issue. Just adding some more info that might be help troubleshoot. I'm seeing the issue arise when Not sure if this means the responsibility falls under
|
I think @reypader suggestion is valid:
|
Encountering a problem with starting an application using
spring-cloud-starter-aws:2.1.0.RELEASE
withcloud.aws.stack.auto = false
. The application encounters the following error:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stackResourceRegistryFactoryBean' defined in class path resource [org/springframework/cloud/aws/autoconfigure/context/ContextStackAutoConfiguration.class]: Initialization of bean failed; nested exception is java.lang.ClassCastException: org.springframework.beans.factory.support.NullBean cannot be cast to org.springframework.beans.factory.FactoryBean
This is likely due to
org.springframework.cloud.aws.autoconfigure.context.ContextStackAutoConfiguration.stackResourceRegistryFactoryBean()
returning null.Should this be changed to use
@ConditionalOnProperty("cloud.aws.stack.name")
and@ConditionalOnProperty("cloud.aws.stack.auto")
?The text was updated successfully, but these errors were encountered: