1

当我尝试单击提交按钮时,最初的方法正在调用和执行,但是当我第二次尝试单击相同的提交按钮时,我遇到了以下问题:

下面是代码:

<h:commandButton class="nxt_btn clone_nxt_btn" value="Submit" action="#{cloneDAO.launchWorkflow()}" id="submit">
</h:commandButton>

例外:

Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to [[Ljava.lang.Object;
    at javax.faces.component.UIComponentBase.restoreSystemEventListeners(UIComponentBase.java:1864)
    at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1565)
    at com.sun.faces.application.view.FaceletPartialStateManagementStrategy$2.visit(FaceletPartialStateManagementStrategy.java:380)
    at com.sun.faces.component.visit.FullVisitContext.invokeVisitCallback(FullVisitContext.java:151)
    at javax.faces.component.UIComponent.visitTree(UIComponent.java:1652)
    at javax.faces.component.UIComponent.visitTree(UIComponent.java:1663)
    at javax.faces.component.UIForm.visitTree(UIForm.java:371)
    at javax.faces.component.UIComponent.visitTree(UIComponent.java:1663)
    at com.sun.faces.application.view.FaceletPartialStateManagementStrategy.restoreView(FaceletPartialStateManagementStrategy.java:367)
    at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:138)
    at com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:123)
    at com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:577)
    at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:142)
    at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:301)
    at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:301)
    at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:192)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
    ... 52 more
4

0 回答 0