Jukito produces "already configured" error with PrivateModules and annotated bindings

45 views
Skip to first unread message

Kohei Nozaki

unread,
Nov 9, 2016, 4:31:43 AM11/9/16
to Jukito
Hello,

I'm trying to use Jukito in a complicated situation which consists of multiple PrivateModules and annotated bindings, but it doesn't work and looking for a help.

I pushed the reproducer and full stacktrace to https://github.com/lbtc-xxx/jukito-error . This problem can be reproduced with cloning this repo and simply executing "mvn clean test".

This yields a CreationException which states "... A binding to app.ThirdPartyService was already configured at ...". But there is no duplicated binding in my modules, so it works well with  Guice.createInjector().getInstance().

I created and exposed one annotated binding and one not annotated binding in a PrivateModule, and apparently it doesn't play well with Jukito.

Is there any workaround to this situation?

Thanks,
Kohei

Kohei Nozaki

unread,
Nov 23, 2016, 8:43:31 PM11/23/16
to juk...@googlegroups.com

Hi there,

I created an issue for this, and a lifesaver came and helped me: https://github.com/ArcBees/Jukito/issues/70

Thanks,
Kohei

--
You received this message because you are subscribed to the Google Groups "Jukito" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jukito+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages