users@glassfish.java.net

JSF Session Bean persistence

From: <glassfish_at_javadesktop.org>
Date: Wed, 10 Dec 2008 11:59:39 PST

Sun Java System Application Server Enterprise Edition 8.2 (build b38-p06)
MyFaces 1.1.5

JVM args on the nodes:
-server
-Xms3072m
-Xmx3072m
-XX:MaxPermSize=256m
-XX:MaxNewSize=154m
-XX:NewSize=154m
-XX:+UseConcMarksSweepGC
-XX:+UseParNewGC
-XX:CMSInitiatingOccupancyFraction=60
-XX:MaxTenuringThreshold=0
-XX:ParallelGCThreads=8
-XX:SurvivorRatio=128
-XX:ThreadStackSize=2048
-XX:PrintHeapAtGC
(omitting the rest since it's all default stuff)

When the server goes under load we start seeing the following in the server.log:
[Unloading class sun.reflect.GeneratedMethodAccessor38]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor123]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor106]
[Unloading class sun.reflect.GeneratedConstructorAccessor2]

... and then the application crash with a NullPointerException expecting a value from the SessionMap calling:

FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get( "someProperty" );

It looks like the SessionMap is getting re-initialized when it's coming back from the persistent storage. How could that be?
[Message sent by forum member 'nthomassin' (nthomassin)]

http://forums.java.net/jive/thread.jspa?messageID=321108