hystrixnetflixnetflix-archaius

Conflict in using Netfix hystrix and Archaius


I am getting below error while using hystrix and archaius together. Independently both are working perfectly fine.

IllegalStateException("A non-default configuration is already installed");

Please let me know if anyone has faced similar issue.


Solution

  • Issue is solved by changing the dependency from

         <dependency>
            <groupId>com.netflix.archaius</groupId>
            <artifactId>archaius-core</artifactId>
        <version>0.7.4</version>
        </dependency>
    

    to this

         <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-archaius</artifactId>
            <version>1.3.4.RELEASE</version>
            </dependency>
    

    and no code required for the scheduler configuration. Everyting is managed by spring-cloud-starter-archaius.