grouper-users - [grouper-users] Re: xmlimport from 1.6.3 to 2.2.1
Subject: Grouper Users - Open Discussion List
List archive
- From: Mickael Guyot <>
- To: Chris Hyzer <>
- Cc:
- Subject: [grouper-users] Re: xmlimport from 1.6.3 to 2.2.1
- Date: Fri, 24 Apr 2015 09:23:41 +0200 (CEST)
grouper_v2_2_1_api_patch_6.date = 2015/04/01 10:09:09
# added by grouper-installer
grouper_v2_2_1_api_patch_6.state = applied
<contextId>f1ab0d3b82334cbd8b17fd681a2c5fbc</contextId>
<createTime>2012/09/21 10:08:31.454</createTime>
<creatorId>994ddd57144d40f194185e8654e5a433</creatorId>
<description>UNIVERSITE DE LORRAINE</description>
<displayExtension>UNIVERSITE LORRAINE</displayExtension>
<displayName>Groupes Administratifs:UNIVERSITE LORRAINE</displayName>
<extension>100</extension>
<hibernateVersionNumber>2</hibernateVersionNumber>
<lastMembershipChange>1367561206036</lastMembershipChange>
<modifierId>9b843c649f1a41cbbf23a40e79c2a195</modifierId>
<modifierTime>2013/05/03 08:06:46.043</modifierTime>
<name>admin:100</name>
<parentStem>df7d878e1cd84cb1bbfda5d9c3467688</parentStem>
<uuid>8330dbf8bacb47d0b5914c703111afe0</uuid>
</XmlExportStem>
edu.internet2.middleware.grouper.exception.StemNotFoundException: Can't find stem by uuid: 'df7d878e1cd84cb1bbfda5d9c3467688'
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3StemDAO.findByUuid(Hib3StemDAO.java:1851)
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3StemDAO.findByUuid(Hib3StemDAO.java:1024)
at edu.internet2.middleware.grouper.Stem.getParentStem(Stem.java:1119)
at edu.internet2.middleware.grouper.Stem.xmlSaveBusinessProperties(Stem.java:4430)
at edu.internet2.middleware.grouper.Stem.xmlSaveBusinessProperties(Stem.java:166)
at edu.internet2.middleware.grouper.xml.export.XmlExportUtils.syncImportable(XmlExportUtils.java:171)
at edu.internet2.middleware.grouper.xml.export.XmlExportStem$2.onEnd(XmlExportStem.java:473)
at org.dom4j.io.DispatchHandler.onEnd(DispatchHandler.java:202)
at org.dom4j.io.SAXContentHandler.endElement(SAXContentHandler.java:268)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.dom4j.io.SAXReader.read(SAXReader.java:465)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)
at edu.internet2.middleware.grouper.xml.importXml.XmlImportMain$3.callback(XmlImportMain.java:537)
at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:668)
at edu.internet2.middleware.grouper.xml.importXml.XmlImportMain.processXmlSecondPass(XmlImportMain.java:495)
at edu.internet2.middleware.grouper.xml.importXml.XmlImportMain.processXml(XmlImportMain.java:249)
at edu.internet2.middleware.grouper.xml.importXml.XmlImportMain.processXml(XmlImportMain.java:203)
at edu.internet2.middleware.grouper.xml.importXml.XmlImportGsh.main(XmlImportGsh.java:130)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at edu.internet2.middleware.grouper.app.gsh.GrouperShell.handleSpecialCase(GrouperShell.java:204)
at edu.internet2.middleware.grouper.app.gsh.GrouperShell.main(GrouperShell.java:144)
at edu.internet2.middleware.grouper.app.gsh.GrouperShellWrapper.main(GrouperShellWrapper.java:31)
It depends on when that was exactly J Can you make sure you have API patch 6?
https://spaces.internet2.edu/display/Grouper/v2.2+Release+Notes
If you run the installer and “patch” it will check for new patches. Or there is a properties file that lists the installed patches. If it doesn’t solve the problem, please send me more of the log file, I hope there is more stack there
Thanks,
Chris
From: Mickael Guyot [mailto:]
Sent: Thursday, April 23, 2015 10:21 AM
To: Chris Hyzer
Cc:
Subject: Re: xmlimport from 1.6.3 to 2.2.1
I applied all the patches the installer found when I installed grouper 2.2.1
----- Le 23 Avr 15, à 15:58, Chris Hyzer <> a écrit :
Do you have all the patches applied in 2.2.1? There was a patch to fix imports…
Thanks,
Chris
From: [] On Behalf Of Mickael Guyot
Sent: Thursday, April 23, 2015 9:31 AM
To:
Subject: [grouper-users] xmlimport from 1.6.3 to 2.2.1
Hello.
We currently use grouper 1.6.3, and I want to import the datas in a new grouper 2.2.1.
I used gsh.sh -xmlexport to make an xml file and tried to import it in grouper 2.2.2 with gsh.sh -xmlimport, but a got a crash at about 16% with this error :
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:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at edu.internet2.middleware.grouper.app.gsh.GrouperShell.handleSpecialCase(GrouperShell.java:204)
... 2 more
Caused by: java.lang.RuntimeException: Problem reading file: /home/grouper-test/data/export23042015.xml,
Problem in HibernateSession: HibernateSession (2aa96fd2): new, readonly, NONE, notActiveTransaction, session (null)
at edu.internet2.middleware.grouper.xml.importXml.XmlImportMain$3.callback(XmlImportMain.java:555)
at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:668)
at edu.internet2.middleware.grouper.xml.importXml.XmlImportMain.processXmlSecondPass(XmlImportMain.java:495)
at edu.internet2.middleware.grouper.xml.importXml.XmlImportMain.processXml(XmlImportMain.java:249)
at edu.internet2.middleware.grouper.xml.importXml.XmlImportMain.processXml(XmlImportMain.java:203)
at edu.internet2.middleware.grouper.xml.importXml.XmlImportGsh.main(XmlImportGsh.java:130)
... 7 more
Caused by: org.dom4j.DocumentException: Can't find stem by uuid: 'df7d878e1cd84cb1bbfda5d9c3467688' Nested exception: Can't find stem by uuid: 'df7d878e1cd84cb1bbfda5d9c3467688'
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)
at edu.internet2.middleware.grouper.xml.importXml.XmlImportMain$3.callback(XmlImportMain.java:537)
... 12 more
The grouper 2.2.1 is a fresh install, there is only the etc folder. We use PostgreSQL.
Can someone tell me if I did something wrong and how to import successfully from grouper 1.6 to grouper 2.2 ?
Regards
--
Mickaël Guyot
Direction du numérique - Sous direction des infrastructures
Université de Lorraine
Tel : 03 83 68 53 66
--
Mickaël Guyot
Direction du numérique - Sous direction des infrastructures
Université de Lorraine
Tel : 03 83 68 53 66
Direction du numérique - Sous direction des infrastructures
Université de Lorraine
Tel : 03 83 68 53 66
- [grouper-users] xmlimport from 1.6.3 to 2.2.1, Mickael Guyot, 04/23/2015
- [grouper-users] RE: xmlimport from 1.6.3 to 2.2.1, Chris Hyzer, 04/23/2015
- [grouper-users] Re: xmlimport from 1.6.3 to 2.2.1, Mickael Guyot, 04/23/2015
- [grouper-users] RE: xmlimport from 1.6.3 to 2.2.1, Chris Hyzer, 04/23/2015
- [grouper-users] Re: xmlimport from 1.6.3 to 2.2.1, Mickael Guyot, 04/24/2015
- [grouper-users] RE: xmlimport from 1.6.3 to 2.2.1, Chris Hyzer, 04/23/2015
- [grouper-users] Re: xmlimport from 1.6.3 to 2.2.1, Mickael Guyot, 04/23/2015
- [grouper-users] RE: xmlimport from 1.6.3 to 2.2.1, Chris Hyzer, 04/23/2015
Archive powered by MHonArc 2.6.16.