java.lang.NullPointerException

Sakai JIRA | Michael Marttila | 11 months ago
tip
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

    During an attempted import of a community AIP using the DSpace packager, the import process threw a NullPointerException within the METSRightsCrosswalk class's ingest method (see message below) and failed to import the proper read permissions, causing the collection to be restricted from anonymous users. java.lang.NullPointerException at org.dspace.content.crosswalk.METSRightsCrosswalk.ingest(METSRightsCrosswalk.java:513) at org.dspace.content.crosswalk.METSRightsCrosswalk.ingest(METSRightsCrosswalk.java:467) at org.dspace.content.packager.METSManifest.crosswalkXmd(METSManifest.java:1193) at org.dspace.content.packager.METSManifest.crosswalkObjectOtherAdminMD(METSManifest.java:1114) at org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:464) at org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:240) at org.dspace.app.packager.Packager.ingest(Packager.java:571) at org.dspace.app.packager.Packager.main(Packager.java:431) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:227) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:79)

    Sakai JIRA | 11 months ago | Michael Marttila
    java.lang.NullPointerException
  2. 0

    During an attempted import of a community AIP using the DSpace packager, the import process threw a NullPointerException within the METSRightsCrosswalk class's ingest method (see message below) and failed to import the proper read permissions, causing the collection to be restricted from anonymous users. java.lang.NullPointerException at org.dspace.content.crosswalk.METSRightsCrosswalk.ingest(METSRightsCrosswalk.java:513) at org.dspace.content.crosswalk.METSRightsCrosswalk.ingest(METSRightsCrosswalk.java:467) at org.dspace.content.packager.METSManifest.crosswalkXmd(METSManifest.java:1193) at org.dspace.content.packager.METSManifest.crosswalkObjectOtherAdminMD(METSManifest.java:1114) at org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:464) at org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:240) at org.dspace.app.packager.Packager.ingest(Packager.java:571) at org.dspace.app.packager.Packager.main(Packager.java:431) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:227) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:79)

    Sakai JIRA | 11 months ago | Michael Marttila
    java.lang.NullPointerException
  3. 0

    I discovered this error with Vagrant-DSpace, but I don't believe it's an error with Vagrant-DSpace, the NPE happens in the DatabaseManager. Here is the NPE: java.lang.NullPointerException at org.dspace.storage.rdbms.DatabaseManager.retrieveColumnInfo(DatabaseManager.java:1411) at org.dspace.storage.rdbms.DatabaseManager.getColumnInfoInternal(DatabaseManager.java:1380) at org.dspace.storage.rdbms.DatabaseManager.getColumnInfo(DatabaseManager.java:800) at org.dspace.storage.rdbms.DatabaseManager.getPrimaryKeyColumnInfo(DatabaseManager.java:1268) at org.dspace.storage.rdbms.DatabaseManager.update(DatabaseManager.java:731) at org.dspace.eperson.Group.update(Group.java:1140) at org.dspace.content.packager.RoleIngester.ingestDocument(RoleIngester.java:350) at org.dspace.content.packager.RoleIngester.ingest(RoleIngester.java:471) at org.dspace.content.crosswalk.RoleCrosswalk.ingest(RoleCrosswalk.java:337) at org.dspace.content.crosswalk.RoleCrosswalk.ingest(RoleCrosswalk.java:259) at org.dspace.content.packager.METSManifest.crosswalkXmd(METSManifest.java:1193) at org.dspace.content.packager.METSManifest.crosswalkObjectOtherAdminMD(METSManifest.java:1106) at org.dspace.content.packager.AbstractMETSIngester.replaceObject(AbstractMETSIngester.java:645) at org.dspace.content.packager.AbstractMETSIngester.replace(AbstractMETSIngester.java:1191) at org.dspace.content.packager.AbstractPackageIngester.replaceAll(AbstractPackageIngester.java:241) at org.dspace.app.packager.Packager.replace(Packager.java:727) at org.dspace.app.packager.Packager.main(Packager.java:373) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77) java.lang.NullPointerException Here is the command I type to get this error: cd ~ && dspace/bin/dspace packager -u -r -a -f -t AIP -e dspacedemo+admin@gmail.com -i 10673/0 -o skipIfParentMissing=true -o createMetadataFields=true /vagrant/content/aips/SITE@10673-0.zip

    Sakai JIRA | 2 years ago | Hardy Pottinger
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I discovered this error with Vagrant-DSpace, but I don't believe it's an error with Vagrant-DSpace, the NPE happens in the DatabaseManager. Here is the NPE: java.lang.NullPointerException at org.dspace.storage.rdbms.DatabaseManager.retrieveColumnInfo(DatabaseManager.java:1411) at org.dspace.storage.rdbms.DatabaseManager.getColumnInfoInternal(DatabaseManager.java:1380) at org.dspace.storage.rdbms.DatabaseManager.getColumnInfo(DatabaseManager.java:800) at org.dspace.storage.rdbms.DatabaseManager.getPrimaryKeyColumnInfo(DatabaseManager.java:1268) at org.dspace.storage.rdbms.DatabaseManager.update(DatabaseManager.java:731) at org.dspace.eperson.Group.update(Group.java:1140) at org.dspace.content.packager.RoleIngester.ingestDocument(RoleIngester.java:350) at org.dspace.content.packager.RoleIngester.ingest(RoleIngester.java:471) at org.dspace.content.crosswalk.RoleCrosswalk.ingest(RoleCrosswalk.java:337) at org.dspace.content.crosswalk.RoleCrosswalk.ingest(RoleCrosswalk.java:259) at org.dspace.content.packager.METSManifest.crosswalkXmd(METSManifest.java:1193) at org.dspace.content.packager.METSManifest.crosswalkObjectOtherAdminMD(METSManifest.java:1106) at org.dspace.content.packager.AbstractMETSIngester.replaceObject(AbstractMETSIngester.java:645) at org.dspace.content.packager.AbstractMETSIngester.replace(AbstractMETSIngester.java:1191) at org.dspace.content.packager.AbstractPackageIngester.replaceAll(AbstractPackageIngester.java:241) at org.dspace.app.packager.Packager.replace(Packager.java:727) at org.dspace.app.packager.Packager.main(Packager.java:373) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77) java.lang.NullPointerException Here is the command I type to get this error: cd ~ && dspace/bin/dspace packager -u -r -a -f -t AIP -e dspacedemo+admin@gmail.com -i 10673/0 -o skipIfParentMissing=true -o createMetadataFields=true /vagrant/content/aips/SITE@10673-0.zip

    Sakai JIRA | 2 years ago | Hardy Pottinger
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.dspace.content.crosswalk.METSRightsCrosswalk.ingest()
    2. DSpace Kernel :: API and Implementation
      Packager.main
      1. org.dspace.content.crosswalk.METSRightsCrosswalk.ingest(METSRightsCrosswalk.java:513)
      2. org.dspace.content.crosswalk.METSRightsCrosswalk.ingest(METSRightsCrosswalk.java:467)
      3. org.dspace.content.packager.METSManifest.crosswalkXmd(METSManifest.java:1193)
      4. org.dspace.content.packager.METSManifest.crosswalkObjectOtherAdminMD(METSManifest.java:1114)
      5. org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:464)
      6. org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:240)
      7. org.dspace.app.packager.Packager.ingest(Packager.java:571)
      8. org.dspace.app.packager.Packager.main(Packager.java:431)
      8 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    4. DSpace Kernel :: API and Implementation
      ScriptLauncher.main
      1. org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:227)
      2. org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:79)
      2 frames