0

I am trying to use chaos monkey with spring boot but getting the following error. Has anyone used it with spring cloud and Hystrix to test the fallback? Not able to start the server.

Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'chaosMonkeyRequestScope': Requested bean is currently in creation: Is there an unresolvable circular reference?

I am using the following version :

springBootVersion = '2.1.2.RELEASE'
springCloudVersion= "Greenwich.SR3"
"de.codecentric:chaos-monkey-spring-boot:2.1.0"
Chandresh Mishra
  • 1,081
  • 3
  • 24
  • 45

2 Answers2

0

There was a bug in chaosmonkey in combination with spring cloud in latest chaos monkey release 2.1

Upgrade to Chaos Monkey 2.1.1 should fix your problem :)

For gradle:

compile 'de.codecentric:chaos-monkey-spring-boot:2.1.1'

For maven:

<dependency>
  <groupId>de.codecentric</groupId>
  <artifactId>chaos-monkey-spring-boot</artifactId>
  <version>2.1.1</version>
</dependency>
Joker
  • 2,304
  • 25
  • 36
0

what I found, spring starter web dependency was missing somehow and everything was working fine except chaos money.

Chandresh Mishra
  • 1,081
  • 3
  • 24
  • 45