HystrixPlugins Another strategy was already registered.

1,201 views
Skip to first unread message

Ruddy32

unread,
Aug 28, 2018, 4:39:26 PM8/28/18
to Thorntail
Hi,

While running unit test, I get the following exception :
Caused by: java.lang.IllegalStateException: Another strategy was already registered.
    at com.netflix.hystrix.strategy.HystrixPlugins.registerConcurrencyStrategy(HystrixPlugins.java:190)
    at io.smallrye.faulttolerance.HystrixInitializer.onStartup(HystrixInitializer.java:54)
    ... 28 more
Is there missing configuration file?
Is it possible to remove faulttolerance service?

Thanks,
Ruddy32

Ken Finnigan

unread,
Aug 29, 2018, 4:19:15 PM8/29/18
to Thorntail
You can remove MP Fault Tolerance by excluding the dependency, if you've added the all encompassing "microprofile" dependency.

I've never seen this error before.

Do you have an example repo you can share?

Ken

Ruddy32

unread,
Aug 30, 2018, 1:27:17 AM8/30/18
to Thorntail
The repository is available at https://github.com/ruddy32/thorntail-deltaspike.

I fix the problem by removing Fault Tolerence dependency.

This issue is register in https://github.com/Netflix/Hystrix/issues/1057. I don't dig to find a solution. Is there a minimum configuration to provide in the application ?

Ruddy32

Martin Kouba

unread,
Aug 30, 2018, 3:53:07 AM8/30/18
to Ruddy32, Thorntail
It looks like a Hystrix command is executed before CDI is initialized
and SmallRye FT concurrency strategy is registered.

How do I reproduce the problem? What test should I run?

Martin

Dne 30.8.2018 v 07:27 Ruddy32 napsal(a):
> --
> You received this message because you are subscribed to the Google
> Groups "Thorntail" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to thorntail+...@googlegroups.com
> <mailto:thorntail+...@googlegroups.com>.
> To post to this group, send email to thor...@googlegroups.com
> <mailto:thor...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/thorntail/f0f0f5fd-a884-4394-9972-d93bb3bb9a5c%40googlegroups.com
> <https://groups.google.com/d/msgid/thorntail/f0f0f5fd-a884-4394-9972-d93bb3bb9a5c%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
Martin Kouba
Senior Software Engineer
Red Hat, Czech Republic

kret

unread,
Jan 24, 2019, 7:04:29 AM1/24/19
to Thorntail
On Thorntail 2.3.0.Final I'm having same issue. Almost empty project. Just 2 classes (JAX-RS activator and simple endpoint)
fractions: full, microprofile, swagger-webapp
Running with mvn thorntail:run

Ken Finnigan

unread,
Jan 24, 2019, 8:08:50 AM1/24/19
to Thorntail
Can you raise an issue at https://issues.jboss.org/browse/THORN with the pastebin link and some details

Thanks

To unsubscribe from this group and stop receiving emails from it, send an email to thorntail+...@googlegroups.com.
To post to this group, send email to thor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/c3f51e79-070f-470b-a9ba-788db37c4295%40googlegroups.com.

kret

unread,
Jan 24, 2019, 8:28:41 AM1/24/19
to Thorntail
Reply all
Reply to author
Forward
0 new messages