Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9277

Wildfly logs warning "WFLYEJB0463: Invalid transaction attribute" for Stateful components with CDI lifecycle methods

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 11.0.0.CR1
    • Fix Version/s: None
    • Component/s: EJB
    • Labels:
    • Environment:

      WFLY 11.0.0.CR1, JDK8

      Description

      Wildlfy logs a warning "WFLYEJB0463: Invalid transaction attribute type REQUIRED on SFSB lifecycle method Method postConstruct() of class class com.test.Test, valid types are REQUIRES_NEW and NOT_SUPPORTED. Method will be treated as NOT_SUPPORTED." for @Stateful-components with CDI lifecycle annotations, even if the Class does not define any Transaction-Attributes:

      @Named
      @SessionScoped
      @Stateful
      public class Test implements Serializable
      {
      	private static final long serialVersionUID = -2055975290009863989L;
      
      	@PostConstruct
      	private void postConstruct()
      	{}
      }
      

      The warning is only created when the @PostConstruct-method is on the class itself and not inherited (which does not make any difference). If the class extends another class, which declares a @PostConstruct-method, the warning does not appear.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tomekadamski Tomasz Adamski
                Reporter:
                beadaptive Bernhard Hablesreiter
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: