Madhu
Madhu

Reputation: 11

ClassCastException: <![CDATA[java.util.HashMap cannot be cast to [[Ljava.lang.Object;]]>

When I'm trying to click on the submit button, initially method is calling and executing but when I'm trying to click the same submit button for the second time I'm facing the below issue in response:

Below is the code:

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

Exception:

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

Upvotes: 1

Views: 514

Answers (0)

Related Questions