[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-2513) Abusive WARN logged during deserialization of replicated SessionFactory

Emmanuel Bernard (JIRA) noreply at atlassian.com
Thu Mar 22 18:44:09 EDT 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2513?page=all ]

Emmanuel Bernard updated HHH-2513:
----------------------------------

    Summary: Abusive WARN logged during deserialization of replicated SessionFactory  (was: WARN logged during deserialization of replicated SessionFactory)

> Abusive WARN logged during deserialization of replicated SessionFactory
> -----------------------------------------------------------------------
>
>          Key: HHH-2513
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2513
>      Project: Hibernate3
>         Type: Bug

>   Components: core
>     Versions: 3.2.1
>  Environment: 2 Clustered JBoss AS 4.2.0.CR1 servers
> Identically configured persistence unit deployed on both servers
> Session factories are named via hibernate.session_factory_name
> Replicated EJB3 SFSBs that have a @PersistenceContext(type=PersistenceContextType.EXTENDED) field
>     Reporter: Brian Stansberry
>     Priority: Minor
>      Fix For: 3.3, 3.2.3

>
>
> With above described environment I'm replicating an EntityManager as a field in an SFSB.
> When the EM is deserialized on the remote VM, the following logging occurs:
> 2007-03-22 16:44:04,468 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] lookup: uid=8a8b8e6b117b997a01117b9a5b7f0001
> 2007-03-22 16:44:04,468 WARN  [org.hibernate.impl.SessionFactoryObjectFactory] Not found: 8a8b8e6b117b997a01117b9a5b7f0001
> 2007-03-22 16:44:04,468 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] {8a8b8e6b117b99a101117b9a694b0001=org.hibernate.impl.SessionFactoryImpl at 1f08e98}
> 2007-03-22 16:44:04,468 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] lookup: name=tempdb
> 2007-03-22 16:44:04,484 DEBUG [org.hibernate.impl.SessionFactoryImpl] deserialized: 8a8b8e6b117b997a01117b9a5b7f0001
> The WARN is disconcerting, since in this case the deserialization works fine.
> I've gotten the SFSB replication logic tweaked so the deserialization only happens if the SFSB client fails over to the remote VM, so having a WARN isn't the end of the world (but not having it would be nice.)  If the WARN is necessary a more descriptive message would be good.
> This happens because SessionFactoryImpl.deserialize() calls SessionFactoryObjectFactory.getInstance(uuid) and then calls  SessionFactoryObjectFactory.getNamedInstance(name) if getInstance() returns null.  The getInstance() call is the one logging the WARN.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list