Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Problems creating stem in grouper 2.0

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Problems creating stem in grouper 2.0


Chronological Thread 
  • From: Lynn Garrison <>
  • To: Chris Hyzer <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] Problems creating stem in grouper 2.0
  • Date: Fri, 23 Sep 2011 08:37:58 -0400

Chris,
I found the problem. When I merged the 1.6.3 grouper. properties file
in the version 2.0.0 is copied the setting for the
grouper.attribute.load.autoconfigure variable. In the 1.6.3 properties file,
grouper.attribute.loader.autoconfigure = false was the default and I moved
that to the 2.0.0 file. I noticed that in the grouper.example.properties
file for 2.0.0 the default has change to
grouper.attribute.loader.autoconfigure = true.
I changed the value to true, restarted gsh.sh, and the attributes
were autocreate. I was able to create a new stem.
Is this a new behavior for 2.0? I migrated my 1.6.3 data
successfully and don't remember seeing any warnings or error about
grouper.attribute.rootStem.


Lynn



On Sep 23, 2011, at 1:12 AM, Chris Hyzer wrote:

> Is there a grouper_attribute_def_name row with the name:
> 'iamTag:attribute:rules:rule'?
>
> Here's what I did, I get the API 2.0, created a db database (mysql), and
> user, and granted the user access to the DB, then configured
> grouper.hibernate.properties:
>
> hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
> hibernate.connection.driver_class = com.mysql.jdbc.Driver
> hibernate.connection.url = jdbc:mysql://localhost:3306/grouper_v2_0
> hibernate.connection.username = grouper_v2_0
> hibernate.connection.password = xxxxxxxx
>
> Initted the registry:
>
> C:\mchyzer\grouper\v2_0\grouper\bin>gsh -registry -runscript
>
> Run GSH:
>
> C:\mchyzer\grouper\v2_0\grouper\bin>gsh
>
> I see built in attributes created:
>
> ...
> Grouper note: auto-created attributeDefName:
> etc:attribute:attrExternalSubjectInvite:externalSubjectInviteEmail
> Grouper note: auto-created attributeDefName: etc:attribute:rules:rule
> Grouper note: auto-created attributeDefName:
> etc:attribute:rules:ruleActAsSubjectId
> ...
>
> Then I do the commands you did:
>
> gsh 0% grouperSession = GrouperSession.startRootSession();
> edu.internet2.middleware.grouper.GrouperSession:
> c20f7ff48df342b99f9ab0da0175c947,'GrouperSystem','application'
> gsh 1% stemTest = addRootStem("test", "test");
> stem: name='test' displayName='test' uuid='ff6dc7f1ec054cb3b5a7a9c5e087ecc4'
> gsh 2%
>
> So whats different from your setup than mine so I can reproduce? :)
>
> Thanks,
> Chris
>
>
> -----Original Message-----
> From:
>
>
> [mailto:]
> On Behalf Of Lynn Garrison
> Sent: Thursday, September 22, 2011 10:00 AM
> To:
>
> Subject: [grouper-users] Problems creating stem in grouper 2.0
>
> I get the following error trying to create a new stem in grouper 2.0
>
> gsh 0% grouperSession = GrouperSession.startRootSession();
> stemTest = addRootStem("test", "test");
> edu.internet2.middleware.grouper.GrouperSession:
> c45df589ae75444ead6d5ef459e956b2,'GrouperSystem','application'
> gsh 1% // Error: unable to evaluate command: Sourced file: inline
> evaluation of: ``stemTest = addRootStem("test", "test");'' : Error invoking
> compiled command: : Error in compiled command:
> edu.internet2.middleware.grouper.exception.AttributeDefNotFoundException:
> Cannot find (or not allowed to find) attribute def name with name:
> 'iamTag:attribute:rules:rule',
> Problem in HibernateSession: HibernateSession: isNew: true, isReadonly:
> false, grouperTransactionType: READ_WRITE_NEW
>
> Any help would be appreciated,
>
>
> Lynn
>
>





Archive powered by MHonArc 2.6.16.

Top of Page