grouper-users - [grouper-users] StaleObjectStateException thrown by loader jobs after patch
Subject: Grouper Users - Open Discussion List
List archive
- From: Scott Koranda <>
- To: grouper-users <>
- Subject: [grouper-users] StaleObjectStateException thrown by loader jobs after patch
- Date: Sat, 3 Feb 2018 15:50:59 -0600
- Ironport-phdr: 9a23:YWw0yhDaIzKnYeLLHDanUyQJP3N1i/DPJgcQr6AfoPdwSPT7ocbcNUDSrc9gkEXOFd2Cra4c0qyO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglUmTaxe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykCoJOT43/n/KhMJzg61UvA+uqBJkzo7RfI2YLuBzcr/HcN8EQ2dKQ8ZfVzZGAoO5d4YBEvYOPeFEr4nhulAAqBy+BRO2C+Pp1zBHnGL90Koh0+QiFgHGxhYvH9QTv3vOt9j1O6ISXvq0zKnM1znMc/RW2TLk5YXObxsvoumMUKpufcfQ1UUiFQbIjluTpIP+Iz+Y0+sAv3SH4+Z9UO+gl3IrpgB0rzWq2MshhIbEipoIxl3K9Ch12ps5KNy6RUJhb9OpEYFcuz+EO4Z0RM4pXntmtzwgyrIcvJ62ZCgKx4ojxx7Yc/GHdpKH4hPnVOqIIDd4g25pdKuwhhqs/0WtxffwVsaz0FZNoSpFlsfDumoR2BzU78iLUvp9/kG/1jaTzw3f9OBJLVw2mKfeJZ4swaU/moYWvEnMAiP6hFj6gaqKeUk4++Wl7uHqbqvoq5KTL4N0jxvxMqUqmsyxG+Q4NQ0OUnCA+eS/073j51f2QLNXgfIsiaTZv5XaKt4apq69GQNazoEj6xOnAze8zNsYhWUHLE5CeB+fgIjpIVbOIO3gDfihmVSgiSprx+vYMb37GZXANXzDkLb6fbZh8E5Q1hA/zdFZ55JIFL4BOvTzVVHttNDGFBM2LRG7w/u0QOl6g4wEXn+XD7XcLbjfq0TAsu01JPSUaZVQpS3wMeMN5vjygGU/lENHO6SlwM1ERmq/G6FdKEKFfTLPhc0IF2sD9l4lT+vwgVuOWBZcYn+zW+Q34TRtW9HuNpvKWo342O/J5yy8BJADPm0=
Hi,
I patched a development-tier deployment today and picked up a number of
API patches.
After patching all loader jobs are throwing errors like the one attached
when run using 'gsh.sh -loader'.
If I simply start gsh.sh and then run a loader job by doing something
like
group = GroupFinder.findByName(grouperSession, "stem:member_loader_job");
loaderRunOneJob(group);
I do not see these errors.
The error mentions hooks, which is surprising since this deployment does
not have any hooks defined.
Any ideas?
Thanks,
Scott K
2018-02-03 16:20:02,018: [DefaultQuartzScheduler_Worker-4] ERROR
GrouperLoaderJob.runJob(485) - - Error on job:
SQL_GROUP_LIST__mystem:loader:admin:administrator_loader_job__140d0606e0d04fb38903725f0edf05fb
edu.internet2.middleware.grouper.exception.GrouperStaleObjectStateException:
Problem in HibernateSession: HibernateSession (52a76f01): notNew,
notReadonly, READ_WRITE_NEW, activeTransaction, session (771f0735),
Hook
GrouperAttributeAssignValueRulesConfigHook.attributeAssignValuePostDelete id:
TNH5CIL1,
Problem in HibernateSession: HibernateSession (2a4ea3e5): notNew,
notReadonly, READ_WRITE_NEW, activeTransaction, session (771f0735),
Problem in HibernateSession: HibernateSession (34e5927f): new, notReadonly,
READ_WRITE_NEW, notActiveTransaction, session (771f0735)
at
edu.internet2.middleware.grouper.hibernate.HibernateSession._internal_hibernateSessionCatch(HibernateSession.java:581)
at
edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:710)
at
edu.internet2.middleware.grouper.hibernate.ByHqlStatic.uniqueResult(ByHqlStatic.java:340)
at
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3AttributeDefNameDAO.findByNameSecure(Hib3AttributeDefNameDAO.java:159)
at
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3AttributeDefNameDAO.findByNameSecure(Hib3AttributeDefNameDAO.java:182)
at
edu.internet2.middleware.grouper.attr.finder.AttributeDefNameFinder.findByName(AttributeDefNameFinder.java:346)
at
edu.internet2.middleware.grouper.rules.RuleUtils.ruleAttributeDefName(RuleUtils.java:340)
at
edu.internet2.middleware.grouper.hooks.examples.GrouperAttributeAssignValueRulesConfigHook$1.callback(GrouperAttributeAssignValueRulesConfigHook.java:118)
at
edu.internet2.middleware.grouper.GrouperSession.callbackGrouperSession(GrouperSession.java:974)
at
edu.internet2.middleware.grouper.hooks.examples.GrouperAttributeAssignValueRulesConfigHook.validateRule(GrouperAttributeAssignValueRulesConfigHook.java:108)
at
edu.internet2.middleware.grouper.hooks.examples.GrouperAttributeAssignValueRulesConfigHook.attributeAssignValuePostDelete(GrouperAttributeAssignValueRulesConfigHook.java:67)
at sun.reflect.GeneratedMethodAccessor572.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
edu.internet2.middleware.grouper.util.GrouperUtil.invokeMethod(GrouperUtil.java:4163)
at
edu.internet2.middleware.grouper.hooks.logic.GrouperHooksUtils.executeHook(GrouperHooksUtils.java:493)
at
edu.internet2.middleware.grouper.hooks.logic.GrouperHooksUtils.callHooksIfRegistered(GrouperHooksUtils.java:293)
at
edu.internet2.middleware.grouper.hooks.logic.GrouperHooksUtils.callHooksIfRegistered(GrouperHooksUtils.java:232)
at
edu.internet2.middleware.grouper.hooks.logic.GrouperHooksUtils.callHooksIfRegistered(GrouperHooksUtils.java:158)
at
edu.internet2.middleware.grouper.attr.value.AttributeAssignValue.onPostDelete(AttributeAssignValue.java:1117)
at
edu.internet2.middleware.grouper.hibernate.ByObject.delete(ByObject.java:125)
at
edu.internet2.middleware.grouper.hibernate.ByObjectStatic$10.callback(ByObjectStatic.java:675)
at
edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:700)
at
edu.internet2.middleware.grouper.hibernate.ByObjectStatic.delete(ByObjectStatic.java:662)
at
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3AttributeAssignValueDAO.delete(Hib3AttributeAssignValueDAO.java:190)
at
edu.internet2.middleware.grouper.attr.value.AttributeAssignValue$1.callback(AttributeAssignValue.java:501)
at
edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:700)
at
edu.internet2.middleware.grouper.attr.value.AttributeAssignValue.saveOrUpdate(AttributeAssignValue.java:466)
at
edu.internet2.middleware.grouper.attr.value.AttributeAssignValueDelegate.internal_assignValue(AttributeAssignValueDelegate.java:218)
at
edu.internet2.middleware.grouper.attr.value.AttributeAssignValueDelegate.assignValue(AttributeAssignValueDelegate.java:175)
at
edu.internet2.middleware.grouper.attr.value.AttributeAssignValueDelegate.assignValue(AttributeAssignValueDelegate.java:282)
at
edu.internet2.middleware.grouper.attr.value.AttributeValueDelegate.assignValue(AttributeValueDelegate.java:74)
at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.updateLoaderMetadataForGroupsNoLongerInLoader(GrouperLoaderType.java:1933)
at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.syncGroupList(GrouperLoaderType.java:1435)
at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$4.runJob(GrouperLoaderType.java:634)
at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.runJob(GrouperLoaderJob.java:465)
at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.execute(GrouperLoaderJob.java:345)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: org.hibernate.StaleObjectStateException: Row was updated or
deleted by another transaction (or unsaved-value mapping was incorrect) :
[edu.internet2.middleware.grouper.attr.value.AttributeAssignValue#2e7f454466f14357b4b0d3ca022e0745]
at
org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:2282)
at
org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3199)
at
org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3433)
at
org.hibernate.action.internal.EntityDeleteAction.execute(EntityDeleteAction.java:98)
at
org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:560)
at
org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:434)
at
org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:337)
at
org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:39)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1224)
at
edu.internet2.middleware.grouper.hibernate.HibUtils.evict(HibUtils.java:399)
at
edu.internet2.middleware.grouper.hibernate.HibUtils.evict(HibUtils.java:355)
at
edu.internet2.middleware.grouper.hibernate.ByHql.uniqueResult(ByHql.java:299)
at
edu.internet2.middleware.grouper.hibernate.ByHqlStatic$1.callback(ByHqlStatic.java:349)
at
edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:700)
... 37 more
- [grouper-users] StaleObjectStateException thrown by loader jobs after patch, Scott Koranda, 02/03/2018
- RE: [grouper-users] StaleObjectStateException thrown by loader jobs after patch, Hyzer, Chris, 02/03/2018
- RE: [grouper-users] StaleObjectStateException thrown by loader jobs after patch, Hyzer, Chris, 02/04/2018
- Re: [grouper-users] StaleObjectStateException thrown by loader jobs after patch, Scott Koranda, 02/05/2018
- Re: [grouper-users] StaleObjectStateException thrown by loader jobs after patch, Scott Koranda, 02/13/2018
- RE: [grouper-users] StaleObjectStateException thrown by loader jobs after patch, Hyzer, Chris, 02/14/2018
- Re: [grouper-users] StaleObjectStateException thrown by loader jobs after patch, Scott Koranda, 02/14/2018
- RE: [grouper-users] StaleObjectStateException thrown by loader jobs after patch, Hyzer, Chris, 02/14/2018
- Re: [grouper-users] StaleObjectStateException thrown by loader jobs after patch, Scott Koranda, 02/14/2018
- Re: [grouper-users] StaleObjectStateException thrown by loader jobs after patch, Scott Koranda, 02/15/2018
- RE: [grouper-users] StaleObjectStateException thrown by loader jobs after patch, Hyzer, Chris, 02/15/2018
- RE: [grouper-users] StaleObjectStateException thrown by loader jobs after patch, Hyzer, Chris, 02/14/2018
- Re: [grouper-users] StaleObjectStateException thrown by loader jobs after patch, Scott Koranda, 02/14/2018
- RE: [grouper-users] StaleObjectStateException thrown by loader jobs after patch, Hyzer, Chris, 02/14/2018
Archive powered by MHonArc 2.6.19.