Hi

Just thought I'd bring this to notice, although I'm pretty sure not
many people would face this.

For no apparent reason I had been trying to instantiate an abstract
class through Guice. I somehow marked one of my classes as abstract
and then later did not do what I was trying and forgot to remove
abstract. I kept getting a NullPointerException

java.lang.NullPointerException
        at
com.google.inject.BoundProviderFactory.get(BoundProviderFactory.java:
60)
        at com.google.inject.InjectorImpl$9$1.call(InjectorImpl.java:708)
        at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:
747)
        at com.google.inject.InjectorImpl$9.get(InjectorImpl.java:702)
        at com.google.inject.InjectorImpl.getInstance(InjectorImpl.java:728)
        at
bookmark.servlet.StartupListener.contextInitialized(StartupListener.java:
94)

and just ended up wasting about 5 hrs trying to figure out what I was
doing wrong :D Finally I saw what was wrong though.. thank god!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to