[jboss-jira] [JBoss JIRA] (WFLY-9277) Wildfly logs warning "WFLYEJB0463: Invalid transaction attribute" for Stateful components with CDI lifecycle methods
Tomasz Adamski (JIRA)
issues at jboss.org
Thu Oct 12 12:54:00 EDT 2017
[ https://issues.jboss.org/browse/WFLY-9277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomasz Adamski reassigned WFLY-9277:
------------------------------------
Assignee: Tomasz Adamski
> Wildfly logs warning "WFLYEJB0463: Invalid transaction attribute" for Stateful components with CDI lifecycle methods
> --------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-9277
> URL: https://issues.jboss.org/browse/WFLY-9277
> Project: WildFly
> Issue Type: Bug
> Components: EJB
> Affects Versions: 11.0.0.CR1
> Environment: WFLY 11.0.0.CR1, JDK8
> Reporter: Bernhard Hablesreiter
> Assignee: Tomasz Adamski
> Labels: cdi, ejb, transaction
>
> 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:
> {code:java}
> @Named
> @SessionScoped
> @Stateful
> public class Test implements Serializable
> {
> private static final long serialVersionUID = -2055975290009863989L;
> @PostConstruct
> private void postConstruct()
> {}
> }
> {code}
> 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.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list