Hello i tried 
bin/dspace import --add --eperson=dspace@localhost 
--collection=fc51b762-8a25-407e-bd9e-a1db4f3aca71 
--source=/home/ubuntu/Desktop/orders --zip bulksample.zip --mapfile=mapfile

but showing same error 

Destination collections:
Started: 1558678431419
Ended: 1558678434275
Elapsed time: 2 secs (2856 msecs)
Exception: Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.set(ArrayList.java:448)
at 
org.dspace.app.itemimport.ItemImportCLITool.main(ItemImportCLITool.java:344)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)

[image: Screenshot.png]


i have check log file also showing like this

2019-05-24 11:42:24,986 INFO  org.hibernate.tool.hbm2ddl.TableMetadata @ 
HHH000261: Table found: public.versionhistory
2019-05-24 11:42:24,987 INFO  org.hibernate.tool.hbm2ddl.TableMetadata @ 
HHH000037: Columns: [versionhistory_id]
2019-05-24 11:42:24,991 INFO  org.hibernate.tool.hbm2ddl.TableMetadata @ 
HHH000261: Table found: public.versionitem
2019-05-24 11:42:24,991 INFO  org.hibernate.tool.hbm2ddl.TableMetadata @ 
HHH000037: Columns: [version_summary, eperson_id, item_id, version_date, 
version_number, versionitem_id, versionhistory_id]
2019-05-24 11:42:24,996 INFO  org.hibernate.tool.hbm2ddl.TableMetadata @ 
HHH000261: Table found: public.webapp
2019-05-24 11:42:24,996 INFO  org.hibernate.tool.hbm2ddl.TableMetadata @ 
HHH000037: Columns: [webapp_id, appname, started, url, isui]
2019-05-24 11:42:25,001 INFO  org.hibernate.tool.hbm2ddl.TableMetadata @ 
HHH000261: Table found: public.workflowitem
2019-05-24 11:42:25,001 INFO  org.hibernate.tool.hbm2ddl.TableMetadata @ 
HHH000037: Columns: [collection_id, owner, workflow_id, published_before, 
item_id, multiple_titles, multiple_files, state]
2019-05-24 11:42:25,005 INFO  org.hibernate.tool.hbm2ddl.TableMetadata @ 
HHH000261: Table found: public.workspaceitem
2019-05-24 11:42:25,006 INFO  org.hibernate.tool.hbm2ddl.TableMetadata @ 
HHH000037: Columns: [collection_id, stage_reached, page_reached, 
published_before, item_id, multiple_titles, multiple_files, 
workspace_item_id]

  


On Wednesday, May 22, 2019 at 2:54:22 PM UTC+5:30, Ranjit Chavan wrote:
>
> Hi
> my dspce version is 6.0 but i am uploading batch import by following 
> command 
> i am getting error  
> root@ubcourt:/dspace# bin/dspace import --add --eperson=dspace@localhost 
> --collection=fc51b762-8a25-407e-bd9e-a1db4f3aca71 
> --source=/home/ubuntu/Desktop/orders/bulksample.zip 
> --mapfile=/home/Desktop/mapdir/mapfile
>
> my Error is like this please give me some solution.
>
> Destination collections:
> Started: 1556631079769
> Ended: 1556631081964
> Elapsed time: 2 secs (2195 msecs)
> Exception: Index: 0, Size: 0
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.rangeCheck(ArrayList.java:657)
> at java.util.ArrayList.set(ArrayList.java:448)
> at 
> org.dspace.app.itemimport.ItemImportCLITool.main(ItemImportCLITool.java:344)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at 
> org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
> at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
>

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-community/823dc2c0-c2ae-45ee-9a84-aeb248c70e4f%40googlegroups.com.

Reply via email to