Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1506

NullPointerException in TransactionManagementAnnotationProcessor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.1.Final
    • None
    • EJB
    • None
    • Workaround Exists
    • Hide

      Specify an explicit value for the @TransactionManagement annotation like @TransactionManagement(value = TransactionManagementType.CONTAINER) or @TransactionManagement(value = TransactionManagementType.BEAN)

      Show
      Specify an explicit value for the @TransactionManagement annotation like @TransactionManagement(value = TransactionManagementType.CONTAINER) or @TransactionManagement(value = TransactionManagementType.BEAN)

    Description

      A bean configured like:

      @TransactionManagement
      @Stateless
      public class Bean
      {
      ...
      

      results in a NPE in TransactionManagementAnnotationProcessor:

      Caused by: java.lang.NullPointerException
      
          at org.jboss.as.ejb3.deployment.processors.TransactionManagementAnnotationProcessor.processTransactionManagement(TransactionManagementAnnotationProcessor.java:67)
      
          at org.jboss.as.ejb3.deployment.processors.TransactionManagementAnnotationProcessor.processComponentConfig(TransactionManagementAnnotationProcessor.java:57)
      
          at org.jboss.as.ee.component.AbstractComponentConfigProcessor.deploy(AbstractComponentConfigProcessor.java:53)
      
          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
      
          ... 5 more
      

      See referenced forum thread for details.

      Attachments

        Activity

          People

            jaikiran Jaikiran Pai (Inactive)
            jaikiran Jaikiran Pai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: