[jboss-user] [JBoss Microcontainer Development] New message: "Re: NPE on ungetValue()"

Kabir Khan do-not-reply at jboss.com
Wed Feb 17 13:29:43 EST 2010


User development,

A new message was posted in the thread "NPE on ungetValue()":

http://community.jboss.org/message/526835#526835

Author  : Kabir Khan
Profile : http://community.jboss.org/people/kabir.khan@jboss.com

Message:
--------------------------------------------------------------
Aha, reading the original mail helped :-)
 
> Hi,
> 
> In AbstractWarDeployer, there is a @Inject annotation on the
> setPersistenceUnitDependencyResolver method which creates a hard
> dependency on JPA. Trying to loosen that dependency without making big
> changes, I changed it to @Inject (option=InjectOption.OPTIONAL). This
> does work to some extent (the dependency is now indeed optional), but
> it causes a NPE on shutdown.
> 
> Any ideas ?
> 
> Rémy
Since it is Optional, context might not be there. I'll create a test and fix for that, and also look into what happens if we use FromContext injection.
 
https://jira.jboss.org/jira/browse/JBKERNEL-100

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/526835#526835




More information about the jboss-user mailing list