[jboss-jira] [JBoss JIRA] (WFLY-4046) Container lifecycle event method invoked outside of extension observer method invocation

Jozef Hartinger (JIRA) issues at jboss.org
Mon Nov 3 07:33:36 EST 2014


     [ https://issues.jboss.org/browse/WFLY-4046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jozef Hartinger resolved WFLY-4046.
-----------------------------------
    Fix Version/s:     (was: 9.0.0.Beta1)
       Resolution: Rejected


This is per specification. See http://docs.jboss.org/cdi/api/1.2/javax/enterprise/inject/spi/ProcessAnnotatedType.html#getAnnotatedType()

CamelExtension can get around this by storing AnnotatedTypes, not ProcessAnnotatedType events here: https://github.com/tdiesler/camel/blob/trunk/components/camel-cdi/src/main/java/org/apache/camel/cdi/internal/CamelContextConfig.java#L39

> Container lifecycle event method invoked outside of extension observer method invocation
> ----------------------------------------------------------------------------------------
>
>                 Key: WFLY-4046
>                 URL: https://issues.jboss.org/browse/WFLY-4046
>             Project: WildFly
>          Issue Type: Bug
>          Components: CDI / Weld
>    Affects Versions: 9.0.0.Alpha1
>            Reporter: Thomas Diesler
>            Assignee: Jozef Hartinger
>
> Cannot deploy war that uses camel-cdi
> This works in 8.1.0.Final
> {code}
> org.jboss.weld.exceptions.IllegalStateException: WELD-000143: Container lifecycle event method invoked outside of extension observer method invocation.
> 	at org.jboss.weld.bootstrap.events.ContainerEvent.checkWithinObserverNotification(ContainerEvent.java:61)
> 	at org.jboss.weld.bootstrap.events.ProcessAnnotatedTypeImpl.getAnnotatedType(ProcessAnnotatedTypeImpl.java:56)
> 	at org.apache.camel.cdi.internal.CamelContextConfig.configure(CamelContextConfig.java:47)
> 	at org.apache.camel.cdi.internal.CamelContextBean.configureCamelContext(CamelContextBean.java:131)
> 	at org.apache.camel.cdi.internal.CamelExtension.startConsumeBeans(CamelExtension.java:231)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jboss-jira mailing list