bineanzhou / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

ConstructorInjector.java:105 should indicate exception cause #210

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
ConstructorInjector.java:105 catches a NoSuchMethodException and constructs
the following kind of exception message:

com.google.inject.ConfigurationException: Error at
MyClass.<init>(MyClass.java:65) Could not find a suitable constructor in
MyClass. Classes must have either one (and only one) constructor annotated
with @Inject or a zero-argument constructor.

That's fine and well, but if the messages included NoSuchMethodException as
its "cause" it would really help me track down the underlying problem. As
far as I can see, MyClass does exactly what the exception message is asking
for :(

Original issue reported on code.google.com by gili.tza...@gmail.com on 17 Jun 2008 at 7:15

GoogleCodeExporter commented 9 years ago
My mistake, this error was caused by a server-side caching problem. Guice was
reporting the correct error because the webapp being invoked was invalid and the
fixed code wasn't being deployed properly. Feel free to close this issue as 
invalid.

Original comment by gili.tza...@gmail.com on 17 Jun 2008 at 7:54

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 2 Nov 2008 at 9:00