Skip to Content.
Sympa Menu

grouper-dev - [grouper-dev] Hibernate StaleObjectStateException

Subject: Grouper Developers Forum

List archive

[grouper-dev] Hibernate StaleObjectStateException


Chronological Thread 
  • From: "Klug, Lawrence" <>
  • To: Grouper Dev <>
  • Subject: [grouper-dev] Hibernate StaleObjectStateException
  • Date: Mon, 15 Aug 2011 10:05:23 -0700
  • Accept-language: en-US
  • Acceptlanguage: en-US

Hi,

 

We upgraded from v1.6 using MySQl to v2.0 using MS SQLServer.  After running the DDL Scripts with success, got an Hibernate StaleObjectStateException.  Setting  grouper.attribute.loader.autoconfigure to false in grouper.properties seems to resolve the issue.

 

Would someone comment on the grouper.attribute.loader.autoconfigure  and/or the Hibernate StaleObjectStateException?

 

Thanks,

 

Lawrence

 

 

org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [edu.internet2.middleware.grouper.attr.AttributeDef#efee21db0f9f420992f842c352bbfa58]

                at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1769)

                at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2412)

                at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2312)

                at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2612)

                at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:96)

                at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)

                at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)

                at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)

                at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)

                at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)

                at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)

                at edu.internet2.middleware.grouper.hibernate.ByObject.saveOrUpdate(ByObject.java:362)

                at edu.internet2.middleware.grouper.hibernate.ByObjectStatic$5.callback(ByObjectStatic.java:352)

                at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:500)

                at edu.internet2.middleware.grouper.hibernate.ByObjectStatic.saveOrUpdate(ByObjectStatic.java:339)

                at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3AttributeDefDAO.saveOrUpdate(Hib3AttributeDefDAO.java:131)

                at edu.internet2.middleware.grouper.attr.AttributeDef$1.callback(AttributeDef.java:402)

                at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:500)

                at edu.internet2.middleware.grouper.attr.AttributeDef.store(AttributeDef.java:382)

                at edu.internet2.middleware.grouper.misc.GrouperCheckConfig.checkAttributes(GrouperCheckConfig.java:1563)

                at edu.internet2.middleware.grouper.misc.GrouperCheckConfig.checkConfig(GrouperCheckConfig.java:419)

                at edu.internet2.middleware.grouper.misc.GrouperStartup.startup(GrouperStartup.java:96)

                at edu.internet2.middleware.grouper.ui.GrouperUiFilter.init(GrouperUiFilter.java:613)

                at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:287)

                at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)

                at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)

                at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4071)

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4725)

                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

                at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)

                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

                at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)

                at org.apache.catalina.core.StandardService.start(StandardService.java:525)

                at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)

                at org.apache.catalina.startup.Catalina.start(Catalina.java:595)

                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:597)

                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

 

Lawrence Klug

Grouper Integration

UCLA Middleware Services

Office: 310 825-2061

Cell: 818 667-2386

 

 




Archive powered by MHonArc 2.6.16.

Top of Page