Skip to Content.
Sympa Menu

grouper-users - gsh subjectAdd fails?

Subject: Grouper Users - Open Discussion List

List archive

gsh subjectAdd fails?

Chronological Thread 
  • From: Martin van Es <>
  • To:
  • Subject: gsh subjectAdd fails?
  • Date: Fri, 30 Jan 2009 09:59:20 +0100


I managed to get my grouper up and running using a mysql5 back-end and am
getting up-to-steam pretty quickly now. Going through the
guide however I come accross the addSubject() call in gsh that fails in my

gsh 0% addSubject("mrvanes", "person", "Martin van Es")
// Error: unable to evaluate command: Sourced file: inline evaluation of:
``addSubject("mrvanes", "person", "Martin van Es");'' : Error invoking
compiled command: : Error in compiled command:
edu.internet2.middleware.grouper.internal.dao.GrouperDAOException: Problem in
HibernateSession: HibernateSession: isNew: true, isReadonly: true,
grouperTransactionType: READONLY_NEW,
Exception in uniqueResult: (class
edu.internet2.middleware.grouper.RegistrySubject), ByHqlStatic, query: 'from
RegistrySubject as rs where = :idand rs.typeString = :type ',
cacheable: false, cacheRegion: null, tx type: nullBind var[0]: 'Param (class
java.lang.String): 'id'->'mrvanes'Bind var[1]: 'Param (class
java.lang.String): 'type'->'person',

The error seems to indicate that the 'uniqueResult' raised an exception,
I read as: there's allready such a subject (not unique) but there's not, I'm
very sure!

I'm also pretty sure the database and java environment are setup correctly,
because adding a rootStem e.g. succeeds without problems:

gsh 2% addRootStem("foobar", "Foo Bar")
stem: name='foobar' displayName='Foo Bar' uuid='0c2a0269-77bf-48f2-

The UI is also fine and dandy...

Anybody any idea what's wrong?

Martin van Es

Archive powered by MHonArc 2.6.16.

Top of Page