java.lang.NullPointerException

Sakai JIRA | Hardy Pottinger | 2 years ago
  1. 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
  2. 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
  3. 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 | 7 months ago | Michael Marttila
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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 | 7 months ago | Michael Marttila
    java.lang.NullPointerException
  6. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.dspace.storage.rdbms.DatabaseManager.retrieveColumnInfo()
    2. DSpace Kernel :: API and Implementation
      Packager.main
      1. org.dspace.storage.rdbms.DatabaseManager.retrieveColumnInfo(DatabaseManager.java:1411)
      2. org.dspace.storage.rdbms.DatabaseManager.getColumnInfoInternal(DatabaseManager.java:1380)
      3. org.dspace.storage.rdbms.DatabaseManager.getColumnInfo(DatabaseManager.java:800)
      4. org.dspace.storage.rdbms.DatabaseManager.getPrimaryKeyColumnInfo(DatabaseManager.java:1268)
      5. org.dspace.storage.rdbms.DatabaseManager.update(DatabaseManager.java:731)
      6. org.dspace.eperson.Group.update(Group.java:1140)
      7. org.dspace.content.packager.RoleIngester.ingestDocument(RoleIngester.java:350)
      8. org.dspace.content.packager.RoleIngester.ingest(RoleIngester.java:471)
      9. org.dspace.content.crosswalk.RoleCrosswalk.ingest(RoleCrosswalk.java:337)
      10. org.dspace.content.crosswalk.RoleCrosswalk.ingest(RoleCrosswalk.java:259)
      11. org.dspace.content.packager.METSManifest.crosswalkXmd(METSManifest.java:1193)
      12. org.dspace.content.packager.METSManifest.crosswalkObjectOtherAdminMD(METSManifest.java:1106)
      13. org.dspace.content.packager.AbstractMETSIngester.replaceObject(AbstractMETSIngester.java:645)
      14. org.dspace.content.packager.AbstractMETSIngester.replace(AbstractMETSIngester.java:1191)
      15. org.dspace.content.packager.AbstractPackageIngester.replaceAll(AbstractPackageIngester.java:241)
      16. org.dspace.app.packager.Packager.replace(Packager.java:727)
      17. org.dspace.app.packager.Packager.main(Packager.java:373)
      17 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:225)
      2. org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)
      2 frames