Uploaded image for project: 'MyFaces CODI'
  1. MyFaces CODI
  2. EXTCDI-50

@ViewAccessScoped annotation must not be used as Qualifier

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.0
    • 0.9.0
    • Core
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: