[ 
http://jira.dspace.org/jira/browse/DS-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10821#action_10821
 ] 

Tim Donohue commented on DS-385:
--------------------------------

The problem is actually in the DIMIngestionCrosswalk script...which isn't 
handling this case properly.  I've found a fix that I will apply to Trunk 
shortly.

> Packager script is unable to import the same METS + DIM package that was 
> exported
> ---------------------------------------------------------------------------------
>
>                 Key: DS-385
>                 URL: http://jira.dspace.org/jira/browse/DS-385
>             Project: DSpace 1.x
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: Any environment.
>            Reporter: Tim Donohue
>            Assignee: Tim Donohue
>            Priority: Minor
>             Fix For: 1.6.0
>
>
> Follow these steps:
> (1) Export an item as a METS package with DIM metadata by running the 
> command-line Packager as follows:
> dspace packager -d -e [username] -i [item-handle] -t METS -o dmd=dim 
> export.zip
> (2) Try and re-import that same package using the following Packager command:
> dspace packager -e [username] -c [collection-handle] -t METS -o dmd=dim 
> export.zip
> The second command will error out with the following message:
> org.jdom.IllegalAddException: The Content already has an existing parent 
> "xmlData"
>         at org.jdom.ContentList.add(ContentList.java:218)
>         at org.jdom.ContentList.add(ContentList.java:140)
>         at org.jdom.ContentList.addAll(ContentList.java:292)
>         at org.jdom.ContentList.addAll(ContentList.java:262)
>         at org.jdom.Element.addContent(Element.java:825)
>         at 
> org.dspace.content.crosswalk.DIMIngestionCrosswalk.ingest(DIMIngestionCrosswalk.java:95)
>         at 
> org.dspace.content.packager.METSManifest.crosswalkMdContent(METSManifest.java:669)
>         at 
> org.dspace.content.packager.METSManifest.crosswalkItem(METSManifest.java:798)
>         at 
> org.dspace.content.packager.DSpaceMETSIngester.chooseItemDmd(DSpaceMETSIngester.java:155)
>         at 
> org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:385)
>         at org.dspace.app.packager.Packager.main(Packager.java:272)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at 
> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:194)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.dspace.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to