Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7761

NullPointerException when trying to inject a failing persistence unit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Minor
    • No Release
    • JBossAS-5.1.0.GA
    • None
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-engineering-cdewolf Carlo de Wolf
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: