grouper-dev - RE: [grouper-dev] 2.1.2 hook writer not writing?
Subject: Grouper Developers Forum
List archive
- From: Jim Fox <>
- To: Chris Hyzer <>
- Cc: Grouper Dev <>
- Subject: RE: [grouper-dev] 2.1.2 hook writer not writing?
- Date: Wed, 12 Dec 2012 12:34:56 -0800 (PST)
Here's what I'm seeing.
In GrouperHooksUtils.schedulePostCommitHooksIfRegistered
There is the call to execute the hook
executeHook(method, hook, finalHooksBean, hooksContext, null,
asychronous);
followed by a call to commit
hibernateSession.commit(GrouperCommitType.COMMIT_NOW);
[ I put an exception catch around the commit. ]
The first statement executes fine, debug log shows:
GrouperHooksUtils.executeHook(498) - START: Hook
UWMembershipHooks.membershipPostCommitAddMember id: RKW6SJT1
HibernateSession.<init>(151) - Not using nested transactions, converting
transaction type to: READ_WRITE_NEW
GrouperHooksUtils.executeHook(504) - END (normal): Hook
UWMembershipHooks.membershipPostCommitAddMember id: RKW6SJT1 (9ms)
and the spy log shows:
1ms, statement: Method.java.invoke() line 601,
GrouperUtil.java.invokeMethod() line 3896,
GrouperHooksUtils.java.executeHook() line 502,
GrouperHooksUtils.java.access$100() line 56,
GrouperHooksUtils.java.callback() line 437,
GrouperHooksUtils.java.afterCompletion() line 427,
Group.java.internal_addMember() line 1115, Group.java.addMember() line
942, Group.java.addMember() line 861
insert into uw_activity (time, action, group_id, data, actors) values
(1355343520114, 'pm', 'a1681c3fcba3f54f759e6c9432004381', 'uwpds imf',
'fox|fox')
Then the commit statement fails:
GrouperHooksUtils$1$1$1.callback(444) - commit:
org.hibernate.TransactionException: Transaction not successfully started
So the commit fails and the next thing spy shows is a rollback.
If I do the commit manually, in the hook, with
HibernateSession.bySqlStatic().executeSql( "commit");
That works.
Jim
- [grouper-dev] 2.1.2 hook writer not writing?, Jim Fox, 12/11/2012
- RE: [grouper-dev] 2.1.2 hook writer not writing?, Chris Hyzer, 12/11/2012
- RE: [grouper-dev] 2.1.2 hook writer not writing?, Jim Fox, 12/11/2012
- Message not available
- RE: [grouper-dev] 2.1.2 hook writer not writing?, Jim Fox, 12/11/2012
- RE: [grouper-dev] 2.1.2 hook writer not writing?, Chris Hyzer, 12/11/2012
- Message not available
- RE: [grouper-dev] 2.1.2 hook writer not writing?, Chris Hyzer, 12/12/2012
- RE: [grouper-dev] 2.1.2 hook writer not writing?, Jim Fox, 12/12/2012
- RE: [grouper-dev] 2.1.2 hook writer not writing?, Chris Hyzer, 12/12/2012
- RE: [grouper-dev] 2.1.2 hook writer not writing?, Jim Fox, 12/12/2012
- RE: [grouper-dev] 2.1.2 hook writer not writing?, Jim Fox, 12/12/2012
- RE: [grouper-dev] 2.1.2 hook writer not writing?, Jim Fox, 12/13/2012
- Message not available
- RE: [grouper-dev] 2.1.2 hook writer not writing?, Jim Fox, 12/13/2012
- RE: [grouper-dev] 2.1.2 hook writer not writing?, Chris Hyzer, 12/15/2012
- Re: [grouper-dev] 2.1.2 hook writer not writing?, Jim Fox, 12/15/2012
- RE: [grouper-dev] 2.1.2 hook writer not writing?, Chris Hyzer, 12/16/2012
- RE: [grouper-dev] 2.1.2 hook writer not writing?, Chris Hyzer, 12/12/2012
- Message not available
- RE: [grouper-dev] 2.1.2 hook writer not writing?, Chris Hyzer, 12/11/2012
- RE: [grouper-dev] 2.1.2 hook writer not writing?, Jim Fox, 12/11/2012
- RE: [grouper-dev] 2.1.2 hook writer not writing?, Chris Hyzer, 12/11/2012
Archive powered by MHonArc 2.6.16.