You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Yura.Tkachenko" <Yu...@muranosoft.com> on 2006/03/29 21:23:31 UTC
Request bean have been stored to session
Hi, All
I have a few doubts moments in the JSF request beans.
I used request JSF bean and also cluster based on JBoss4.0.3SP1 so all my
requests are always serialize session for server. But I always got exception
like this:
2006-03-29 19:10:58,258 INFO [STDOUT] java.io.NotSerializableException:
com.nsite.wsbuilder.ManageStep4
2006-03-29 19:10:58,258 INFO [STDOUT] at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
2006-03-29 19:10:58,258 INFO [STDOUT] at
java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1224)
2006-03-29 19:10:58,259 INFO [STDOUT] at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1050)
2006-03-29 19:10:58,259 INFO [STDOUT] at
java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1224)
2006-03-29 19:10:58,259 INFO [STDOUT] at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1050)
2006-03-29 19:10:58,259 INFO [STDOUT] at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
2006-03-29 19:10:58,259 INFO [STDOUT] at
java.util.ArrayList.writeObject(ArrayList.java:529)
2006-03-29 19:10:58,260 INFO [STDOUT] at
sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
So someone trys to pass request bean to session. I didn't use tomahawk's
component saveState and others special component to store view.
Could you please help me to investigate this issue, here is my configuration
for JSF:
<!-- configuration to optimize -->
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
<description>
State saving method: "client" or "server" (= default)
See JSF Specification 2.5.2
</description>
</context-param>
<context-param>
<param-name>org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION</param-name>
<param-value>20</param-value>
<description>
Only applicable if state saving method is "server" (=
default).
Defines the amount (default = 20) of the latest views are
stored in session.
</description>
</context-param>
<context-param>
<param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name>
<param-value>false</param-value>
<description>
Only applicable if state saving method is "server" (=
default).
If true (default) the state will be serialized to a byte
stream before it
is written to the session.
If false the state will not be serialized to a byte stream.
</description>
</context-param>
<context-param>
<param-name>org.apache.myfaces.COMPRESS_STATE_IN_SESSION</param-name>
<param-value>false</param-value>
<description>
Only applicable if state saving method is "server" (=default)
and if
org.apache.myfaces.SERIALIZE_STATE_IN_SESSION is true (=
default)
If true (default) the serialized state will be compressed
before it
is written to the session. If false the state will not be
compressed.
</description>
</context-param>
Thanks,
Yura Tkachenko
Murano Software Kharkov, Ukraine
mailto: <ma...@muranosoft.com>
Yura.Tkachenko@muranosoft.com
<http://www.muranosoft.com> http://www.muranosoft.com