ICEFaces 2.0 Beta1 causes IllegalStateException
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
ICEFaces 2.0 Beta1 causes IllegalStateException  XML
Forum Index -> Development Build Feedback
Author Message
gpatanel

Joined: 13/01/2010 00:00:00
Messages: 9
Offline


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
deryk.sinotte


Joined: 26/10/2004 00:00:00
Messages: 930
Online


Actually Beta1 requires Mojarra 2.0.3 so you should start by upgrading the jsf-*.jars under glassfish/modules.

Deryk Sinotte
Team Lead
ICEsoft Technologies, Inc.
gpatanel

Joined: 13/01/2010 00:00:00
Messages: 9
Offline


Tried with Mojarra 2.0.3, still same issue. Compilation works perfectly, it all deploys fine and gives the same exception. Downgrading the libraries to Alpha3 brings all back to normal.
judy.guglielmin

Joined: 20/02/2007 00:00:00
Messages: 1196
Offline


Did you clean your application server's files first (including temporary files?). QA has retested and there is no problem with B1 release on Glassfish v3 here. Make sure you are using the correct ant build target (or are you using maven?).
In the deployed war, no jsf jars should be present. Glassfish contains the jsf jars (did you check which version of jsf2.0 is present in your installation?).
you may have to update the version of jsf2 on your glassfish installation to jsf-2.0.3.FCS (you can find those libs in the distribution bundle of ICEfaces-2.0-Beta1 or in our maven/snapshots repository)
judy.guglielmin

Joined: 20/02/2007 00:00:00
Messages: 1196
Offline


sorry...the last reply was for another posting.
You probably should show the page markup for your NavigationToolbar to see which component is causing the problem (also backing bean).

since the exception is thrown trying to instantiate the bean:-

com.op.framework.navigation.NavigationToolbarItem

and the problem lies at restoring component:-
id j_idt7:j_idt144:j_idt149

it also might help if you put id's on your facelets view page to help see which component this is.
 
Forum Index -> Development Build Feedback
Go to:   
Powered by JForum 2.1.7ice © JForum Team