Skip to Content.
Sympa Menu

grouper-users - debugging with new grouper.jar and ddl errors

Subject: Grouper Users - Open Discussion List

List archive

debugging with new grouper.jar and ddl errors


Chronological Thread 
  • From: Scott Koranda <>
  • To: Grouper Users Mailing List <>
  • Subject: debugging with new grouper.jar and ddl errors
  • Date: Sun, 19 Apr 2009 14:27:55 -0500

Hi,

I have a testbed running the Grouper API built from the
GROUPER_1_4_BRANCH. I am having some problems with ldappc and
wanted to try to debug them.

My strategy was to checkout a new version of the CVS
repository for the GROUPER_1_4_BRANCH, make a slight
modification to the code and build a new jar. Then put the new
jar into place.

I cannot, however, create a new jar and put it into place even
if I do not make any modifications to the code.

Here in detail is what I am doing:

-bash-3.2$ cvs
-d:pserver::/home/cvs/i2mi
export -r GROUPER_1_4_BRANCH grouper

<snip long co details>

-bash-3.2$ cd grouper
-bash-3.2$ ant dist

<snip long build log>

BUILD SUCCESSFUL
Total time: 18 seconds

-bash-3.2$ cp dist/lib/grouper.jar
/opt/grouper/grouper-api-1_4_BRANCH/grouper/dist/lib/grouper.jar
-bash-3.2$ cd /opt/grouper/grouper-api-1_4_BRANCH/grouper
-bash-3.2$ ./bin/gsh.sh -ldappc -subject GrouperSystem -groups -memberships
-configManager /opt/grouper/ldappc/grouper/conf/ldappc.xml
Using GROUPER_HOME: /opt/grouper/grouper-api-1_4_BRANCH/grouper
Using GROUPER_CONF: /opt/grouper/grouper-api-1_4_BRANCH/grouper/conf
Using JAVA: java
using MEMORY: 64m-512m
Grouper starting up: version: 1.4.2, build date: 2009/04/19 14:15:03, env:
production
grouper.properties read from:
/opt/grouper/grouper-api-1_4_BRANCH/grouper/conf/grouper.properties
Grouper current directory is: /opt/grouper/grouper-api-1_4_BRANCH/grouper
log4j.properties read from:
/opt/grouper/grouper-api-1_4_BRANCH/grouper/conf/log4j.properties
Grouper is logging to file:
/opt/grouper/grouper-api-1_4_BRANCH/grouper/logs/grouper_error.log, at min
level WARN for package: edu.internet2.middleware.grouper, based on
log4j.properties
grouper.hibernate.properties:
/opt/grouper/grouper-api-1_4_BRANCH/grouper/conf/grouper.hibernate.properties
grouper.hibernate.properties:
grouper@jdbc:mysql://oregano.phys.uwm.edu:3306/grouper?useSSL=true
sources.xml read from:
/opt/grouper/grouper-api-1_4_BRANCH/grouper/conf/sources.xml
sources.xml groupersource id: g:gsa
sources.xml jndi source id: ligo:
cn=admin,dc=ligo,dc=org@ldaps://oregano.phys.uwm.edu
Grouper ddl object type 'Grouper' has dbVersion: 0 and java version: 13
Grouper ddl object type 'Subject' has dbVersion: 0 and java version: 1
Grouper database schema DDL requires updates
(should run script manually and carefully, in sections, verify data before
drop statements, backup/export important data before starting, follow change
log on confluence, dont run exact same script in multiple envs - generate a
new one for each env),
script file is:
/opt/grouper/grouper-api-1_4_BRANCH/grouper/ddlScripts/grouperDdl_20090419_14_25_32_076.sql
Couldnt startup grouper: Database schema ddl is not up to date, or has
issues, check logs and config ddl in grouper.properties and run: gsh
-registry -check,
Problem in HibernateSession: null,
Exception in uniqueResult: (class edu.internet2.middleware.grouper.Member),
ByHqlStatic, query: 'from Member as m where m.subjectIdDb = :sid
and m.subjectSourceIdDb = :source and m.subjectTypeId = :type',
cacheable: true, cacheRegion:
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MemberDAO.FindBySubject,
tx type: null, tx type: nullBind var[0]: 'Param (class java.lang.String):
'sid'->'GrouperSystem', Bind var[1]: 'Param (class java.lang.String):
'type'->'application'Bind var[2]: 'Param (class java.lang.String):
'source'->'g:isa',
java.lang.RuntimeException: Database schema ddl is not up to date, or has
issues, check logs and config ddl in grouper.properties and run: gsh
-registry -check,
Problem in HibernateSession: null,
Exception in uniqueResult: (class edu.internet2.middleware.grouper.Member),
ByHqlStatic, query: 'from Member as m where m.subjectIdDb = :sid
and m.subjectSourceIdDb = :source and m.subjectTypeId = :type',
cacheable: true, cacheRegion:
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MemberDAO.FindBySubject,
tx type: null, tx type: nullBind var[0]: 'Param (class java.lang.String):
'sid'->'GrouperSystem', Bind var[1]: 'Param (class java.lang.String):
'type'->'application'Bind var[2]: 'Param (class java.lang.String):
'source'->'g:isa',
at
edu.internet2.middleware.grouper.hibernate.HibernateSession.<init>(HibernateSession.java:67)
at
edu.internet2.middleware.grouper.hibernate.HibernateSession._internal_hibernateSession(HibernateSession.java:254)
at
edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:383)
at
edu.internet2.middleware.grouper.hibernate.ByHqlStatic.uniqueResult(ByHqlStatic.java:295)
at
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MemberDAO.findBySubject(Hib3MemberDAO.java:141)
at
edu.internet2.middleware.grouper.MemberFinder.internal_findOrCreateBySubject(MemberFinder.java:225)
at
edu.internet2.middleware.grouper.MemberFinder.internal_findBySubject(MemberFinder.java:198)
at
edu.internet2.middleware.grouper.GrouperSession.start(GrouperSession.java:272)
at
edu.internet2.middleware.grouper.GrouperSession.startRootSession(GrouperSession.java:222)
at
edu.internet2.middleware.grouper.GrouperSession.startRootSession(GrouperSession.java:240)
at
edu.internet2.middleware.grouper.misc.GrouperCheckConfig.checkGroups(GrouperCheckConfig.java:439)
at
edu.internet2.middleware.grouper.misc.GrouperCheckConfig.checkConfig(GrouperCheckConfig.java:410)
at
edu.internet2.middleware.grouper.misc.GrouperStartup.startup(GrouperStartup.java:82)
at
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO.<clinit>(Hib3DAO.java:64)
at
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAOFactory.getGroup(Hib3DAOFactory.java:56)
at
edu.internet2.middleware.grouper.GrouperSourceAdapter.getSubject(GrouperSourceAdapter.java:121)
at
edu.internet2.middleware.grouper.subj.SourcesXmlResolver.find(SourcesXmlResolver.java:91)
at
edu.internet2.middleware.grouper.subj.CachingResolver.find(CachingResolver.java:74)
at
edu.internet2.middleware.grouper.subj.ValidatingResolver.find(ValidatingResolver.java:67)
at
edu.internet2.middleware.grouper.SubjectFinder.findById(SubjectFinder.java:100)
at
edu.internet2.middleware.ldappc.GrouperSubjectRetriever.findSubjectById(GrouperSubjectRetriever.java:50)
at
edu.internet2.middleware.ldappc.GrouperSessionControl.startSession(GrouperSessionControl.java:75)
at
edu.internet2.middleware.ldappc.GrouperProvisioner.provision(GrouperProvisioner.java:155)
at
edu.internet2.middleware.ldappc.LdappcGrouperProvisioner.provisionGroups(LdappcGrouperProvisioner.java:119)
at
edu.internet2.middleware.ldappc.LdappcProvisionControl.run(LdappcProvisionControl.java:96)
at edu.internet2.middleware.ldappc.Ldappc.main(Ldappc.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShell.handleSpecialCase(GrouperShell.java:167)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShell.main(GrouperShell.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.dawidweiss.invoker.Invoker.loader(Invoker.java:167)
at com.dawidweiss.invoker.Invoker.main(Invoker.java:303)
[com.dawidweiss.invoker.Invoker]
edu.internet2.middleware.grouper.app.gsh.GrouperShell has thrown an exception.
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at
edu.internet2.middleware.grouper.app.gsh.GrouperShell.handleSpecialCase(GrouperShell.java:172)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShell.main(GrouperShell.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.dawidweiss.invoker.Invoker.loader(Invoker.java:167)
at com.dawidweiss.invoker.Invoker.main(Invoker.java:303)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShell.handleSpecialCase(GrouperShell.java:167)
... 7 more
Caused by: java.lang.ExceptionInInitializerError
at
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO.<clinit>(Hib3DAO.java:69)
at
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAOFactory.getGroup(Hib3DAOFactory.java:56)
at
edu.internet2.middleware.grouper.GrouperSourceAdapter.getSubject(GrouperSourceAdapter.java:121)
at
edu.internet2.middleware.grouper.subj.SourcesXmlResolver.find(SourcesXmlResolver.java:91)
at
edu.internet2.middleware.grouper.subj.CachingResolver.find(CachingResolver.java:74)
at
edu.internet2.middleware.grouper.subj.ValidatingResolver.find(ValidatingResolver.java:67)
at
edu.internet2.middleware.grouper.SubjectFinder.findById(SubjectFinder.java:100)
at
edu.internet2.middleware.ldappc.GrouperSubjectRetriever.findSubjectById(GrouperSubjectRetriever.java:50)
at
edu.internet2.middleware.ldappc.GrouperSessionControl.startSession(GrouperSessionControl.java:75)
at
edu.internet2.middleware.ldappc.GrouperProvisioner.provision(GrouperProvisioner.java:155)
at
edu.internet2.middleware.ldappc.LdappcGrouperProvisioner.provisionGroups(LdappcGrouperProvisioner.java:119)
at
edu.internet2.middleware.ldappc.LdappcProvisionControl.run(LdappcProvisionControl.java:96)
at edu.internet2.middleware.ldappc.Ldappc.main(Ldappc.java:105)
... 12 more
Caused by: java.lang.RuntimeException: Database schema ddl is not up to date,
or has issues, check logs and config ddl in grouper.properties and run: gsh
-registry -check,
Problem in HibernateSession: null,
Exception in uniqueResult: (class edu.internet2.middleware.grouper.Member),
ByHqlStatic, query: 'from Member as m where m.subjectIdDb = :sid
and m.subjectSourceIdDb = :source and m.subjectTypeId = :type',
cacheable: true, cacheRegion:
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MemberDAO.FindBySubject,
tx type: null, tx type: nullBind var[0]: 'Param (class java.lang.String):
'sid'->'GrouperSystem', Bind var[1]: 'Param (class java.lang.String):
'type'->'application'Bind var[2]: 'Param (class java.lang.String):
'source'->'g:isa',
at
edu.internet2.middleware.grouper.hibernate.HibernateSession.<init>(HibernateSession.java:67)
at
edu.internet2.middleware.grouper.hibernate.HibernateSession._internal_hibernateSession(HibernateSession.java:254)
at
edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:383)
at
edu.internet2.middleware.grouper.hibernate.ByHqlStatic.uniqueResult(ByHqlStatic.java:295)
at
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MemberDAO.findBySubject(Hib3MemberDAO.java:141)
at
edu.internet2.middleware.grouper.MemberFinder.internal_findOrCreateBySubject(MemberFinder.java:225)
at
edu.internet2.middleware.grouper.MemberFinder.internal_findBySubject(MemberFinder.java:198)
at
edu.internet2.middleware.grouper.GrouperSession.start(GrouperSession.java:272)
at
edu.internet2.middleware.grouper.GrouperSession.startRootSession(GrouperSession.java:222)
at
edu.internet2.middleware.grouper.GrouperSession.startRootSession(GrouperSession.java:240)
at
edu.internet2.middleware.grouper.misc.GrouperCheckConfig.checkGroups(GrouperCheckConfig.java:439)
at
edu.internet2.middleware.grouper.misc.GrouperCheckConfig.checkConfig(GrouperCheckConfig.java:410)
at
edu.internet2.middleware.grouper.misc.GrouperStartup.startup(GrouperStartup.java:82)
at
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO.<clinit>(Hib3DAO.java:64)
... 24 more

If I move the new jar out of the way and put the "old" jar
back into place then gsh starts up without problems.

How can I prevent or workaround the ddl errors when the new
jar is put into place?

Thanks,

Scott



Archive powered by MHonArc 2.6.16.

Top of Page