grouper-users - Re: [grouper-users] mysterious error in loader job
Subject: Grouper Users - Open Discussion List
List archive
- From: Shilen Patel <>
- To: "Hyzer, Chris" <>, Andrew Morgan <>
- Cc: "" <>
- Subject: Re: [grouper-users] mysterious error in loader job
- Date: Mon, 28 Mar 2016 16:14:19 +0000
- Accept-language: en-US
- Authentication-results: isc.upenn.edu; dkim=none (message not signed) header.d=none;isc.upenn.edu; dmarc=none action=none header.from=duke.edu;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:23
FWIW, I don't think subject not found errors would result that way. There's another exception in the logs that I believe would though.
2016-03-22 10:25:13,017: [pool-1-thread-12] ERROR GrouperLoaderType.syncOneGroupMembership(2395) - - Problem with group: osu:ref:emp:eclass:UE net.sf.ehcache.ObjectExistsException: Cache edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupDAO.exists already exists, Exception in save: edu.internet2.middleware.grouper.Membership, edu.internet2.middleware.grouper.hibernate.ByObject@2b3bb4b6, Problem in HibernateSession: HibernateSession (2ffc0189): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (51cb478c), Exception in save: edu.internet2.middleware.grouper.Membership, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: ImmediateMembershipEntry, tx type: null, Problem in HibernateSession: HibernateSession (72bb2f59): new, notReadonly, READ_WRITE_NEW, notActiveTransaction, session (51cb478c) at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1046) at net.sf.ehcache.CacheManager.addCache(CacheManager.java:988) at net.sf.ehcache.CacheManager.addCache(CacheManager.java:966) at edu.internet2.middleware.grouper.cache.EhcacheController.getCache(EhcacheController.java:201) at edu.internet2.middleware.grouper.cache.GrouperCache.<init>(GrouperCache.java:106) at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupDAO.getExistsCache(Hib3GroupDAO.java:110) at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupDAO.exists(Hib3GroupDAO.java:180) at edu.internet2.middleware.grouper.validator.MembershipValidator._doesOwnerExist(MembershipValidator.java:101) at edu.internet2.middleware.grouper.validator.MembershipValidator.validate(MembershipValidator.java:65) at edu.internet2.middleware.grouper.validator.ImmediateMembershipValidator.validate(ImmediateMembershipValidator.java:107) at edu.internet2.middleware.grouper.Membership.onPreSave(Membership.java:1738) at edu.internet2.middleware.grouper.hibernate.ByObject.save(ByObject.java:201) at edu.internet2.middleware.grouper.hibernate.ByObjectStatic$7.callback(ByObjectStatic.java:481) at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:668) at edu.internet2.middleware.grouper.hibernate.ByObjectStatic.save(ByObjectStatic.java:468) at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MembershipDAO.save(Hib3MembershipDAO.java:2053) at edu.internet2.middleware.grouper.Membership.internal_addImmediateMembership(Membership.java:1246) at edu.internet2.middleware.grouper.privs.GrouperNonDbAccessAdapter$1.callback(GrouperNonDbAccessAdapter.java:307) at edu.internet2.middleware.grouper.GrouperSession.callbackGrouperSession(GrouperSession.java:974) at edu.internet2.middleware.grouper.privs.GrouperNonDbAccessAdapter.grantPriv(GrouperNonDbAccessAdapter.java:294) at edu.internet2.middleware.grouper.privs.AccessWrapper.grantPrivilege(AccessWrapper.java:168) at edu.internet2.middleware.grouper.privs.AccessResolverDecorator.grantPrivilege(AccessResolverDecorator.java:164) at edu.internet2.middleware.grouper.privs.AccessResolverDecorator.grantPrivilege(AccessResolverDecorator.java:164) at edu.internet2.middleware.grouper.privs.CachingAccessResolver.grantPrivilege(CachingAccessResolver.java:138) at edu.internet2.middleware.grouper.privs.AccessResolverDecorator.grantPrivilege(AccessResolverDecorator.java:164) at edu.internet2.middleware.grouper.privs.ValidatingAccessResolver.grantPrivilege(ValidatingAccessResolver.java:137) at edu.internet2.middleware.grouper.Group$12.callback(Group.java:4071) at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:668) at edu.internet2.middleware.grouper.Group.internal_grantPriv(Group.java:4059) at edu.internet2.middleware.grouper.Group.grantPriv(Group.java:4023) at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.syncOneGroupMembership(GrouperLoaderType.java:2096) at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.syncGroupLogicForOneGroup(GrouperLoaderType.java:1462) at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.access$200(GrouperLoaderType.java:108) at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$10.callLogic(GrouperLoaderType.java:1382) at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$10.callLogic(GrouperLoaderType.java:1378) at edu.internet2.middleware.grouper.util.GrouperCallable$1.callback(GrouperCallable.java:151) at edu.internet2.middleware.grouper.GrouperSession.callbackGrouperSession(GrouperSession.java:974) at edu.internet2.middleware.grouper.util.GrouperCallable.callLogicWithSessionIfExists(GrouperCallable.java:148) at edu.internet2.middleware.grouper.util.GrouperCallable.call(GrouperCallable.java:121) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Seems like two threads probably tried to create that cache at the same time.
/** * lazy load * @return cache */ private static GrouperCache<String, Boolean> getExistsCache() { if(existsCache==null) { existsCache=new GrouperCache<String, Boolean>("edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupDAO.exists", 1000, false, 30, 120, false); } return existsCache; } Probably a very rare error and one that would be okay the next time it ran, but a little bit of locking could avoid it. Seem reasonable?
Thanks!
- Shilen
On 3/24/16, 12:50 AM, "Hyzer, Chris" <> wrote:
|
- [grouper-users] mysterious error in loader job, Andrew Morgan, 03/22/2016
- RE: [grouper-users] mysterious error in loader job, Hyzer, Chris, 03/23/2016
- RE: [grouper-users] mysterious error in loader job, Andrew Morgan, 03/23/2016
- RE: [grouper-users] mysterious error in loader job, Hyzer, Chris, 03/24/2016
- Re: [grouper-users] mysterious error in loader job, Shilen Patel, 03/28/2016
- RE: [grouper-users] mysterious error in loader job, Hyzer, Chris, 03/24/2016
- RE: [grouper-users] mysterious error in loader job, Andrew Morgan, 03/23/2016
- RE: [grouper-users] mysterious error in loader job, Hyzer, Chris, 03/23/2016
Archive powered by MHonArc 2.6.16.