java.lang.RuntimeException: Error attempting to update Bitstream Format and/or Metadata Registries

Sakai JIRA | Ivan Masár | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    $ ant fresh_install ... [java] 2015-10-08 10:52:08,420 INFO org.hibernate.tool.hbm2ddl.TableMetadata @ HHH000037: Columns: [dspace_object, resource_id, status, resource_type_id, doi_id, doi] [java] 2015-10-08 10:52:08,421 INFO org.dspace.storage.rdbms.DatabaseRegistryUpdater @ Updating Bitstream Format Registry based on /dspace/config/registries/bitstream-formats.xml [java] Caught exception: [java] java.lang.RuntimeException: Error attempting to update Bitstream Format and/or Metadata Registries [java] at org.dspace.storage.rdbms.DatabaseRegistryUpdater.updateRegistries(DatabaseRegistryUpdater.java:83) [java] at org.dspace.storage.rdbms.DatabaseRegistryUpdater.afterMigrate(DatabaseRegistryUpdater.java:110) [java] at org.flywaydb.core.internal.command.DbMigrate$3.doInTransaction(DbMigrate.java:226) [java] at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72) [java] at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:223) [java] at org.flywaydb.core.Flyway$1.execute(Flyway.java:1059) [java] at org.flywaydb.core.Flyway$1.execute(Flyway.java:1006) [java] at org.flywaydb.core.Flyway.execute(Flyway.java:1418) [java] at org.flywaydb.core.Flyway.migrate(Flyway.java:1006) [java] at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:558) [java] at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:477) [java] at org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.java:257) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.lang.reflect.Method.invoke(Method.java:606) [java] at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226) [java] at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78) [java] Caused by: java.lang.NullPointerException [java] at org.dspace.core.AbstractHibernateDAO.getHibernateSession(AbstractHibernateDAO.java:40) [java] at org.dspace.core.AbstractHibernateDAO.createCriteria(AbstractHibernateDAO.java:100) [java] at org.dspace.content.dao.impl.BitstreamFormatDAOImpl.findByMIMEType(BitstreamFormatDAOImpl.java:50) [java] at org.dspace.content.BitstreamFormatServiceImpl.findByMIMEType(BitstreamFormatServiceImpl.java:90) [java] at org.dspace.administer.RegistryLoader.loadFormat(RegistryLoader.java:173) [java] at org.dspace.administer.RegistryLoader.loadBitstreamFormats(RegistryLoader.java:139) [java] at org.dspace.storage.rdbms.DatabaseRegistryUpdater.updateRegistries(DatabaseRegistryUpdater.java:59) [java] ... 17 more

    Sakai JIRA | 1 year ago | Ivan Masár
    java.lang.RuntimeException: Error attempting to update Bitstream Format and/or Metadata Registries
  2. 0

    $ ant fresh_install ... [java] 2015-10-08 10:52:08,420 INFO org.hibernate.tool.hbm2ddl.TableMetadata @ HHH000037: Columns: [dspace_object, resource_id, status, resource_type_id, doi_id, doi] [java] 2015-10-08 10:52:08,421 INFO org.dspace.storage.rdbms.DatabaseRegistryUpdater @ Updating Bitstream Format Registry based on /dspace/config/registries/bitstream-formats.xml [java] Caught exception: [java] java.lang.RuntimeException: Error attempting to update Bitstream Format and/or Metadata Registries [java] at org.dspace.storage.rdbms.DatabaseRegistryUpdater.updateRegistries(DatabaseRegistryUpdater.java:83) [java] at org.dspace.storage.rdbms.DatabaseRegistryUpdater.afterMigrate(DatabaseRegistryUpdater.java:110) [java] at org.flywaydb.core.internal.command.DbMigrate$3.doInTransaction(DbMigrate.java:226) [java] at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72) [java] at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:223) [java] at org.flywaydb.core.Flyway$1.execute(Flyway.java:1059) [java] at org.flywaydb.core.Flyway$1.execute(Flyway.java:1006) [java] at org.flywaydb.core.Flyway.execute(Flyway.java:1418) [java] at org.flywaydb.core.Flyway.migrate(Flyway.java:1006) [java] at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:558) [java] at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:477) [java] at org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.java:257) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.lang.reflect.Method.invoke(Method.java:606) [java] at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226) [java] at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78) [java] Caused by: java.lang.NullPointerException [java] at org.dspace.core.AbstractHibernateDAO.getHibernateSession(AbstractHibernateDAO.java:40) [java] at org.dspace.core.AbstractHibernateDAO.createCriteria(AbstractHibernateDAO.java:100) [java] at org.dspace.content.dao.impl.BitstreamFormatDAOImpl.findByMIMEType(BitstreamFormatDAOImpl.java:50) [java] at org.dspace.content.BitstreamFormatServiceImpl.findByMIMEType(BitstreamFormatServiceImpl.java:90) [java] at org.dspace.administer.RegistryLoader.loadFormat(RegistryLoader.java:173) [java] at org.dspace.administer.RegistryLoader.loadBitstreamFormats(RegistryLoader.java:139) [java] at org.dspace.storage.rdbms.DatabaseRegistryUpdater.updateRegistries(DatabaseRegistryUpdater.java:59) [java] ... 17 more

    Sakai JIRA | 1 year ago | Ivan Masár
    java.lang.RuntimeException: Error attempting to update Bitstream Format and/or Metadata Registries
  3. 0

    Hello, I'm trying to get DSpace running on My PC and I have successfully installed DSpace-6.0-Release.About web application, I want to start with jspui.I copied jspui from [dspace]/webapps to [tomcat]/webapps and then started tomcat.Here comes the question:DSpace failed to initialize database with exception.Here is part of dspace.log and I will upload it as an attachment: 2016-12-07 11:18:11,938 FATAL org.dspace.core.Context @ Cannot obtain the bean which provides a database connection. Check previous entries in the dspace.log to find why the db failed to initialize. 2016-12-07 11:18:11,939 INFO org.dspace.storage.rdbms.DatabaseRegistryUpdater @ Updating Bitstream Format Registry based on D:/dspace\config\registries\bitstream-formats.xml 2016-12-07 11:18:12,129 ERROR org.dspace.storage.rdbms.DatabaseRegistryUpdater @ Error attempting to update Bitstream Format and/or Metadata Registries java.lang.NullPointerException at org.dspace.core.AbstractHibernateDAO.getHibernateSession(AbstractHibernateDAO.java:48) at org.dspace.core.AbstractHibernateDAO.createCriteria(AbstractHibernateDAO.java:108) at org.dspace.content.dao.impl.BitstreamFormatDAOImpl.findByMIMEType(BitstreamFormatDAOImpl.java:57) at org.dspace.content.BitstreamFormatServiceImpl.findByMIMEType(BitstreamFormatServiceImpl.java:95) at org.dspace.administer.RegistryLoader.loadFormat(RegistryLoader.java:184) at org.dspace.administer.RegistryLoader.loadBitstreamFormats(RegistryLoader.java:146) at org.dspace.storage.rdbms.DatabaseRegistryUpdater.updateRegistries(DatabaseRegistryUpdater.java:68) at org.dspace.storage.rdbms.DatabaseRegistryUpdater.afterMigrate(DatabaseRegistryUpdater.java:121) at org.flywaydb.core.internal.command.DbMigrate$3.doInTransaction(DbMigrate.java:250) at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72) at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:246) at org.flywaydb.core.Flyway$1.execute(Flyway.java:959) at org.flywaydb.core.Flyway$1.execute(Flyway.java:917) at org.flywaydb.core.Flyway.execute(Flyway.java:1373) at org.flywaydb.core.Flyway.migrate(Flyway.java:917) at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:655) at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:574) at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:550) at org.dspace.core.Context.<clinit>(Context.java:94) at org.dspace.app.util.AbstractDSpaceWebapp.register(AbstractDSpaceWebapp.java:74) at org.dspace.app.util.DSpaceWebappListener.contextInitialized(DSpaceWebappListener.java:31) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5017) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5531) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1948) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) It seems DSpace failed to insert table BITSTREAMFORMATREGISTRY.I couldn't figure out why.I have made sure JVM and oracle both run on utf-8 encoding.The database connection should be all right for 44 tables had already been created.I wondered if I configure local.cfg properly, so I upload it as attachment.I have just started with DSpace, any advice will be helpful.Thanks a lot.

    Sakai JIRA | 2 months ago | Yunkai Zhang
    java.lang.NullPointerException
  4. 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.core.AbstractHibernateDAO.getHibernateSession()
    2. DSpace Kernel :: API and Implementation
      AbstractHibernateDAO.createCriteria
      1. org.dspace.core.AbstractHibernateDAO.getHibernateSession(AbstractHibernateDAO.java:40)
      2. org.dspace.core.AbstractHibernateDAO.createCriteria(AbstractHibernateDAO.java:100)
      2 frames
    3. org.dspace.content
      BitstreamFormatDAOImpl.findByMIMEType
      1. org.dspace.content.dao.impl.BitstreamFormatDAOImpl.findByMIMEType(BitstreamFormatDAOImpl.java:50)
      1 frame
    4. DSpace Kernel :: API and Implementation
      DatabaseRegistryUpdater.afterMigrate
      1. org.dspace.content.BitstreamFormatServiceImpl.findByMIMEType(BitstreamFormatServiceImpl.java:90)
      2. org.dspace.administer.RegistryLoader.loadFormat(RegistryLoader.java:173)
      3. org.dspace.administer.RegistryLoader.loadBitstreamFormats(RegistryLoader.java:139)
      4. org.dspace.storage.rdbms.DatabaseRegistryUpdater.updateRegistries(DatabaseRegistryUpdater.java:59)
      5. org.dspace.storage.rdbms.DatabaseRegistryUpdater.afterMigrate(DatabaseRegistryUpdater.java:110)
      5 frames
    5. ${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:1059)
      5. org.flywaydb.core.Flyway$1.execute(Flyway.java:1006)
      6. org.flywaydb.core.Flyway.execute(Flyway.java:1418)
      7. org.flywaydb.core.Flyway.migrate(Flyway.java:1006)
      7 frames
    6. DSpace Kernel :: API and Implementation
      DatabaseUtils.main
      1. org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:558)
      2. org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:477)
      3. org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.java:257)
      3 frames
    7. 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
    8. 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