javax.faces.FacesException: Unexpected error restoring state for component with id navigationMenuForm:j_idt30:j_idt33. Cause: java.lang.IllegalStateException: java.lang.InstantiationException: com.genericos.PuntoMenu.

Icesoft | jmerino | 7 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    Problem with PanelSeries inside CollapsiblePanel

    Icesoft | 7 years ago | jmerino
    javax.faces.FacesException: Unexpected error restoring state for component with id navigationMenuForm:j_idt30:j_idt33. Cause: java.lang.IllegalStateException: java.lang.InstantiationException: com.genericos.PuntoMenu.
  2. 0

    Using: - latest version of Glassfish 3.0.1 ( Includes Mojarra 2.0.2 compatible to IceFaces 2 Beta 1 ). - Netbeans 6.9 - IceFaces 2 Beta1 plugin I have updated the plugin from an Alpha3 to Beta1 and got this issue, then I wipped out my NetBeans instlalation and reinstalled it, applying the new Beta1 plugin from scratch. Still same problem. The same application used to work perfectly on Alpha3. Deploying the app the initial page loads, but any action results in an IllegalStateException with the following stack trace: [#|2010-07-23T08:45:55.208-0500|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=25;_ThreadName=Thread-1;|javax.faces.FacesException: Unexpected err or restoring state for component with id j_idt7:j_idt144:j_idt149. Cause: java.lang.IllegalStateException: java.lang.InstantiationException: com.op.framework.navigation.NavigationToolbarItem. at com.sun.faces.application.view.StateManagementStrategyImpl$2.visit(StateManagementStrategyImpl.java:239) at com.sun.faces.component.visit.FullVisitContext.invokeVisitCallback(FullVisitContext.java:147) at com.icesoft.faces.component.panelseries.UISeries.visitTree(UISeries.java:830) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1457) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1457) at com.icesoft.faces.component.panelseries.UISeries.visitColumnsAndRows(UISeries.java:914) at com.icesoft.faces.component.panelseries.UISeries.visitTree(UISeries.java:848) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1457) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1457) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1457) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1457) at javax.faces.component.UIForm.visitTree(UIForm.java:333) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1457) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1457) at com.sun.faces.application.view.StateManagementStrategyImpl.restoreView(StateManagementStrategyImpl.java:223) at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:177) at com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:131) at com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:430) at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:143) at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:288) at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:199) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.IllegalStateException: java.lang.InstantiationException: com.op.framework.navigation.NavigationToolbarItem at javax.faces.component.StateHolderSaver.restore(StateHolderSaver.java:110) at javax.faces.component.UIComponentBase.restoreAttachedState(UIComponentBase.java:1582) at javax.faces.component.ComponentStateHelper.restoreState(ComponentStateHelper.java:290) at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1444) at com.icesoft.faces.component.panelseries.UISeries.restoreState(UISeries.java:644) at com.icesoft.faces.component.panelseries.PanelSeries.restoreState(PanelSeries.java:138) at com.sun.faces.application.view.StateManagementStrategyImpl$2.visit(StateManagementStrategyImpl.java:231) ... 48 more Caused by: java.lang.InstantiationException: com.op.framework.navigation.NavigationToolbarItem at java.lang.Class.newInstance0(Class.java:340) at java.lang.Class.newInstance(Class.java:308) at javax.faces.component.StateHolderSaver.restore(StateHolderSaver.java:107) ... 54 more

    ICEsoft JIRA Issue Tracker | 7 years ago | Guido Patanella
    java.lang.IllegalStateException: java.lang.InstantiationException: com.op.framework.navigation.NavigationToolbarItem.
  3. 0

    Using: - latest version of Glassfish 3.0.1 ( Includes Mojarra 2.0.2 compatible to IceFaces 2 Beta 1 ). - Netbeans 6.9 - IceFaces 2 Beta1 plugin I have updated the plugin from an Alpha3 to Beta1 and got this issue, then I wipped out my NetBeans instlalation and reinstalled it, applying the new Beta1 plugin from scratch. Still same problem. The same application used to work perfectly on Alpha3. Deploying the app the initial page loads, but any action results in an IllegalStateException with the following stack trace: [#|2010-07-23T08:45:55.208-0500|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=25;_ThreadName=Thread-1;|javax.faces.FacesException: Unexpected err or restoring state for component with id j_idt7:j_idt144:j_idt149. Cause: java.lang.IllegalStateException: java.lang.InstantiationException: com.op.framework.navigation.NavigationToolbarItem. at com.sun.faces.application.view.StateManagementStrategyImpl$2.visit(StateManagementStrategyImpl.java:239) at com.sun.faces.component.visit.FullVisitContext.invokeVisitCallback(FullVisitContext.java:147) at com.icesoft.faces.component.panelseries.UISeries.visitTree(UISeries.java:830) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1457) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1457) at com.icesoft.faces.component.panelseries.UISeries.visitColumnsAndRows(UISeries.java:914) at com.icesoft.faces.component.panelseries.UISeries.visitTree(UISeries.java:848) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1457) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1457) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1457) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1457) at javax.faces.component.UIForm.visitTree(UIForm.java:333) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1457) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1457) at com.sun.faces.application.view.StateManagementStrategyImpl.restoreView(StateManagementStrategyImpl.java:223) at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:177) at com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:131) at com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:430) at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:143) at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:288) at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:199) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.IllegalStateException: java.lang.InstantiationException: com.op.framework.navigation.NavigationToolbarItem at javax.faces.component.StateHolderSaver.restore(StateHolderSaver.java:110) at javax.faces.component.UIComponentBase.restoreAttachedState(UIComponentBase.java:1582) at javax.faces.component.ComponentStateHelper.restoreState(ComponentStateHelper.java:290) at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1444) at com.icesoft.faces.component.panelseries.UISeries.restoreState(UISeries.java:644) at com.icesoft.faces.component.panelseries.PanelSeries.restoreState(PanelSeries.java:138) at com.sun.faces.application.view.StateManagementStrategyImpl$2.visit(StateManagementStrategyImpl.java:231) ... 48 more Caused by: java.lang.InstantiationException: com.op.framework.navigation.NavigationToolbarItem at java.lang.Class.newInstance0(Class.java:340) at java.lang.Class.newInstance(Class.java:308) at javax.faces.component.StateHolderSaver.restore(StateHolderSaver.java:107) ... 54 more

    ICEsoft JIRA Issue Tracker | 7 years ago | Guido Patanella
    java.lang.IllegalStateException: java.lang.InstantiationException: com.op.framework.navigation.NavigationToolbarItem.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.InstantiationException: my.package.CustomActionListener with non-default constructor

    Stack Overflow | 2 years ago | programmer
    java.lang.IllegalStateException: java.lang.InstantiationException: my.package.CustomActionListener
  6. 0
    samebug tip
    This happens when you try to instantiate a class that can't be instantiated, either because the class object is abstract, an interface, an array class, a primitive type, void, or because the class has no nullary constructor.

  1. filpgame 8 times, last 2 months ago
  2. tzrlk 1 times, last 5 months ago
  3. lribeiro 2 times, last 7 months ago
  4. brunosatriani 40 times, last 9 months ago
  5. Diogo Jaym 2 times, last 10 months ago
7 more registered users
44 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.InstantiationException

    com.genericos.PuntoMenu

    at java.lang.Class.newInstance0()
  2. Java RT
    Class.newInstance
    1. java.lang.Class.newInstance0(Unknown Source)
    2. java.lang.Class.newInstance(Unknown Source)
    2 frames
  3. JavaEE 7
    UIComponentBase.restoreState
    1. javax.faces.component.StateHolderSaver.restore(StateHolderSaver.java:107)
    2. javax.faces.component.UIComponentBase.restoreAttachedState(UIComponentBase.java:1582)
    3. javax.faces.component.ComponentStateHelper.restoreState(ComponentStateHelper.java:290)
    4. javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1444)
    4 frames
  4. com.icesoft.faces
    PanelSeries.restoreState
    1. com.icesoft.faces.component.panelseries.UISeries.restoreState(UISeries.java:644)
    2. com.icesoft.faces.component.panelseries.PanelSeries.restoreState(PanelSeries.java:138)
    2 frames
  5. JSF
    FullVisitContext.invokeVisitCallback
    1. com.sun.faces.application.view.StateManagementStrategyImpl$2.visit(StateManagementStrategyImpl.java:231)
    2. com.sun.faces.component.visit.FullVisitContext.invokeVisitCallback(FullVisitContext.java:147)
    2 frames
  6. com.icesoft.faces
    UISeries.visitTree
    1. com.icesoft.faces.component.panelseries.UISeries.visitTree(UISeries.java:830)
    1 frame
  7. JavaEE 7
    UIComponent.visitTree
    1. javax.faces.component.UIComponent.visitTree(UIComponent.java:1457)
    1 frame
  8. com.icesoft.faces
    UISeries.visitTree
    1. com.icesoft.faces.component.panelseries.UISeries.visitColumnsAndRows(UISeries.java:914)
    2. com.icesoft.faces.component.panelseries.UISeries.visitTree(UISeries.java:848)
    2 frames
  9. JavaEE 7
    UIComponent.visitTree
    1. javax.faces.component.UIComponent.visitTree(UIComponent.java:1457)
    2. javax.faces.component.UIForm.visitTree(UIForm.java:333)
    3. javax.faces.component.UIComponent.visitTree(UIComponent.java:1457)
    4. javax.faces.component.UIComponent.visitTree(UIComponent.java:1457)
    5. javax.faces.component.UIComponent.visitTree(UIComponent.java:1457)
    6. javax.faces.component.UIComponent.visitTree(UIComponent.java:1457)
    6 frames
  10. JSF
    LifecycleImpl.execute
    1. com.sun.faces.application.view.StateManagementStrategyImpl.restoreView(StateManagementStrategyImpl.java:223)
    2. com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:177)
    3. com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:131)
    4. com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:430)
    5. com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:143)
    6. com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:199)
    7. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
    8. com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
    9. com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    9 frames
  11. JavaEE 7
    FacesServlet.service
    1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
    1 frame
  12. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    8 frames
  13. Grizzly HTTP
    JIoEndpoint$Worker.run
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
    2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    3 frames
  14. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame