myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Andraschko <zoi...@gmail.com>
Subject [Core] ClassCastExceptions on restore view
Date Fri, 05 Oct 2012 11:46:09 GMT
Hi,

sometimes under high load i get 2 ClassCastExceptions on #restoreView with
MyFaces 2.1.9:

java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to
java.lang.String
    at
org.apache.myfaces.renderkit.ServerSideStateCacheImpl$CounterKeyFactory.decode(ServerSideStateCacheImpl.java:1137)
    at
org.apache.myfaces.renderkit.ServerSideStateCacheImpl.getServerStateId(ServerSideStateCacheImpl.java:281)
    at
org.apache.myfaces.renderkit.ServerSideStateCacheImpl.restoreSerializedView(ServerSideStateCacheImpl.java:1054)
    at
org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getState(HtmlResponseStateManager.java:208)
    at
org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.restoreView(DefaultFaceletsStateManagementStrategy.java:207)
    at
org.apache.myfaces.application.StateManagerImpl.restoreView(StateManagerImpl.java:130)
    at
javax.faces.application.StateManagerWrapper.restoreView(StateManagerWrapper.java:86)
    ...

java.lang.ClassCastException: java.lang.String cannot be cast to
[Ljava.lang.Object;
    at
org.apache.myfaces.renderkit.ClientSideStateCacheImpl.restoreSerializedView(ClientSideStateCacheImpl.java:63)
    at
org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getState(HtmlResponseStateManager.java:208)
    at
org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.restoreView(DefaultFaceletsStateManagementStrategy.java:207)
    at
org.apache.myfaces.application.StateManagerImpl.restoreView(StateManagerImpl.java:130)
    ...

This exceptions occured only 4 times for ~1500 requests under high load.

Any idea?

Best regards,
Thomas

Mime
View raw message