You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Thomas Andraschko (Jira)" <de...@myfaces.apache.org> on 2023/03/06 13:49:00 UTC

[jira] [Comment Edited] (MYFACES-4578) Quarkus 3: UnsupportedOperation in BeanManager

    [ https://issues.apache.org/jira/browse/MYFACES-4578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17696955#comment-17696955 ] 

Thomas Andraschko edited comment on MYFACES-4578 at 3/6/23 1:48 PM:
--------------------------------------------------------------------

might be but the exception is from myfaces, when it destroys the myfaces ViewScoped beans. OmniFaces has its own ViewScoped propably.
So this should also be reproducable without omnifaces, omnifaces just triggers the clean.


was (Author: tandraschko):
might be but the expcetion is from myfaces, when it destroys the myfaces ViewScoped beans. OmniFaces has its own ViewScoped propably.

> Quarkus 3: UnsupportedOperation in BeanManager
> ----------------------------------------------
>
>                 Key: MYFACES-4578
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4578
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: Extension Feature
>    Affects Versions: 4.0.0-RC5
>            Reporter: Melloware
>            Priority: Major
>
> Getting this error not in native mode just running in *quarkus:dev* mode.
> Java code using OmniFaces works in Qaurkus2 and outside of Quarkus:
> {code:java}
> public void rebuildView() {
>         log.info("OmniFaces rebuildView()");
>         Messages.addInfo("cdiViewScopedForm", "Rebuild view invoked: {0}", this);
>         Faces.setViewRoot(Faces.getViewId());
> }{code}
>  
>  
> {code:java}
> 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) {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)