Skip to content

AWS BluAge L3 workshop. Go-Live->Deploy->Start application. Application fails to start.

0

at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:419) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:186) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866) ... 21 more Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'applicationInitializer': Unsatisfied dependency expressed through field 'bluesamManager': Error creating bean with name 'com.netfective.bluage.bluesam.autoconfigure.BluesamAutoConfiguration$EmbeddedBluesamAutoConfiguration': Unsatisfied dependency expressed through field 'cacheProvider': Error creating bean with name 'cacheProvider' defined in class path resource [com/netfective/bluage/bluesam/autoconfigure/BluesamAutoConfiguration$RedisBluesamAutoConfiguration.class]: Unsatisfied dependency expressed through method 'cacheProvider' parameter 0: Error creating bean with name 'cacheManager' defined in class path resource [com/netfective/bluage/bluesam/autoconfigure/BluesamAutoConfiguration$RedisBluesamAutoConfiguration.class]: Failed to instantiate [org.springframework.cache.CacheManager]: Factory method 'cacheManager' threw exception with message: Error creating bean with name 'bluesamRedisSerializer' defined in class path resource [com/netfective/bluage/bluesam/autoconfigure/BluesamAutoConfiguration$RedisBluesamAutoConfiguration.class]: Failed to instantiate [com.netfective.bluage.gapwalk.bluesam.redis.BluesamRedisSerializer]: Factory method 'bluesamRedisSerializer' threw exception with message: Error creating bean with name 'metadataPersistence' defined in class path resource [com/netfective/bluage/bluesam/autoconfigure/BluesamAutoConfiguration$PgsqlAutoConfiguration.class]: Failed to instantiate [com.netfective.bluage.gapwalk.bluesam.core.storage.MetadataPersistence]: Factory method 'metadataPersistence' threw exception with message: Error while trying to create the metadata table, using script at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:787) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:767) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:145) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:508) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1419) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:599) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:975) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:962) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456) at org.springframework.boot.SpringApplication.run(SpringApplication.java:334) at com.netfective.bluage.gapwalk.application.JicsApplicationLauncher.run(JicsApplicationLauncher.java:145) at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:154) at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:96) at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4850) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) ... 27 more Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.netfective.bluage.bluesam.autoconfigure.BluesamAutoConfiguration$EmbeddedBluesamAutoConfiguration': Unsatisfied dependency expressed through field 'cacheProvider': Error creating bean with name 'cacheProvider' defined in class path resource [com/netfective/bluage/bluesam/autoconfigure/BluesamAutoConfiguration$RedisBluesamAutoConfiguration.class]: Unsatisfied dependency expressed through method 'cacheProvider' parameter 0: Error creating bean with name 'cacheManager' defined in class path resource [com/netfective/bluage/bluesam/autoconfigure/BluesamAutoConfiguration$RedisBluesamAutoConfiguration.class]: Failed to instantiate [org.springframework.cache.CacheManager]: Factory method 'cacheManager' threw exception with message: Error creating bean with name 'bluesamRedisSerializer' defined in class path resource [com/netfective/bluage/bluesam/autoconfigure/BluesamAutoConfiguration$RedisBluesamAutoConfiguration.class]: Failed to instantiate [com.netfective.bluage.gapwalk.bluesam.redis.BluesamRedisSerializer]: Factory method 'bluesamRedisSerializer' threw exception with message: Error creating bean with name 'metadataPersistence' defined in class path resource [com/netfective/bluage/bluesam/autoconfigure/BluesamAutoConfiguration$PgsqlAutoConfiguration.class]: Failed to instantiate [com.netfective.bluage.gapwalk.bluesam.core.storage.MetadataPersistence]: Factory method 'metadataPersistence' threw exception with message: Error while trying to create the metadata table, using script at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:787) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:767) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:145) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:508) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1419) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:599) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:409) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1335) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1165) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1443) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1353) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:784) ... 50 more Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'cacheProvider' defined in class path resource [com/netfective/bluage/bluesam/autoconfigure/BluesamAutoConfiguration$RedisBluesamAutoConfiguration.class]: Unsatisfied dependency expressed through method 'cacheProvider' parameter 0: Error creating bean with name 'cacheManager' defined in class path resource [com/netfective/bluage/bluesam/autoconfigure/BluesamAutoConfiguration$RedisBluesamAutoConfiguration.class]: Failed to instantiate [org.springframework.cache.CacheManager]: Factory method 'cacheManager' threw exception with message: Error creating bean with name 'bluesamRedisSerializer' defined in class path resource [com/netfective/bluage/bluesam/autoconfigure/BluesamAutoConfiguration$RedisBluesamAutoConfiguration.class]: Failed to instantiate [com.netfective.bluage.gapwalk.bluesam.redis.BluesamRedisSerializer]: Factory method 'bluesamRedisSerializer' threw exception with message: Error creating bean with name 'metadataPersistence' defined in class path resource [com/netfective/bluage/bluesam/autoconfigure/BluesamAutoConfiguration$PgsqlAutoConfiguration.class]: Failed to instantiate [com.netfective.bluage.gapwalk.bluesam.core.storage.MetadataPersistence]: Factory method 'metadataPersistence' threw exception with message: Error while trying to create the metadata table, using script at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:795) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:542) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1335) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1165) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1443) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1353) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:784) ... 73 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in class path resource [com/netfective/bluage/bluesam/autoconfigure/BluesamAutoConfiguration$RedisBluesamAutoConfiguration.class]: Failed to instantiate [org.springframework.cache.CacheManager]: Factory method 'cacheManager' threw exception with message: Error creating bean with name 'bluesamRedisSerializer' defined in class path resource [com/netfective/bluage/bluesam/autoconfigure/BluesamAutoConfiguration$RedisBluesamAutoConfiguration.class]: Failed to instantiate [com.netfective.bluage.gapwalk.bluesam.redis.BluesamRedisSerializer]: Factory method 'bluesamRedisSerializer' threw exception with message: Error creating bean with name 'metadataPersistence' defined in class path resource [com/netfective/bluage/bluesam/autoconfigure/BluesamAutoConfiguration$PgsqlAutoConfiguration.class]: Failed to instantiate [com.netfective.bluage.gapwalk.bluesam.core.storage.MetadataPersistence]: Factory method 'metadataPersistence' threw exception with message: Error while trying to create the metadata table, using script at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:648) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:485) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1335) at org.springframework.b

