frjaeger220 / google-guice

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

NullPointerException in JndiIntegration.fromJndi #275

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I encounter the following NPE:

Caused by: java.lang.NullPointerException
        at
com.google.inject.jndi.JndiIntegration$JndiProvider.get(JndiIntegration.java:59)
        at
com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProvider
Adapter.java:41)
        at
com.google.inject.InjectorImpl$SingleParameterInjector.inject(InjectorImpl.java:
640)
        ... 108 more

From browsing the source, it looks like the Context instance is null. It
would be helpful for the documentation to indicate that Context must be
bound in the module using JndiIntegration for this to work.

Original issue reported on code.google.com by kris.nuttycombe on 19 Nov 2008 at 4:59

GoogleCodeExporter commented 9 years ago
Awk, never mind. Just saw the doc.

Original comment by kris.nuttycombe on 19 Nov 2008 at 5:00

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 26 Apr 2009 at 9:48