Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29248

The bean 'AmazonEc2InstanceDataPropertySourcePostProcessor', defined in null, could not be registered

$
0
0

I try to migrate spring from 1.5.7 version to 2.1.5 and this exception occurred.

This is multi-project and it uses spring and spring-boot simultaneously.

The stack trace listed below.

2020-02-18 07:23:02.056  INFO 1 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888
2020-02-18 07:23:02.226  INFO 1 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Connect Timeout Exception on Url - http://localhost:8888. Will be trying the next url if available
2020-02-18 07:23:02.226  WARN 1 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/application/dockerEE,solrWriterEnabled,writerBatchSize5000,aws_integration3a,commondb,neo,reviewModelIndexingDisabled/aws_integration3a": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)
2020-02-18 07:23:02.229  INFO 1 --- [           main] c.j.itemdiscovery.index.Application  : The following profiles are active: dockerEE,solrWriterEnabled,writerBatchSize5000,aws_integration3a,commondb,neo,reviewModelIndexingDisabled
2020-02-18 07:23:03.480  INFO 1 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2020-02-18 07:23:03.510  INFO 1 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 23ms. Found 0 repository interfaces.
2020-02-18 07:23:03.515  INFO 1 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2020-02-18 07:23:03.520  INFO 1 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 5ms. Found 0 repository interfaces.
2020-02-18 07:23:03.575  WARN 1 --- [           main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.support.BeanDefinitionOverrideException: Invalid bean definition with name 'AmazonEc2InstanceDataPropertySourcePostProcessor' defined in null: Cannot register bean definition [Generic bean: class [org.springframework.cloud.aws.context.config.AmazonEc2InstanceDataPropertySourcePostProcessor]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] for bean 'AmazonEc2InstanceDataPropertySourcePostProcessor': There is already [Generic bean: class [org.springframework.cloud.aws.context.config.AmazonEc2InstanceDataPropertySourcePostProcessor]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] bound.
2020-02-18 07:23:03.589  INFO 1 --- [           main] ConditionEvaluationReportLoggingListener : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-02-18 07:23:03.593 ERROR 1 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

The bean 'AmazonEc2InstanceDataPropertySourcePostProcessor', defined in null, could not be registered. A bean with that name has already been defined in null and overriding is disabled.

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

Viewing all articles
Browse latest Browse all 29248

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>