grouper-users - [grouper-users] Grouper 2.1.3 import question
Subject: Grouper Users - Open Discussion List
List archive
- From: "Kevin O'Rourke" <>
- To:
- Subject: [grouper-users] Grouper 2.1.3 import question
- Date: Wed, 10 Apr 2013 12:09:05 -0500
- Authentication-results: sfpop-ironport01.merit.edu; dkim=neutral (message not signed) header.i=none
Any help would be appreciated .....
I'm trying to get a development instance of group 2.1.3 going. I've got it connecting to a data store and talking to our data source. I wanted to import a copy of data exported from an earlier grouper version. Before doing that, I tried the following sequence ... just to ensure that I understood the process correctly.
./gsh.sh -xmlexport -includeComments k1 (to export sample 'Bristol' database)
less k1 (looks OK, but then I don't know what to look for ... assuming its complete)
./gsh.sh -registry -drop -runscript (to clear existing registry)
./gsh.sh -xmlexport -includeComments k2 (didn't know what to expect, its missing most of the specifics from k1, so assumed OK)
./gsh.sh -xmlimport -recordReport k1 (process reported adding and updating a lot of records (> 1100).
./gsh.sh -xmlexport -includeComments k3
I expected that the last step would result in a file that was equivalent to 'k1'.
The export process now consistently fails with the following message:
Starting: 1,424 records in the DB to be exported (not exact, might be less)
Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at edu.internet2.middleware.grouper.app.gsh.GrouperShell.handleSpecialCase(GrouperShell.java:214)
at edu.internet2.middleware.grouper.app.gsh.GrouperShell.main(GrouperShell.java:144)
at edu.internet2.middleware.grouper.app.gsh.GrouperShellWrapper.main(GrouperShellWrapper.java:31)
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:601)
at edu.internet2.middleware.grouper.app.gsh.GrouperShell.handleSpecialCase(GrouperShell.java:204)
... 2 more
Caused by: edu.internet2.middleware.grouper.exception.GroupNotFoundException: Cant find group by uuid: a657bdf9e6d64a93a83ae8882b7b57b3,
Problem in HibernateSession: HibernateSession: isNew: true, isReadonly: true, grouperTransactionType: READONLY_NEW,
Problem in HibernateSession: HibernateSession: isNew: true, isReadonly: true, grouperTransactionType: READONLY_NEW
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupDAO.findByUuid(Hib3GroupDAO.java:1204)
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupDAO.findByUuid(Hib3GroupDAO.java:1178)
at edu.internet2.middleware.grouper.GroupFinder.findByUuid(GroupFinder.java:430)
at edu.internet2.middleware.grouper.GroupFinder.findByUuid(GroupFinder.java:411)
at edu.internet2.middleware.grouper.xml.export.XmlExportUtils.toStringGroup(XmlExportUtils.java:525)
at edu.internet2.middleware.grouper.xml.export.XmlExportMember$3$1.callback(XmlExportMember.java:184)
at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:571)
at edu.internet2.middleware.grouper.xml.export.XmlExportMember$3.callback(XmlExportMember.java:177)
at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:571)
at edu.internet2.middleware.grouper.xml.export.XmlExportMember.exportMembers(XmlExportMember.java:153)
at edu.internet2.middleware.grouper.xml.export.XmlExportMain.writeAllTables(XmlExportMain.java:302)
at edu.internet2.middleware.grouper.xml.export.XmlExportMain.writeAllTables(XmlExportMain.java:221)
at edu.internet2.middleware.grouper.xml.export.XmlExportGsh.main(XmlExportGsh.java:162)
... 7 more
Maybe there is some 'READONLY' setting but I haven't been able to locate one.
In 'k1', uuid: a657bdf9e6d64a93a83ae8882b7b57b3 seems to be associated with the grouperadmis group:
<XmlExportGroup><contextId>1fdd932efc7b43d2bfe7401d4ad956e0</contextId><createTime>2013/03/08 13:26:35.096</createTime><creatorId>47ab0c1cf45b48dbab8c14a17542db71</creatorId><description>group admins</description><displayExtension>grouperadmins</displayExtension><displayName>Grouper Administration:grouperadmins</displayName><extension>grouperadmins</extension><hibernateVersionNumber>1</hibernateVersionNumber><modifierId>47ab0c1cf45b48dbab8c14a17542db71</modifierId><modifierTime>2013/03/08 13:26:36.067</modifierTime><name>etc:grouperadmins</name><parentStem>51f79352e1164800924f088983b33673</parentStem><typeOfGroup>group</typeOfGroup><uuid>a657bdf9e6d64a93a83ae8882b7b57b3</uuid></XmlExportGroup>
But when I look at the group through the ui, it has a different uuid:
Name | grouperadmins | ||||
Path | Grouper Administration:grouperadmins | ||||
Description | group admins | ||||
ID | grouperadmins | ||||
ID Path | etc:grouperadmins | ||||
Alternate ID Path | |||||
UUID | 7e75c49fbadf4bd1b6e948e81eb2198e | ||||
Types |
|
- [grouper-users] Grouper 2.1.3 import question, Kevin O'Rourke, 04/10/2013
- RE: [grouper-users] Grouper 2.1.3 import question, Chris Hyzer, 04/11/2013
- Re: [grouper-users] Grouper 2.1.3 import question, Kevin O'Rourke, 04/12/2013
- RE: [grouper-users] Grouper 2.1.3 import question, Chris Hyzer, 04/11/2013
Archive powered by MHonArc 2.6.16.