Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Errors using gsh obliterateStem command

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Errors using gsh obliterateStem command


Chronological Thread 
  • From: Keith Hazelton <>
  • To:
  • Subject: Re: [grouper-users] Errors using gsh obliterateStem command
  • Date: Fri, 26 Oct 2012 07:25:34 -0500

Gagné,

Thank you, that was precisely the fix.         --Keith

----------
[root@arche grouper.apiBinary-2.1.2]# bin/gsh -runarg 'obliterateStem("attributeRegistry",false,false)'

Using GROUPER_HOME: /opt/grouper-2.1.2/grouper.apiBinary-2.1.2
Using GROUPER_CONF: /opt/grouper-2.1.2/grouper.apiBinary-2.1.2/conf
Using JAVA: /usr/lib/jvm/java-1.6.0-openjdk/bin/java
using MEMORY: 64m-750m
Grouper starting up: version: 2.1.2, build date: 2012/08/14 15:02:01, env: <no label configured>
grouper.properties read from: /opt/grouper-2.1.2/grouper.apiBinary-2.1.2/conf/grouper.properties
Grouper current directory is: /opt/grouper-2.1.2/grouper.apiBinary-2.1.2
log4j.properties read from:   /opt/grouper-2.1.2/grouper.apiBinary-2.1.2/conf/log4j.properties
Grouper is logging to file:   /opt/grouper-2.1.2/grouper.apiBinary-2.1.2/logs/grouper_error.log, at min level WARN for package: edu.internet2.middleware.grouper, based on log4j.properties
grouper.hibernate.properties: /opt/grouper-2.1.2/grouper.apiBinary-2.1.2/conf/grouper.hibernate.properties
grouper.hibernate.properties: grouper@jdbc:postgresql://localhost:5432/grouperdb
sources.xml read from:        /opt/grouper-2.1.2/grouper.apiBinary-2.1.2/conf/sources.xml
sources.xml groupersource id: g:gsa
sources.xml groupersource id: grouperEntities
sources.xml jdbc source id:   jdbc: GrouperJdbcConnectionProvider
Type help() for instructions
Running command(s):

obliterateStem("attributeRegistry",false,false)


Obliterating stem: attributeRegistry
Done deleting attributeDef: attributeRegistry:section
Done obliterating stem: attributeRegistry
true
[root@arche grouper.apiBinary-2.1.2]# 
----------

On Oct 26, 2012, at 07:13:51, Gagné Sébastien wrote:

There’s a second boolean parameter to obliterate stem, try :
 
bin/gsh -runarg 'obliterateStem("attributeRegistry",false,false)'
 
 
De :  [mailto:] De la part de Keith Hazelton
Envoyé : 25 octobre 2012 20:52
À : 
Objet : [grouper-users] Errors using gsh obliterateStem command
 
I have Grouper 2.1.2 running on a CentOS box.
 
I'm following the examples given at https://bugs.internet2.edu/jira/browse/GRP-684 to wipe out a stem and its subcontents.
 
The gsh obliterateStem command errors out:
----------
[root@arche bin]# ./gsh -
Using GROUPER_HOME: /opt/grouper-2.1.2/grouper.apiBinary-2.1.2/bin/..
Using GROUPER_CONF: /opt/grouper-2.1.2/grouper.apiBinary-2.1.2/bin/../conf
Using JAVA: /usr/lib/jvm/java-1.6.0-openjdk/bin/java
using MEMORY: 64m-750m
Grouper starting up: version: 2.1.2, build date: 2012/08/14 15:02:01, env: <no label configured>
grouper.properties read from: /opt/grouper-2.1.2/grouper.apiBinary-2.1.2/conf/grouper.properties
Grouper current directory is: /opt/grouper-2.1.2/grouper.apiBinary-2.1.2/bin
log4j.properties read from:   /opt/grouper-2.1.2/grouper.apiBinary-2.1.2/conf/log4j.properties
Grouper is logging to file:   /opt/grouper-2.1.2/grouper.apiBinary-2.1.2/bin/../logs/grouper_error.log, at min level WARN for package: edu.internet2.middleware.grouper, based on log4j.properties
grouper.hibernate.properties: /opt/grouper-2.1.2/grouper.apiBinary-2.1.2/conf/grouper.hibernate.properties
grouper.hibernate.properties: grouper@jdbc:postgresql://localhost:5432/grouperdb
sources.xml read from:        /opt/grouper-2.1.2/grouper.apiBinary-2.1.2/conf/sources.xml
sources.xml groupersource id: g:gsa
sources.xml groupersource id: grouperEntities
sources.xml jdbc source id:   jdbc: GrouperJdbcConnectionProvider
Type help() for instructions
grouperSession = GrouperSession.startRootSession();
edu.internet2.middleware.grouper.GrouperSession: 35364d0e80bd41de870ee15f4ae00599,'GrouperSystem','application'
obliterateStem("attributeRegistry", false);          
// Error: unable to evaluate command: Sourced file: inline evaluation of: ``obliterateStem("attributeRegistry", false);'' : Error invoking compiled command: : Error invoking compiled command: bsh.ReflectError: Static method invoke( bsh.Interpreter, bsh.CallStack, java.lang.String, boolean ) not found in class'edu.internet2.middleware.grouper.app.gsh.obliterateStem'
----------
 
     Any thoughts?   --Keith




Archive powered by MHonArc 2.6.16.

Top of Page