asked a year ago142 views

1 Answer
0

The error you're encountering during the "Start application" phase of the AWS BluAge L3 workshop's Go-Live process is related to database configuration issues. The application is failing to start because it cannot create the metadata table needed by the BlueSam component.

Based on the error stack trace, the issue is occurring in the following sequence:

  1. The application is trying to create a bean for the applicationInitializer
  2. This depends on bluesamManager
  3. Which depends on cacheProvider
  4. Which depends on cacheManager
  5. Which depends on bluesamRedisSerializer
  6. Which depends on metadataPersistence
  7. And finally, metadataPersistence is failing to create the metadata table using a script

This is likely due to one of the following issues:

  1. Database naming mismatch - Check if your database resource names have any capitalization issues or incorrect characters. In similar cases, users have found that database names created with capital letters didn't match the all-lowercase names expected by the application.

  2. Database connectivity problems - Verify that all required database servers (jics, bluesam, bac, primary) are started and running correctly.

  3. Configuration mismatch - Ensure that your database connection settings in configuration files match exactly with the actual database setup.

  4. Insufficient permissions - The database user might not have sufficient permissions to create tables.

To resolve this issue, carefully check your database names and configuration, ensuring there are no mismatches between what's configured in your application and the actual database resources. In particular, look for naming inconsistencies like hyphens instead of underscores or capitalization differences.
Sources
AWS BluAge L3 workshop. Go-Live->Deploy->Start application. Application fails to start. | AWS re:Post
Tomcat isn't starting in AWS Blu Age L3 Workshop | AWS re:Post
AWS Blu Age L3 workshop - Automation step error | AWS re:Post

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.