Hi Helix,
Here are the results:
[root@vmdspace bin]# ./dspace metadata-export -f export.csv -i 10036/26
Exporting community 'University of Exeter XXXXXXXXXXXX' (10036/26)
Exception: null
java.lang.NullPointerException
at org.dspace.app.bulkedit.MetadataExport.main(MetadataExport.java:260)
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 org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
[root@vmdspace bin]#
For Info, this doesn't happen on all collections
Cheers
Kevin Evans
Systems Developer,
Research & Collaborative Systems,
Enterprise Applications,
Room 911, 9th Floor, Laver Building,
University of Exeter,
Exeter,
Devon,
EX4 4QE
01392 725573
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of helix84
Sent: 02 August 2013 10:13
To: Evans, Kevin
Cc: [email protected]
Subject: Re: [Dspace-tech] java.lang.NullPointerException when exporting
metadata
On Fri, Aug 2, 2013 at 10:29 AM, Evans, Kevin <[email protected]> wrote:
> Thanks We are using Dspace 1.8.2.
>
> Does the code occur in the package you mention?
Yes, it hasn't changed:
https://github.com/DSpace/DSpace/blob/dspace-1.8.2/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/cocoon/MetadataExportReader.java#L187
> It is an export of a community, containing several collections/items.
> It has had its name changed recently
That shouldn't matter.
Let's try to find out whether the problem is in the CSV exporter or in Cocoon.
Call the CSV exporter from the command line like this (replace
123456789/123 with the handle of your community):
[dspace]/bin/dspace metadata-export -f export.csv -i 123456789/123
Regards,
~~helix84
Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette