Session Replication

  • From: <alev50@...>
  • To: issues@...
  • Subject: Session Replication
  • Date: Tue, 16 Jul 2013 17:41:03 +0000 (UTC)

Hello,

I am a Java EE developer working on a web app for GlassFish 3.1.2 Final
(JSF 2 + Spring 3 + JPA). I am facing a blocking clustering issue and
would like to get some help or hint to go further.

I have created a simple cluster with 2 instances. My web app is
deployed on the cluster with “Availibity” enabled and “distributable”
property in web.xml. My controllers are serializable.

Here is the stack I get repeatedly :

[#|2013-07-16T19:13:36.476+0200|FINER|glassfish3.1.2|javax.enterprise.s
ystem.container.web.org.glassfish.web.loader|_ThreadID=21;_ThreadName=T
hread-2;ClassName=org.glassfish.web.loader.WebappClassLoader;MethodName
=loadClass;|loadClass(com.transat.ga2010.service.TitreServiceImpl)|#]

[#|2013-07-16T19:13:36.476+0200|FINER|glassfish3.1.2|javax.enterprise.s
ystem.container.web.org.glassfish.web.loader|_ThreadID=21;_ThreadName=T
hread-2;ClassName=org.glassfish.web.loader.WebappClassLoader;MethodName
=loadClass;|  Returning class from cache|#]

[#|2013-07-16T19:13:36.476+0200|WARNING|glassfish3.1.2|javax.enterprise
.system.container.web.org.glassfish.web.ha.session.management|_ThreadID
=21;_ThreadName=Thread-2;|Exception occurred in getSession
java.io.StreamCorruptedException: invalid type code: 00
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1354)
        at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1969
)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)
        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:177
5)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1327)
        at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)
        at
org.apache.catalina.session.StandardSession.deserialize(StandardSession
.java:1144)
        at
org.apache.catalina.session.StoreBase.readSession(StoreBase.java:288)
        at
org.glassfish.web.ha.session.management.ReplicationStore.getSession(Rep
licationStore.java:533)
        at
org.glassfish.web.ha.session.management.ReplicationStore.getSession(Rep
licationStore.java:485)
        at
org.glassfish.web.ha.session.management.ReplicationStore.loadFromBackin
gStore(ReplicationStore.java:404)
        at
org.glassfish.web.ha.session.management.ReplicationStore.load(Replicati
onStore.java:387)
        at
org.apache.catalina.session.PersistentManagerBase.doSwapIn(PersistentMa
nagerBase.java:1052)
        at
org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentMana
gerBase.java:1010)
        at
org.glassfish.web.ha.session.management.ReplicationManagerBase.findSess
ion(ReplicationManagerBase.java:156)
        at
org.apache.catalina.connector.Request.isRequestedSessionIdValid(Request
.java:2686)
        at
org.apache.catalina.connector.Request.parseSessionCookiesId(Request.jav
a:3711)
        at
org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdap
ter.java:625)
        at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.jav
a:271)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
231)
        at
com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.cal
l(ContainerMapper.java:317)
        at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMa
pper.java:195)
        at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860
)
        at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
        at
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
        at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilte
r.java:229)
        at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProto
colChain.java:137)
        at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:
104)
        at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:
90)
        at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:7
9)
        at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTas
k.java:54)
        at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.ja
va:59)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
        at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPoo
l.java:532)
        at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.j
ava:513)
        at java.lang.Thread.run(Thread.java:662)
|#]

[#|2013-07-16T19:13:36.476+0200|FINE|glassfish3.1.2|javax.enterprise.sy
stem.container.web.org.glassfish.web.ha.session.management|_ThreadID=21
;_ThreadName=Thread-2;ClassName=org.glassfish.web.ha.session.management
.ReplicationManagerBase;MethodName=findSession;|in findSession:
version=1|#]

[#|2013-07-16T19:13:36.476+0200|FINE|glassfish3.1.2|javax.enterprise.sy
stem.container.web.org.glassfish.web.ha.session.management|_ThreadID=21
;_ThreadName=Thread-2;ClassName=org.glassfish.web.ha.session.management
.ReplicationManagerBase;MethodName=findSession;|Required version 1|#]

I imagine you have a lot of work with the new version of GlassFish, but
I wish you could have a look at it. Maybe the bug problem still exists
in the new version.


Session Replication

alev50 07/16/2013

Re: Session Replication

Fialli Joe 07/16/2013

Re: Session Replication

Anthony Levesque 07/17/2013

Re: Session Replication

Fialli Joe 07/17/2013

Re: Session Replication

Fialli Joe 07/17/2013

Re: Session Replication

Anthony Levesque 07/18/2013

Re: Session Replication

Fialli Joe 07/18/2013

Re: Session Replication

Anthony Levesque 07/19/2013
Terms of Use; Privacy Policy; Copyright ©2013-2015 (revision 20150226.965aeb8)
 
 
Close
loading
Please Confirm
Close