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

Error attempting to update Bitstream Format With Oracle On Initialization

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Incomplete
    • Affects Version/s: 6.0
    • Fix Version/s: None
    • Component/s: DSpace API, JSPUI
    • Environment:
      OS:Window7 Ultimate DataBase:Oracle DataBase 11g JDK1.8 Maven3.3.9 Ant1.9.7
    • Attachments:
      2
    • Comments:
      3
    • Documentation Status:
      Needed

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              xingkonglv Yunkai Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: