Skip to Content.
Sympa Menu

grouper-dev - [grouper-dev] 2.1.2 hook writer not writing?

Subject: Grouper Developers Forum

List archive

[grouper-dev] 2.1.2 hook writer not writing?


Chronological Thread 
  • From: Jim Fox <>
  • To: Grouper Dev <>
  • Subject: [grouper-dev] 2.1.2 hook writer not writing?
  • Date: Tue, 11 Dec 2012 10:55:15 -0800 (PST)




I'm working on an upgrade to grouper 2.1.2. I have some hooks that
do this operation:

int status = HibernateSession.bySqlStatic().executeSql(
"insert into uw_activity (time, action, group_id, data, actors) values (?, ?,
?, ?, ?)",
GrouperUtil.toList((Object)now.getTime(), (Object) action,
(Object) groupId, (Object) data, (Object) userIds));
log.debug("hook writer " + action + " status: " + status);
// try very simple insert as well
status = HibernateSession.bySqlStatic().executeSql("insert into xxx values
('abcd','efgh','z')");
log.debug("hook extra status: " + status);



On 1.6 this always wrote a record to the 'uw_activity' table. Now I never see
anything show up in 'uw_activity'.
The log shows the status return to be '1'.
Nothing in the 'xxx' table either. It also returns status=1


Grouper debug shows the hook running:

GrouperHooksUtils.executeHook(490) - START: Hook
UWMembershipHooks.membershipPostCommitAddMember id: RKVM6ID7
HibernateSession.<init>(151) - Not using nested transactions, converting
transaction type to: READ_WRITE_NEW
HibernateSession.<init>(151) - Not using nested transactions, converting
transaction type to: READ_WRITE_NEW
GrouperHooksUtils.executeHook(496) - END (normal): Hook
UWMembershipHooks.membershipPostCommitAddMember id: RKVM6ID7 (4ms)

Is there something else I need to do now to get the hooks to write
to the DB?

Jim







Archive powered by MHonArc 2.6.16.

Top of Page