java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • fresh_install fails in dspace 5
    via by momeven,
  • 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)
    via by Monika Mevenkamp,
  • 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)
    via by Monika Mevenkamp,
  • If the variable "db.schema" is not empty in the configuration file _ [dspace-source]/build.properties_, installation ends with this error: {code:none} [java] 2014-10-17 00:30:14,649 FATAL org.dspace.administer.RegistryLoader @ anonymous::error_loading_registries: [java] java.lang.NullPointerException [java] at org.dspace.storage.rdbms.ColumnInfo.canonicalize(ColumnInfo.java:154) [java] at org.dspace.storage.rdbms.TableRow.canonicalizeAndCheck(TableRow.java:579) [java] at org.dspace.storage.rdbms.TableRow.setColumn(TableRow.java:437) [java] at org.dspace.storage.rdbms.DatabaseManager.doInsertGeneric(DatabaseManager.java:1834) [java] at org.dspace.storage.rdbms.DatabaseManager.insert(DatabaseManager.java:675) [java] at org.dspace.storage.rdbms.DatabaseManager.create(DatabaseManager.java:447) [java] at org.dspace.content.BitstreamFormat.create(BitstreamFormat.java:403) [java] at org.dspace.administer.RegistryLoader.loadFormat(RegistryLoader.java:172) [java] at org.dspace.administer.RegistryLoader.loadBitstreamFormats(RegistryLoader.java:138) [java] at org.dspace.administer.RegistryLoader.main(RegistryLoader.java:75) [java] Error: [java] - null BUILD FAILED /opt/dspace-src-42/dspace/target/dspace-4.2-build/build.xml:858: Java returned: 1 {code} http://dspace.2283337.n4.nabble.com/Ant-fresh-install-fails-with-Oracle-FATAL-org-dspace-administer-RegistryLoader-anonymous-error-loadi-td4660521.html#a4674240 http://sourceforge.net/p/dspace/mailman/message/30239571/ http://sourceforge.net/p/dspace/mailman/dspace-tech/thread/1356006154.27480.YahooMailClassic@web125305.mail.ne1.yahoo.com/
    via by CTU Developers,
  • If the variable "db.schema" is not empty in the configuration file _ [dspace-source]/build.properties_, installation ends with this error: {code:none} [java] 2014-10-17 00:30:14,649 FATAL org.dspace.administer.RegistryLoader @ anonymous::error_loading_registries: [java] java.lang.NullPointerException [java] at org.dspace.storage.rdbms.ColumnInfo.canonicalize(ColumnInfo.java:154) [java] at org.dspace.storage.rdbms.TableRow.canonicalizeAndCheck(TableRow.java:579) [java] at org.dspace.storage.rdbms.TableRow.setColumn(TableRow.java:437) [java] at org.dspace.storage.rdbms.DatabaseManager.doInsertGeneric(DatabaseManager.java:1834) [java] at org.dspace.storage.rdbms.DatabaseManager.insert(DatabaseManager.java:675) [java] at org.dspace.storage.rdbms.DatabaseManager.create(DatabaseManager.java:447) [java] at org.dspace.content.BitstreamFormat.create(BitstreamFormat.java:403) [java] at org.dspace.administer.RegistryLoader.loadFormat(RegistryLoader.java:172) [java] at org.dspace.administer.RegistryLoader.loadBitstreamFormats(RegistryLoader.java:138) [java] at org.dspace.administer.RegistryLoader.main(RegistryLoader.java:75) [java] Error: [java] - null BUILD FAILED /opt/dspace-src-42/dspace/target/dspace-4.2-build/build.xml:858: Java returned: 1 {code} http://dspace.2283337.n4.nabble.com/Ant-fresh-install-fails-with-Oracle-FATAL-org-dspace-administer-RegistryLoader-anonymous-error-loadi-td4660521.html#a4674240 http://sourceforge.net/p/dspace/mailman/message/30239571/ http://sourceforge.net/p/dspace/mailman/dspace-tech/thread/1356006154.27480.YahooMailClassic@web125305.mail.ne1.yahoo.com/
    via by CTU Developers,
    • 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)
    No Bugmate found.