Forums de discussion

javax.faces.application.ViewExpiredException

thumbnail
Jörn Kolberg, modifié il y a 13 années.

javax.faces.application.ViewExpiredException

New Member Publications: 6 Date d'inscription: 26/05/11 Publications récentes
Hi there,
ths is a kind of follow up to post "NPE in BridgeImpl.java". Today I downloaded the Icefaces 2.0.0 BETA 1 and the brand new portletfaces bridge 2.0.0 ALPHA3 and deployed the
jsf2-portlet exampel once again.

This time came a little further - deployment was ok, when add theportlet to a page it is displayed on that page (besides the image behind the zip code label is not shown). The server log also says, that there is something wrong:

<22.07.2010 11:17 Uhr MESZ> <Error> <HTTP Session> <BEA-100028> <Could not deserialize session data.
java.lang.ClassNotFoundException: javax.faces.event.ValueChangeEvent
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:280)
...
>
11:17:13,069 INFO [PortalImpl:3489] Current URL /web/guest/code.icepush.jsf?a69634835 generates exception: null
11:17:13,069 WARN [PortalImpl:3495] com.liferay.portal.NoSuchLayoutException
com.liferay.portal.NoSuchLayoutException
at com.liferay.portal.service.impl.LayoutLocalServiceImpl.getFriendlyURLLayout(LayoutLocalServiceImpl.java:498)
...

The thing is taht the class javax.faces.event.ValueChangeEvent is definetely available, don't really know anything about that Layoutexception, haven't seen that before ...

Anyway, when I fill out out the form and press the submit button the page show an internal server error and the server log states:

11:22:12,415 WARN [PortalImpl:3495] org.portletfaces.bridge.BridgeException: javax.faces.FacesException: viewId:/xhtml/portletViewMode.xhtml - Ansicht /xhtml/portletViewMode.xhtml konnte nicht wiederhergestellt werden.
org.portletfaces.bridge.BridgeException: javax.faces.FacesException: viewId:/xhtml/portletViewMode.xhtml - Ansicht /xhtml/portletViewMode.xhtml konnte nicht wiederhergestellt werden.
at BridgeImpl.java.doFacesRequest(BridgeImpl.java:115)
at org.portletfaces.bridge.GenericFacesPortlet.processAction(GenericFacesPortlet.java:154)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:72)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:50)
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)


Does anyone have clue what's happening?


UPDATE:
The line that is causing the above described error is this one:

facesLifecycle.execute(facesContext);
thumbnail
Neil Griffin, modifié il y a 13 années.

RE: javax.faces.application.ViewExpiredException

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
Hi Jörn,

Thanks so much for trying the bridge in Weblogic server. We haven't done testing against that server yet.

The release notes of ICEfaces 2.0 BETA1 indicate that support for portlets is not working yet, instead, support will be available in BETA2. See: http://wiki.icefaces.org/display/ICE/ICEfaces+2.0.0+Beta+1+Release+Notes

Regarding this message:
11:17:13,069 INFO [PortalImpl:3489] Current URL /web/guest/code.icepush.jsf?a69634835 generates exception: null

This is evidence that we have not fully integrated the ICEPush product into ICEfaces 2.0 yet, so that it works in portlets. We're developing support for that now in BETA2, working very closely with ICEsoft engineers.

Thanks again,

Neil
thumbnail
Jörn Kolberg, modifié il y a 13 années.

RE: javax.faces.application.ViewExpiredException

New Member Publications: 6 Date d'inscription: 26/05/11 Publications récentes
Hi Neil,
thanks for your great reply - I've been doing some class loading and deploying tricks and finally could deploy the portlet-example and could also add it to a page without any errors in the log.

But when I press the submit button I get an error like this:

16:25:37,066 WARN [PortalImpl:3495] org.portletfaces.bridge.BridgeException: javax.faces.FacesException: viewId:/xhtml/portletViewMode.xhtml - Ansicht /xhtml/portletViewMode.xhtml konnte nicht wiederhergestellt werden.
org.portletfaces.bridge.BridgeException: javax.faces.FacesException: viewId:/xhtml/portletViewMode.xhtml - Ansicht /xhtml/portletViewMode.xhtml konnte nicht wiederhergestellt werden.
at BridgeImpl.java.doFacesRequest(BridgeImpl.java:114)
at org.portletfaces.bridge.GenericFacesPortlet.processAction(GenericFacesPortlet.java:154)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:72)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:50)
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)

Guess I have to be patient until Icefaces 2.0 BETA2?

Refards, Joern
thumbnail
Neil Griffin, modifié il y a 13 années.

RE: javax.faces.application.ViewExpiredException

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
If you want to use ICEfaces 2.0 with the bridge, then yes ICEfaces BETA2 will be required and also an updated version of the bridge. Also, we won't be testing the bridge Weblogic until September at the earliest, so if you would do some preliminary testing for us that would be a great community contribution.
thumbnail
Jörn Kolberg, modifié il y a 13 années.

RE: javax.faces.application.ViewExpiredException

New Member Publications: 6 Date d'inscription: 26/05/11 Publications récentes
OK - but good news: both examples run stable on Weblogic 10.3.3.0 with Liferay 5.3.8!
thumbnail
Neil Griffin, modifié il y a 10 années.

RE: javax.faces.application.ViewExpiredException

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
FYI, I reproduced the ViewExpiredException on WebLogic and documented a fix in FACES-1591.