Hi Freddy,

That error seems to be saying that one of your Item's License files is
missing. Here's the OAI code that is throwing the NullPointerException
(after the License bitstream cannot be retrieved):
https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-oai/src/main/java/org/dspace/xoai/util/ItemUtils.java#L298

OAI import attempts to add the content of any License files to a "license"
field (for some metadata formats).  Here's an example from the demo site,
where you can see a "DSpaceDepositLicense" when you ask for
"metadataPrefix=mets":
http://demo.dspace.org/oai/request?verb=GetRecord&metadataPrefix=mets&identifier=oai:demo.dspace.org:10673/5


In any case, it sounds like one of your Item's has an associated Bitstream
object (that represents a License), but that Bitstream's content is missing
from your filesystem.  I'm not sure if there's an easy way to track down
the exact item, but you might look more closely at the log files *just
before* this error occurs to see if OAI is logging exactly which Item it is
attempting to import when this happens.

Good luck, and let us know on this list if you have further questions.

Tim



On Mon, Feb 25, 2019 at 11:04 PM Freddy Guerrero <[email protected]>
wrote:

> Hi, I use dspace v. 6.3, jspui, and when executing "dspace oai import ",
> I get this error:
>
> java.lang.NullPointerException
>         at org.dspace.storage.bitstore.BitstreamStorageServiceImpl.retr
> ieve(BitstreamStorageServiceImpl.java:216)
>         at org.dspace.content.BitstreamServiceImpl.retrieve(BitstreamSe
> rviceImpl.java:309)
>         at org.dspace.xoai.util.ItemUtils.retrieveMetadata(ItemUtils.
> java:298)
>         at org.dspace.xoai.app.XOAI.index(XOAI.java:421)
>         at org.dspace.xoai.app.XOAI.index(XOAI.java:280)
>         at org.dspace.xoai.app.XOAI.index(XOAI.java:179)
>         at org.dspace.xoai.app.XOAI.index(XOAI.java:145)
>         at org.dspace.xoai.app.XOAI.main(XOAI.java:560)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:62)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptL
> auncher.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 Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org

-- 
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 Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to