java.lang.NullPointerException

Sakai JIRA | Monika Mevenkamp | 1 year 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

    when running fresh install in dspace 5 with oracle I get errors I looked into the details of creating bitstreamformatregistry entries: DatabaseRegistryUpdater afterMigrate calls DatabaseManager.create calls DatabaseManager.getColumnNames(table), where table = 'bitstreamformatregistry' getColumnNames unfortunately returns an empty list, although I can see in the DB that the table has columns ---- here are the log messages 2016-02-25 15:06:31,834 ERROR org.dspace.storage.rdbms.DatabaseRegistryUpdater @ Error attempting to update Bitstream Format and/or Metadata Registries java.lang.NullPointerException at org.dspace.storage.rdbms.ColumnInfo.canonicalize(ColumnInfo.java:154) at org.dspace.storage.rdbms.TableRow.canonicalizeAndCheck(TableRow.java:661) at org.dspace.storage.rdbms.TableRow.setColumn(TableRow.java:499) at org.dspace.storage.rdbms.DatabaseManager.doInsertGeneric(DatabaseManager.java:1827) at org.dspace.storage.rdbms.DatabaseManager.insert(DatabaseManager.java:715) at org.dspace.storage.rdbms.DatabaseManager.create(DatabaseManager.java:476) at org.dspace.content.BitstreamFormat.create(BitstreamFormat.java:403) at org.dspace.administer.RegistryLoader.loadFormat(RegistryLoader.java:182) at org.dspace.administer.RegistryLoader.loadBitstreamFormats(RegistryLoader.java:136) at org.dspace.storage.rdbms.DatabaseRegistryUpdater.updateRegistries(DatabaseRegistryUpdater.java:63) at org.dspace.storage.rdbms.DatabaseRegistryUpdater.afterMigrate(DatabaseRegistryUpdater.java:129) at org.flywaydb.core.internal.command.DbMigrate$3.doInTransaction(DbMigrate.java:226) at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72) at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:223) at org.flywaydb.core.Flyway$1.execute(Flyway.java:864) at org.flywaydb.core.Flyway$1.execute(Flyway.java:811) at org.flywaydb.core.Flyway.execute(Flyway.java:1171) at org.flywaydb.core.Flyway.migrate(Flyway.java:811) at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:419) at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:338) at org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseManager.java:1373) at org.dspace.storage.rdbms.DatabaseManager.getDbName(DatabaseManager.java:1491) at org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.java:191) 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:226) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78) 2016-02-25 15:06:32,064 ERROR org.dspace.storage.rdbms.DatabaseRegistryUpdater @ Error attempting to add/update default DSpace Groups java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Matcher.java:1234) at java.util.regex.Matcher.reset(Matcher.java:308) at java.util.regex.Matcher.<init>(Matcher.java:228) at java.util.regex.Pattern.matcher(Pattern.java:1088) at org.dspace.storage.rdbms.DatabaseManager.findByUnique(DatabaseManager.java:541) at org.dspace.storage.rdbms.DatabaseManager.find(DatabaseManager.java:505) at org.dspace.eperson.Group.find(Group.java:683) at org.dspace.eperson.Group.initDefaultGroupNames(Group.java:1500) at org.dspace.storage.rdbms.DatabaseRegistryUpdater.afterMigrate(DatabaseRegistryUpdater.java:141) at org.flywaydb.core.internal.command.DbMigrate$3.doInTransaction(DbMigrate.java:226) at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72) at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:223) at org.flywaydb.core.Flyway$1.execute(Flyway.java:864) at org.flywaydb.core.Flyway$1.execute(Flyway.java:811) at org.flywaydb.core.Flyway.execute(Flyway.java:1171) at org.flywaydb.core.Flyway.migrate(Flyway.java:811) at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:419) at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:338) at org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseManager.java:1373) at org.dspace.storage.rdbms.DatabaseManager.getDbName(DatabaseManager.java:1491) at org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.java:191) 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:226) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)

    Sakai JIRA | 1 year ago | Monika Mevenkamp
    java.lang.NullPointerException
  2. 0

    when running fresh install in dspace 5 with oracle I get errors I looked into the details of creating bitstreamformatregistry entries: DatabaseRegistryUpdater afterMigrate calls DatabaseManager.create calls DatabaseManager.getColumnNames(table), where table = 'bitstreamformatregistry' getColumnNames unfortunately returns an empty list, although I can see in the DB that the table has columns ---- here are the log messages 2016-02-25 15:06:31,834 ERROR org.dspace.storage.rdbms.DatabaseRegistryUpdater @ Error attempting to update Bitstream Format and/or Metadata Registries java.lang.NullPointerException at org.dspace.storage.rdbms.ColumnInfo.canonicalize(ColumnInfo.java:154) at org.dspace.storage.rdbms.TableRow.canonicalizeAndCheck(TableRow.java:661) at org.dspace.storage.rdbms.TableRow.setColumn(TableRow.java:499) at org.dspace.storage.rdbms.DatabaseManager.doInsertGeneric(DatabaseManager.java:1827) at org.dspace.storage.rdbms.DatabaseManager.insert(DatabaseManager.java:715) at org.dspace.storage.rdbms.DatabaseManager.create(DatabaseManager.java:476) at org.dspace.content.BitstreamFormat.create(BitstreamFormat.java:403) at org.dspace.administer.RegistryLoader.loadFormat(RegistryLoader.java:182) at org.dspace.administer.RegistryLoader.loadBitstreamFormats(RegistryLoader.java:136) at org.dspace.storage.rdbms.DatabaseRegistryUpdater.updateRegistries(DatabaseRegistryUpdater.java:63) at org.dspace.storage.rdbms.DatabaseRegistryUpdater.afterMigrate(DatabaseRegistryUpdater.java:129) at org.flywaydb.core.internal.command.DbMigrate$3.doInTransaction(DbMigrate.java:226) at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72) at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:223) at org.flywaydb.core.Flyway$1.execute(Flyway.java:864) at org.flywaydb.core.Flyway$1.execute(Flyway.java:811) at org.flywaydb.core.Flyway.execute(Flyway.java:1171) at org.flywaydb.core.Flyway.migrate(Flyway.java:811) at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:419) at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:338) at org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseManager.java:1373) at org.dspace.storage.rdbms.DatabaseManager.getDbName(DatabaseManager.java:1491) at org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.java:191) 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:226) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78) 2016-02-25 15:06:32,064 ERROR org.dspace.storage.rdbms.DatabaseRegistryUpdater @ Error attempting to add/update default DSpace Groups java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Matcher.java:1234) at java.util.regex.Matcher.reset(Matcher.java:308) at java.util.regex.Matcher.<init>(Matcher.java:228) at java.util.regex.Pattern.matcher(Pattern.java:1088) at org.dspace.storage.rdbms.DatabaseManager.findByUnique(DatabaseManager.java:541) at org.dspace.storage.rdbms.DatabaseManager.find(DatabaseManager.java:505) at org.dspace.eperson.Group.find(Group.java:683) at org.dspace.eperson.Group.initDefaultGroupNames(Group.java:1500) at org.dspace.storage.rdbms.DatabaseRegistryUpdater.afterMigrate(DatabaseRegistryUpdater.java:141) at org.flywaydb.core.internal.command.DbMigrate$3.doInTransaction(DbMigrate.java:226) at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72) at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:223) at org.flywaydb.core.Flyway$1.execute(Flyway.java:864) at org.flywaydb.core.Flyway$1.execute(Flyway.java:811) at org.flywaydb.core.Flyway.execute(Flyway.java:1171) at org.flywaydb.core.Flyway.migrate(Flyway.java:811) at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:419) at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:338) at org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseManager.java:1373) at org.dspace.storage.rdbms.DatabaseManager.getDbName(DatabaseManager.java:1491) at org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.java:191) 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:226) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)

    Sakai JIRA | 1 year ago | Monika Mevenkamp
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.dspace.storage.rdbms.ColumnInfo.canonicalize()
    2. DSpace Kernel :: API and Implementation
      DatabaseRegistryUpdater.afterMigrate
      1. org.dspace.storage.rdbms.ColumnInfo.canonicalize(ColumnInfo.java:154)
      2. org.dspace.storage.rdbms.TableRow.canonicalizeAndCheck(TableRow.java:661)
      3. org.dspace.storage.rdbms.TableRow.setColumn(TableRow.java:499)
      4. org.dspace.storage.rdbms.DatabaseManager.doInsertGeneric(DatabaseManager.java:1827)
      5. org.dspace.storage.rdbms.DatabaseManager.insert(DatabaseManager.java:715)
      6. org.dspace.storage.rdbms.DatabaseManager.create(DatabaseManager.java:476)
      7. org.dspace.content.BitstreamFormat.create(BitstreamFormat.java:403)
      8. org.dspace.administer.RegistryLoader.loadFormat(RegistryLoader.java:182)
      9. org.dspace.administer.RegistryLoader.loadBitstreamFormats(RegistryLoader.java:136)
      10. org.dspace.storage.rdbms.DatabaseRegistryUpdater.updateRegistries(DatabaseRegistryUpdater.java:63)
      11. org.dspace.storage.rdbms.DatabaseRegistryUpdater.afterMigrate(DatabaseRegistryUpdater.java:129)
      11 frames
    3. ${project.artifactId}
      Flyway.migrate
      1. org.flywaydb.core.internal.command.DbMigrate$3.doInTransaction(DbMigrate.java:226)
      2. org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72)
      3. org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:223)
      4. org.flywaydb.core.Flyway$1.execute(Flyway.java:864)
      5. org.flywaydb.core.Flyway$1.execute(Flyway.java:811)
      6. org.flywaydb.core.Flyway.execute(Flyway.java:1171)
      7. org.flywaydb.core.Flyway.migrate(Flyway.java:811)
      7 frames
    4. DSpace Kernel :: API and Implementation
      DatabaseUtils.main
      1. org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:419)
      2. org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:338)
      3. org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseManager.java:1373)
      4. org.dspace.storage.rdbms.DatabaseManager.getDbName(DatabaseManager.java:1491)
      5. org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.java:191)
      5 frames
    5. 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
    6. DSpace Kernel :: API and Implementation
      ScriptLauncher.main
      1. org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226)
      2. org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
      2 frames