Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4578

Quarkus 3: UnsupportedOperation in BeanManager

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0-RC5
    • 4.0.1
    • Extension Feature
    • None

    Description

      Getting this error not in native mode just running in quarkus:dev mode.

      Java code using OmniFaces works in Qaurkus2 and outside of Quarkus:

      public void rebuildView() {
              log.info("OmniFaces rebuildView()");
              Messages.addInfo("cdiViewScopedForm", "Rebuild view invoked: {0}", this);
              Faces.setViewRoot(Faces.getViewId());
      }

       

       

      Caused by: java.lang.UnsupportedOperationException
              at io.quarkus.arc.impl.BeanManagerImpl.getPassivationCapableBean(BeanManagerImpl.java:109)
              at org.apache.myfaces.cdi.util.ContextualStorage.getBean(ContextualStorage.java:168)
              at org.apache.myfaces.cdi.util.AbstractContextualStorageHolder.destroyAll(AbstractContextualStorageHolder.java:213)     at org.apache.myfaces.cdi.util.AbstractContextualStorageHolder.destroyAll(AbstractContextualStorageHolder.java:249)     at org.apache.myfaces.cdi.view.ViewScopeContextualStorageHolder_ClientProxy.destroyAll(Unknown Source)
              at org.apache.myfaces.cdi.view.ViewScopeContext.destroyAll(ViewScopeContext.java:221)
              at org.apache.myfaces.cdi.view.ViewScopeCDIMap.clear(ViewScopeCDIMap.java:147)
              at org.apache.myfaces.view.ViewScopeProxyMap.clear(ViewScopeProxyMap.java:151)
              at org.apache.myfaces.context.servlet.FacesContextImplBase.setViewRoot(FacesContextImplBase.java:303)
              at org.omnifaces.util.FacesLocal.setViewRoot(FacesLocal.java:489)
              at org.omnifaces.util.Faces.setViewRoot(Faces.java:738)
              at io.quarkiverse.omnifaces.it.OmniCdiViewScopedBean.rebuildView(OmniCdiViewScopedBean.java:72)
              at io.quarkiverse.omnifaces.it.OmniCdiViewScopedBean_ClientProxy.rebuildView(Unknown Source)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:568)
              at org.apache.el.parser.AstValue.invoke(AstValue.java:253) 

       

       

      Attachments

        1. MYFACES-4578.zip
          13 kB
          Melloware

        Activity

          People

            tandraschko Thomas Andraschko
            melloware Melloware
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: