Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3082

fresh_install in dspace 5 with oracle

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Answered
    • Affects Version/s: 5.4
    • Fix Version/s: None
    • Component/s: DSpace API
    • Labels:
      None
    • Environment:
      unix
    • Attachments:
      0
    • Comments:
      4
    • Documentation Status:
      Needed

      Description

      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)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              monikam Monika Mevenkamp
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: