Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with SQSRestServer bean using maven #1

Open
stivenson opened this issue Jul 27, 2020 · 0 comments
Open

Problem with SQSRestServer bean using maven #1

stivenson opened this issue Jul 27, 2020 · 0 comments

Comments

@stivenson
Copy link

stivenson commented Jul 27, 2020

Hi guys. best regard !, hi @jojoldu

I have the following trace when trying to run the project after importing this library to mock my SQS (using maven):

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqsRestServer' defined in class path resource [com/github/jojoldu/sqs/AwsMockSqsServerAutoConfiguration.class]: **Bean instantiation via factory method failed**; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticmq.rest.sqs.SQSRestServer]: Factory method 'sqsRestServer' threw exception; nested exception is java.lang.NullPointerException

It's a problem with instance of bean related to AwsMockSqsServerAutoConfiguration class.

But I don't have much idea what it is. I appreciate your advice.

At the moment I imported this into the pom.xml file:

	<dependency>
		<groupId>com.github.jojoldu.spring-boot-aws-mock</groupId>
		<artifactId>mock-sqs-spring-boot-starter</artifactId>
		<version>0.4.0</version>
	</dependency>

And this:

  <repositories>
	<repository>
		<id>jitpack.io</id>
		<url>https://jitpack.io</url>
	</repository>
 </repositories>

And add this configurations into application.properties file:

cloud.aws.region.static=us-east-1
cloud.aws.region.auto=false
cloud.aws.stack.auto=false
sqs.mock.enabled=true
sqs.mock.port=9326
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant