Status: New
Owner: ----
New issue 606 by [email protected]: Guice creation error : Error in custom
provider : hides underlying exception
http://code.google.com/p/google-guice/issues/detail?id=606
I saw something like the following when a RuntimeException was thrown
inside a method annotated with @Provides
12:08:39.503 [main] INFO c.p.s.d.m.DiscoveryServiceMonitoring -
Successfully registered c.p.s.d.m.DiscoveryServiceMonitoring
2011-02-18 12:08:39.513:WARN::Failed startup of context
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@181f327e{/service-discovery-service,/home/caoilte/projects/discovery-service/src/main/webapp}
com.google.inject.CreationException: Guice creation errors:||1) Error in
custom provider, java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException| at
[...]
[Stack showing location of code annotated with @Provides]
It would be more helpful if Guice logged the exception that was thrown.
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.