java.lang.UnsupportedOperationException: getProvider() not supported for module bindings
at com.google.inject.internal.BindingImpl.getProvider(BindingImpl.java:73)
at org.nnsoft.guice.rocoto.Rocoto$2.visit(Rocoto.java:98)
at org.nnsoft.guice.rocoto.Rocoto$2.visit(Rocoto.java:75)
at com.google.inject.internal.BindingImpl.acceptVisitor(BindingImpl.java:99)
at org.nnsoft.guice.rocoto.Rocoto.configure(Rocoto.java:74)
at com.google.inject.AbstractModule.configure(AbstractModule.java:61)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:344)
at com.google.inject.spi.Elements.getElements(Elements.java:103)
at com.google.inject.util.Modules$OverrideModule.configure(Modules.java:195)
at com.google.inject.AbstractModule.configure(AbstractModule.java:61)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:344)
at com.google.inject.spi.Elements.getElements(Elements.java:103)
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:137)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
... 4 more
Simple groovy script to reproduce the issue
I used code from getting started example http://99soft.github.io/rocoto/getting-started.html
The result is:
BTW, the same code works with guice 4.1.0.