[ 
https://issues.apache.org/jira/browse/EXTCDI-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gerhard Petracek resolved EXTCDI-50.
------------------------------------

    Fix Version/s: 1.0.0-SNAPSHOT
       Resolution: Fixed

> @ViewAccessScoped annotation must not be used as Qualifier
> ----------------------------------------------------------
>
>                 Key: EXTCDI-50
>                 URL: https://issues.apache.org/jira/browse/EXTCDI-50
>             Project: MyFaces CODI
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.0-SNAPSHOT
>            Reporter: Mark Struberg
>             Fix For: 1.0.0-SNAPSHOT
>
>         Attachments: EXTCDI-50.patch, EXTCDI-50_v2.patch
>
>
> we currently use the @ViewAccessScoped annotation as a Qualifier in CODI 
> internally. But this is not correct and OWB crashes with an Exception at 
> runtime (I assume Weld will reacts in a similar way).
> In my situation it happens with a @ViewAccessScoped bean which gets an event 
> via @Observes. At the time the event gets fired, OWB crashes with the 
> following stacktrace:
> 2010-09-04 18:37:01.414:WARN::/course/errorPage.xhtml
> java.lang.IllegalArgumentException: Qualifier annotations must be annotated 
> with @Qualifier
>       at 
> org.apache.webbeans.util.AnnotationUtil.checkQualifierConditions(AnnotationUtil.java:906)
>       at 
> org.apache.webbeans.util.AnnotationUtil.checkQualifierConditions(AnnotationUtil.java:882)
>       at 
> org.apache.webbeans.util.AnnotationUtil.checkQualifierConditions(AnnotationUtil.java:870)
>       at 
> org.apache.webbeans.container.BeanManagerImpl.getBeans(BeanManagerImpl.java:669)
>       at 
> org.apache.webbeans.util.WebBeansUtil.getMostSpecializedBean(WebBeansUtil.java:2549)
>       at 
> org.apache.webbeans.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:229)
>       at 
> org.apache.webbeans.event.NotificationManager.fireEvent(NotificationManager.java:441)
>       at 
> org.apache.webbeans.container.BeanManagerImpl.fireEvent(BeanManagerImpl.java:401)
>       at org.apache.webbeans.event.EventImpl.fire(EventImpl.java:74)
>       at 
> at.ac.tuwien.tiss.core.fe.LanguageSettingsHandler.checkLanguage(LanguageSettingsHandler.java:63)
> One argument more to move our @ViewAccessScoped from a stereotype to a 'real' 
> scope ;)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to