AWS L3 Troubleshooting CARDDEMO application start failed

0

When I start CARDDEMO app failing with below error. Need help with resolving the issue.

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'applicationInitializer': Unsatisfied dependency expressed through field 'bluesamManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.netfective.bluage.bluesam.autoconfigure.BluesamAutoConfiguration$EmbeddedBluesamAutoConfiguration': Unsatisfied dependency expressed through field 'metadataPersistence'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metadataPersistence' defined in class path resource [com/netfective/bluage/bluesam/autoconfigure/BluesamAutoConfiguration$PgsqlAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netfective.bluage.gapwalk.bluesam.core.storage.MetadataPersistence]: Factory method 'metadataPersistence' threw exception; nested exception is java.lang.RuntimeException: Error while trying to create the metadata table, using script

Application starts without any error and runs in appstream locally. App start failing when we deployed the app in M2 environment. Thanks, Ram

Ram
asked 2 months ago73 views
1 Answer
0

Hello Ram,

Thankyou for reaching out to us via the Forum.

I see that you are facing issues where the application is run in M2 environment whereas it runs without issues in local.

Reviewing the error it seems like it is originating from the code of the application via either missing dependencies or code discrepancies. However, I wouldn't be able to comment on code of the issue as Code Debugging is out of scope of scope for AWS Support and hence a developer at your end would be able to understand the same. However to aid you further on best effort basis, I was able to find the following online discussion regarding issues very similar to what you are facing.

[+] https://stackoverflow.com/questions/37214538/org-springframework-beans-factory-unsatisfieddependencyexception-error-creating [+] https://medium.com/@kjavaman12/resolving-org-springframework-beans-factory-unsatisfieddependencyexception-98bfc682006e [+] https://www.baeldung.com/spring-beancreationexception

Please note that any third party documentation shared are for reference purpose only and AWS Premium Support doesn’t endorse it.

That being said, please do not hesitate in creating a support case if you feel like the code is fine and there could be issue with the environment. We can review the resources and investigate further,

Hope this was helpful

AWS
answered a month ago