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

Jozef Hartinger (JIRA) issues at jboss.org
Tue Nov 4 03:40:35 EST 2014


    [ https://issues.jboss.org/browse/WFLY-4046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017020#comment-13017020 ] 

Jozef Hartinger commented on WFLY-4046:
---------------------------------------

My suggestion would be to:

{quote}
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
{quote}

> 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}
> Cross Issue: https://issues.apache.org/jira/browse/CAMEL-7992



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


More information about the jboss-jira mailing list