Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-921

PersistenceContext replication fails if hibernate.session_factory_name is not configured

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • AS 4.2.0 GA
    • AS 4.2.0 GA
    • Clustering
    • None
    • Workaround Exists
    • Hide

      Give a name to your session factory using the hibernate.session_factory_name property, e.g.:

      <?xml version="1.0" encoding="UTF-8"?>
      <persistence>
      <persistence-unit name="tempdb">
      <jta-data-source>java:/DefaultDS</jta-data-source>
      <properties>
      <property name="hibernate.session_factory_name" value="tempdb"/>
      <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
      </properties>
      </persistence-unit>
      </persistence>

      Show
      Give a name to your session factory using the hibernate.session_factory_name property, e.g.: <?xml version="1.0" encoding="UTF-8"?> <persistence> <persistence-unit name="tempdb"> <jta-data-source>java:/DefaultDS</jta-data-source> <properties> <property name="hibernate.session_factory_name" value="tempdb"/> <property name="hibernate.hbm2ddl.auto" value="create-drop"/> </properties> </persistence-unit> </persistence>

      From the linked issue JBPAPP-90.

      Stack Trace:

      12:53:47,639 WARN [SessionFactoryObjectFactory] Not found: ff80808111703eb20111703eb3400000 12:53:47,639 ERROR [AbortableLRUAlgorithm] Eviction of /TodoDao/3j001-6el9q3-ezikx6zw-1-ezikzkh6-r failed java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5782) at org.jboss.cache.TreeCache.evict(TreeCache.java:3871) at org.jboss.cache.eviction.BaseEvictionPolicy.evict(BaseEvictionPolicy.java:34) at org.jboss.ejb3.cache.tree.AbortableLRUAlgorithm.evictCacheNode(AbortableLRUAlgorithm.java:64) at org.jboss.cache.eviction.LRUAlgorithm.evict(LRUAlgorithm.java:90) at org.jboss.cache.eviction.LRUAlgorithm.prune(LRUAlgorithm.java:121) at org.jboss.cache.eviction.BaseEvictionAlgorithm.process(BaseEvictionAlgorithm.java:98) at org.jboss.cache.eviction.EvictionTimerTask.run(EvictionTimerTask.java:80) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Caused by: java.lang.RuntimeException: java.io.IOException at org.jboss.ejb3.stateful.StatefulBeanContext.extractBeanAndInterceptors(StatefulBeanContext.java:810) at org.jboss.ejb3.stateful.StatefulBeanContext.getContains(StatefulBeanContext.java:105) at org.jboss.ejb3.stateful.StatefulBeanContext.getCanPassivate(StatefulBeanContext.java:329) at org.jboss.ejb3.cache.tree.StatefulTreeCache$ClusteredStatefulCacheListener.nodePassivate(StatefulTreeCache.java:490) at org.jboss.cache.TreeCache.notifyNodePassivate(TreeCache.java:5974) at org.jboss.cache.interceptors.PassivationInterceptor.invoke(PassivationInterceptor.java:64) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68) at org.jboss.cache.interceptors.CacheLoaderInterceptor.invoke(CacheLoaderInterceptor.java:212) at org.jboss.cache.interceptors.ActivationInterceptor.invoke(ActivationInterceptor.java:64) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68) at org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:32) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68) at org.jboss.cache.interceptors.ReplicationInterceptor.invoke(ReplicationInterceptor.java:39) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68) at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:365) at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:160) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68) at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:179) at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5776) ... 9 more Caused by: java.io.IOException at org.jboss.serial.persister.RegularObjectPersister.readSlotWithMethod(RegularObjectPersister.java:107) at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:269) at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241) at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412) at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82) at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:643) at org.jboss.serial.persister.ArrayPersister.readObjectArray(ArrayPersister.java:196)
      ait org.jboss.serial.persister.ArrayPersister.readData(ArrayPersister.java:172)

              rhn-engineering-cdewolf Carlo de Wolf
              bstansbe@redhat.com Brian Stansberry
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: