Sakai JIRA | Ondřej Košarko | 8 months ago
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I'm seeing a NPE when I try to harvest a collection with current master (008ad12). Java stacktrace: java.lang.NullPointerException at org.dspace.core.AbstractHibernateDAO.getHibernateSession( at org.dspace.core.AbstractHibernateDAO.findByID( at org.dspace.content.CollectionServiceImpl.find( at org.dspace.content.CollectionServiceImpl.find( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at org.mozilla.javascript.MemberBox.invoke( ... The actual error seems to be that the instance I am harvesting from has some extra schemas. 2016-09-30 08:44:34,476 ERROR org.dspace.harvest.OAIHarvester @ Error occurred while generating an OAI response: The 'xxx' schema has not been defined in this DSpace instance. null org.dspace.content.crosswalk.CrosswalkException: The 'xxx' schema has not been defined in this DSpace instance. at org.dspace.content.crosswalk.CrosswalkMetadataValidator.checkMetadata( at org.dspace.content.crosswalk.DIMIngestionCrosswalk.ingest( at org.dspace.harvest.OAIHarvester.processRecord( at org.dspace.harvest.OAIHarvester.runHarvest( This is kind of not surprising...otherwise harvesting DIM metadata format would mean potentially creating missing schemas/elements. That's not supposed to be happening, or is it?

    Sakai JIRA | 8 months ago | Ondřej Košarko

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.dspace.core.AbstractHibernateDAO.getHibernateSession()
    2. DSpace Kernel :: API and Implementation
      1. org.dspace.core.AbstractHibernateDAO.getHibernateSession(
      2. org.dspace.core.AbstractHibernateDAO.findByID(
      3. org.dspace.content.CollectionServiceImpl.find(
      4. org.dspace.content.CollectionServiceImpl.find(
      4 frames
    3. Java RT
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(
      4. java.lang.reflect.Method.invoke(
      4 frames
    4. Rhino
      1. org.mozilla.javascript.MemberBox.invoke(
      1 frame