Skip to Content.
Sympa Menu

grouper-users - [grouper-users] gsh -xmlimport failing with "Error doing include/exclude on group"

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] gsh -xmlimport failing with "Error doing include/exclude on group"


Chronological Thread 
  • From: Dominique Petitpierre <>
  • To: "" <>
  • Subject: [grouper-users] gsh -xmlimport failing with "Error doing include/exclude on group"
  • Date: Wed, 13 Mar 2013 04:55:17 +0100
  • Authentication-results: sfpop-ironport01.merit.edu; dkim=neutral (message not signed) header.i=none
  • Organization: University of Geneva

Hello,

after exporting all the groups of a Grouper instance (1.6.3) with

gsh.sh -xmlexport -noprompt /var/tmp/all-grouper-test1.xml

the export file was then used to fill another, empty, Grouper instance (2.1.3) with

gsh.sh -xmlimport -recordReport -noprompt /var/tmp/all-grouper-test1.xml

but unfortunately it failed.

Here are the relevant error messages:
---------------
Caused by: org.dom4j.DocumentException: Error doing include/exclude on group: bd89a126c69447c28dbc3c628d695cc6,
Hook GroupTypeTupleIncludeExcludeHook.groupTypeTuplePostInsert id: ROHXS09B,
Exception in save: edu.internet2.middleware.grouper.GroupTypeTuple, edu.internet2.middleware.grouper.hibernate.ByObject@1293073,
Problem in HibernateSession: HibernateSession: isNew: true, isReadonly: false, grouperTransactionType: READ_WRITE_NEW,
Exception in save: edu.internet2.middleware.grouper.GroupTypeTuple, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: null, tx type: null Nested exception:
---------------

The first lines of the xml file are:

head -2 /var/tmp/all-grouper-test1.xml
<?xml version="1.0" ?>
<grouperExport version="1.6.3" folderRoot=":" members="all">

The last lines of the report file are:

tail -2 /var/tmp/grouperImportRecordReport_2013_03_12__23_48_35_249.txt
Insert: GroupTypeTuple: b66d3b35b1b54361960ee46e73d4e0c8,
Insert: GroupTypeTuple: 3405ed7b8fb84c5bb32197765fb2024c,

Which seem to correspond to the following lines in the
imported xml file /var/tmp/all-grouper-test1.xml:

grep -A2 b66d3b35b1b54361960ee46e73d4e0c8 /var/tmp/all-grouper-test1.xml

<XmlExportGroupTypeTuple><contextId>b1a2b7e565d246118d2ab75777734d52</contextId><groupId>bdb505b1d32f4cb3bde1a579ac086ffd</groupId><hibernateVersionNumber>0</hibernateVersionNumber><typeId>17a0b0b4d018465bbc0a253185078a7c</typeId><uuid>b66d3b35b1b54361960ee46e73d4e0c8</uuid></XmlExportGroupTypeTuple>
<XmlExportGroupTypeTuple><contextId>b8af022509f34fd8950361e837421bcb</contextId><groupId>bd89a126c69447c28dbc3c628d695cc6</groupId><hibernateVersionNumber>0</hibernateVersionNumber><typeId>17a0b0b4d018465bbc0a253185078a7c</typeId><uuid>3405ed7b8fb84c5bb32197765fb2024c</uuid></XmlExportGroupTypeTuple>
<XmlExportGroupTypeTuple><contextId>4496d0fc555e4eceaf69f4d8f6ff1f8e</contextId><groupId>bd89a126c69447c28dbc3c628d695cc6</groupId><hibernateVersionNumber>0</hibernateVersionNumber><typeId>6bd7ecb433924f6eb109c965580af516</typeId><uuid>1d4b1e972194444f82e8c0f9df1c7d19</uuid></XmlExportGroupTypeTuple>

Note that the groupId bd89a126c69447c28dbc3c628d695cc6 is occurring
twice. Also, this is the first occurrence of a XmlExportGroupTypeTuple
with typeId u6bd7ecb433924f6eb109c965580af516 (addIncludeExclude):

grep 6bd7ecb433924f6eb109c965580af516 /var/tmp/all-grouper-test1.xml | head -2

<XmlExportGroupType><assignable>T</assignable><contextId>7049554661c242f08df88149d1bce2af</contextId><createTime>2011/02/07 15:57:16.711</createTime><creatorId>7951386946bf4f8abc96dafb3d581322</creatorId><hibernateVersionNumber>0</hibernateVersionNumber><internal>F</internal><name>addIncludeExclude</name><uuid>6bd7ecb433924f6eb109c965580af516</uuid></XmlExportGroupType>
<XmlExportGroupTypeTuple><contextId>4496d0fc555e4eceaf69f4d8f6ff1f8e</contextId><groupId>bd89a126c69447c28dbc3c628d695cc6</groupId><hibernateVersionNumber>0</hibernateVersionNumber><typeId>6bd7ecb433924f6eb109c965580af516</typeId><uuid>1d4b1e972194444f82e8c0f9df1c7d19</uuid></XmlExportGroupTypeTuple>


- Why does xmlimport fail with this error?
- Is there a way to avoid it?

Thanks in advance for your help!

Best regards,
Dominique
--
Mr Dominique Petitpierre, user=Dominique.Petitpierre domain=unige.ch
IT Division, University of Geneva, Switzerland



Archive powered by MHonArc 2.6.16.

Top of Page