Hibernate version: 3.2.0.cr2
Not sure if this is a JBoss question or a Hibernate question so I'll ask it here.
I am running JBoss 4.0.4.GA-Patch1 with Hibernate 3. I have a Stateful session bean which has an injected entitymanager with a persistent context.
Everything works as expected between calls to the bean until it is passivated. Once it is passivated, then activated, nothing works. Here is the logs of what is going on:
Passivate:
Code:
2006-08-07 11:46:42,852 DEBUG [org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager] Saving session state to: D:\jboss\jboss-4.0.4.GA.P1\server\default\tmp\sessions\ShoppingCartBean-eql4mna4-6\4sg3q-ynryv0-eql4m5hi-1-eql4od79-7.ser
2006-08-07 11:46:43,055 DEBUG [org.hibernate.impl.SessionFactoryImpl] serializing: 2c90839a0ce9b522010ce9b533550001
2006-08-07 11:46:43,071 DEBUG [org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager] Passivation complete; id=4sg3q-ynryv0-eql4m5hi-1-eql4od79-7
Activate:
Code:
2006-08-07 11:54:45,752 DEBUG [org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager] Attempting to activate; id=4sg3q-ynryv0-eql4m5hi-1-eql4od79-7
2006-08-07 11:54:45,752 DEBUG [org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager] Reading session state from: D:\jboss\jboss-4.0.4.GA.P1\server\default\tmp\sessions\ShoppingCartBean-eql4mna4-6\4sg3q-ynryv0-eql4m5hi-1-eql4od79-7.ser
2006-08-07 11:54:45,783 DEBUG [org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager] Removing passivated state file: D:\jboss\jboss-4.0.4.GA.P1\server\default\tmp\sessions\ShoppingCartBean-eql4mna4-6\4sg3q-ynryv0-eql4m5hi-1-eql4od79-7.ser
2006-08-07 11:54:45,861 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] lookup: uid=2c90839a0ce9b522010ce9b533550001
2006-08-07 11:54:45,861 WARN [org.hibernate.impl.SessionFactoryObjectFactory] Not found: 2c90839a0ce9b522010ce9b533550001
2006-08-07 11:54:45,861 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] {2c90839a0ce9b561010ce9b56a240000=org.hibernate.impl.SessionFactoryImpl@1893c7}
Then a stack trace:
Code:
... 57 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.serial.persister.RegularObjectPersister.readSlotWithMethod(RegularObjectPersister.java:103)
... 71 more
Caused by: java.io.InvalidObjectException: could not locate session factory by uuid [2c90839a0ce9b522010ce9b533550001] during session deserialization
at org.hibernate.impl.SessionFactoryImpl.deserialize(SessionFactoryImpl.java:1038)
at org.hibernate.impl.SessionImpl.readObject(SessionImpl.java:1866)
... 76 more
First I thought it was a JBoss problem, now I'm not sure. It looks like Hibernate is trying to find the session by the uuid that it serialized, but it is not found.
Am I doing something wrong? Is there a place I can look to see if the session is really there? Any ideas on why it's not finding it?
Thanks in advance!