grouper-users - [grouper-users] Errors on gsh -importxml run
Subject: Grouper Users - Open Discussion List
List archive
- From: Keith Hazelton <>
- To:
- Cc: pbIam <>
- Subject: [grouper-users] Errors on gsh -importxml run
- Date: Thu, 27 Sep 2012 15:58:14 -0500
- Priority: normal
I've had luck with earlier export/import cycles between two Grouper
instances, arche & persepolis.
This time the gsh -importexml run errored out. What I added in the Grouper
registry this time is some roles and a local entity. Not sure if that's the
problem, but here's the console log from persepolis. I will note that we've
been using uuids for "identifiers" for stems, groups, roles and local
entities and friendlier strings for their "names".
Anyone see anything obvious? Other info that would help? --Keith
----------
[root@persepolis
bin]# ./gsh -xmlimport /home/khazelton/bmboo-3.xml -recordReport
Using GROUPER_HOME: /opt/grouper-2.1.2/grouper.apiBinary-2.1.2/bin/..
Using GROUPER_CONF: /opt/grouper-2.1.2/grouper.apiBinary-2.1.2/bin/../conf
Using JAVA: /usr/lib/jvm/java-1.6.0-openjdk/bin/java
using MEMORY: 64m-750m
(note, might need to type in your response multiple times (Java stdin is
flaky))
(note, you can whitelist or blacklist db urls and users in the
grouper.properties)
Are you sure you want to import data from xml in db user 'grouper', db url
'jdbc:postgresql://localhost:5432/grouperdb'? (y|n):
y
Continuing...
Grouper starting up: version: 2.1.2, build date: 2012/08/14 15:02:01, env:
<no label configured>
grouper.properties read from:
/opt/grouper-2.1.2/grouper.apiBinary-2.1.2/conf/grouper.properties
Grouper current directory is: /opt/grouper-2.1.2/grouper.apiBinary-2.1.2/bin
log4j.properties read from:
/opt/grouper-2.1.2/grouper.apiBinary-2.1.2/conf/log4j.properties
Grouper logs are not using log4j: class
org.apache.commons.logging.impl.SLF4JLocationAwareLog
grouper.hibernate.properties:
/opt/grouper-2.1.2/grouper.apiBinary-2.1.2/conf/grouper.hibernate.properties
grouper.hibernate.properties:
grouper@jdbc:postgresql://localhost:5432/grouperdb
sources.xml read from:
/opt/grouper-2.1.2/grouper.apiBinary-2.1.2/conf/sources.xml
sources.xml groupersource id: g:gsa
sources.xml groupersource id: grouperEntities
sources.xml jdbc source id: jdbc: GrouperJdbcConnectionProvider
grouper import: reading document: /home/khazelton/bmboo-3.xml, version: 2.1.2
XML file contains 1,298 records
20:45:47: Beginning import: database contains 1,428 records
Wrote record report log to:
/opt/grouper-2.1.2/grouper.apiBinary-2.1.2/bin/grouperImportRecordReport_2012_09_27__20_45_47_044.txt
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:616)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShell.handleSpecialCase(GrouperShell.java:204)
... 2 more
Caused by: java.lang.RuntimeException: Problem reading file:
/home/khazelton/bmboo-3.xml,
Problem in HibernateSession: HibernateSession: isNew: true, isReadonly: true,
grouperTransactionType: NONE
at
edu.internet2.middleware.grouper.xml.importXml.XmlImportMain$3.callback(XmlImportMain.java:567)
at
edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:571)
at
edu.internet2.middleware.grouper.xml.importXml.XmlImportMain.processXmlSecondPass(XmlImportMain.java:504)
at
edu.internet2.middleware.grouper.xml.importXml.XmlImportMain.processXml(XmlImportMain.java:252)
at
edu.internet2.middleware.grouper.xml.importXml.XmlImportMain.processXml(XmlImportMain.java:206)
at
edu.internet2.middleware.grouper.xml.importXml.XmlImportGsh.main(XmlImportGsh.java:130)
... 7 more
Caused by: org.dom4j.DocumentException: Not expecting type of group: entity
Nested exception: Not expecting type of group: entity
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:549)
... 12 more
[root@persepolis
bin]# cat grouperImportRecordReport_2012_09_27__20_45_47_044.txt
Insert: Member: 332f237ed4b148998f3d07954c2cc907, g:gsa -
0868a7f3e27c4005b0d0d175ce255de1
Insert: Member: 4d436a70f7144e3283959ffece37aecf, g:gsa -
16370d1577fc41dcbc224783fccf8966
Insert: Member: a5b7ada5773d487e865c98f15d2ba15c, g:gsa -
32afab6a5c47409091f8db7033b7dbfb
Insert: Member: d040ab77862143de86b669104b110b9a, g:gsa -
4b41f38b20fc45c58dc748d2dfdb2f02
Insert: Member: 21838d6d71d84ba688b877cd6338a8ee, g:gsa -
515e7f3c48c84c3797d9c2e22d8b43f0
Insert: Member: dbec50068845478aadd3b7456002945b, g:gsa -
519e2a6bd5664626a0188d9b72043242
Insert: Member: 3f51f68850504e82a25c66856313d176, g:gsa -
55613802488a48e49d22a8b46e327edd
Insert: Member: 7009def78ab1421a8349d483f9cae8c5, g:gsa -
8dee9264eb8747128da234cfe34f1b94
Insert: Member: 837d696622e243b9a7b9eb80729e9e5d, g:gsa -
de0dc9ab80cb4942b0ecc5129c006cac
Insert: Member: 9797c9111b854c71895e3a688aecbc9a, g:gsa -
eccc89baad9540b4bbeaa3db42fa4e38
Insert: Member: 35d8e206bfe2464aa3f99d078f7704b5, g:gsa -
efa44b2b64eb447180a3f15992b347f4
Insert: Member: 9df2be78a9b3424da3dad8515ba6ca5b, g:gsa -
f37a9c427e1e44e4ada0a839a872cd2e
Insert: Member: 71d2b491e12e4091ad0506a55f4818dc, grouperEntities -
3a02749e83534aa4a15e5dfdfe92a81b
Insert: Stem: 42b780cdd1ca418297d64151d61850ba,
458930f0-0716-11e2-892e-0800200c9a66:41f062e2-156e-457e-8371-4131c60a6976:8684ebea-c388-4122-8bda-ed56a5bf852e
[root@persepolis
bin]#
----------
begin:vcard n:HAZELTON;KEITH;;; fn:KEITH D HAZELTON tel;work:608 262-0771 org:University of Wisconsin-Madison;DoIT adr:;;1210 W. Dayton St.;Madison;WI;53706;US email;work;internet: title:Sr. IT Architect version:2.1 end:vcard
- [grouper-users] Errors on gsh -importxml run, Keith Hazelton, 09/27/2012
- RE: [grouper-users] Errors on gsh -importxml run, Chris Hyzer, 09/28/2012
- Re: [grouper-users] Errors on gsh -importxml run, Keith Hazelton, 09/28/2012
- RE: [grouper-users] Errors on gsh -importxml run, Chris Hyzer, 09/28/2012
Archive powered by MHonArc 2.6.16.