[jboss-jira] [JBoss JIRA] Created: (JBAS-7761) NullPointerException when trying to inject a failing persistence unit

Carlo de Wolf (JIRA) jira-events at lists.jboss.org
Mon Feb 22 16:40:10 EST 2010


NullPointerException when trying to inject a failing persistence unit
---------------------------------------------------------------------

                 Key: JBAS-7761
                 URL: https://jira.jboss.org/jira/browse/JBAS-7761
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: JBossAS-5.1.0.GA
            Reporter: Carlo de Wolf
            Priority: Minor


If create is not called on the PersistenceUnitDeployment it'll lead to a NPE when assuming it can be found in the PersistenceUnitRegistry. This can happen if MC injection fails for some reason for example. (In this case no CEMFBuilder installed.)

java.lang.NullPointerException
	at org.jboss.injection.PersistenceUnitHandler.getManagedEntityManagerFactory(PersistenceUnitHandler.java:149)
	at org.jboss.injection.PcEncInjector.inject(PcEncInjector.java:76)
	at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)
	at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:471)
	... 108 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list