java.lang.ClassCastException:com.sun.faces.facelets.el.TagMethodExpression无法转换为java.lang.String

时间:2019-05-21 19:10:50

标签: jsf jsf-2 wildfly

应用程序正在JSF 2.0 WildFly服务器上运行。 用户登录后,当用户尝试使用菜单进行导航时,应用程序将引发以下异常。

  

java.lang.ClassCastException:com.sun.faces.facelets.el.TagMethodExpression无法转换为javax.faces上javax.faces.validator.BeanValidator.restoreState(BeanValidator.java:451)上的java.lang.String .component.AttachedObjectListHolder.restoreState(AttachedObjectListHolder.java:168)(位于javax.faces.component.UIInput.restoreState(UIInput.java:1425)位于com.sun.faces.application.view.FaceletPartialStateManagementStrategy $ 2.visit(FaceletPartialStateManagementStrategy.java :: 379),位于com.sun.faces.component.visit.FullVisitContext.invokeVisitCallback(FullVisitContext.java:151),位于javax.faces.component.UIComponent.visitTree(UIComponent.java:1689),位于javax.faces.component.UIComponent.visitTree (UIComponent.java:1700)在javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)在javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)在javax.faces.component.UIComponent。在javax.faces.component.UIForm.visitTree(UIForm.java:371)处的visitTree(UIComponent.java:1700)在javax.face处s.component.UIComponent.visitTree(UIComponent.java:1700)在javax.faces.component.UIForm.visitTree(UIForm.java:371)在javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)在javax .faces.component.UIComponent.visitTree(UIComponent.java:1700)在javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)在javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)在javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)上的javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)上的javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)在javax.faces.component.UIForm.visitTree(UIForm.java:371)在javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)在javax.faces.component.UIComponent.visitTree(UIComponent.java:1700) ),位于com.sun.faces.application.view.FaceletPartialStateManagementStrategy.restoreView(FaceletPartialStateManagementStrategy.jav)上的javax.faces.component.UIComponent.visitTree(UIComponent.java:1700) a:366),位于com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:138),位于com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:123),位于com.sun.faces .application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:591)位于com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:151)at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java :353),位于javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:353)。org.omnifaces.viewhandler.RestorableViewHandler.restoreView(RestorableViewHandler。),位于javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:353)。 com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:199)的com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)的com.sun.faces.lifecycle的java:86) .com.sun.faces.lifecycle.LifecycleIm上的.RestoreViewPhase.doPhase(RestoreViewPhase.java:123)位于io.undertow的javax.faces.webapp.FacesServlet.service(FacesServlet.java:658)的pl.execute(LifecycleImpl.java:198)于io.undertow的io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86)的pl.execute(LifecycleImpl.java:198) com.parsek.medudem.carei.front.filter.NoCacheFilter.doFilter(NoCacheFilter.java:53)的io.undertow.servlet.core.ManagedFilter的.servlet.handlers.FilterHandler $ FilterChainImpl.doFilter(FilterHandler.java:130) io.undertow.servlet.handlers.FilterHandler $ FilterChainImpl.doFilter(FilterHandler.java:132)上的.doFilter(ManagedFilter.java:60)com.parsek.medudem.carei.front.filter.ErrorHandlerFilter.doFilter(ErrorHandlerFilter.java) :在io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)在io.undertow.servlet.handlers.FilterHandler $ FilterChainImpl.doFilter(FilterHandler.java:132)在com.parsek.medudem处。在io.undertow.servlet.handler上的carei.front.filter.DirectLinkFilter.doFilter(DirectLinkFilter.java:50)在io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)在io.undertow.servlet.handler s.FilterHandler $ FilterChainImpl.doFilter(FilterHandler.java:132)在com.parsek.vitaly.core.metrics.MetricsFilter.doFilter(MetricsFilter.java:41)在io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter。 io.undertow.servlet.handlers.FilterHandler $ FilterChainImpl.doFilter(FilterHandler.java:132)处io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)处io.undertow.servlet io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)上的.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)在org.wildfly.extension.undertow.security.SecurityContext.AssociationHandler.handleRequest(SecurityContextAssociationHandler) .java:78)位于io.undertow的io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)的io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)。 servlet.ha io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)上的ndlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)在io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java: 46)位于io.undertow.servlet.handlers的io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)的io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64) io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)的.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:72)在io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler .: ),位于io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler。 java:43)位于org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)位于io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)位于io.undertow io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:282)的.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java :261),位于io.undertow.servlet.handlers.ServletInitialHandler.access $ 000(ServletInitialHandler.java:80),位于io.undertow.servlet.handlers.ServletInitialHandler $ 1.handleRequest(ServletInitialHandler.java:172)。位于io.undertow.server.HttpServerExchange $ 1.run(HttpServerExchange.java:774)的Connectors.executeRootHandler(Connectors.java:199)位于java.util的java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) parallel.ThreadPoolExecutor $ Worker.run(ThreadPoolE xecutor.java:624),位于java.lang.Thread.run(Thread.java:748)

0 个答案:

没有答案