Hello all,

I had a dspace 6.2 install set up last year and it was running smoothly 
till last week. Since last week the dspace services have been down. 
Multiple restarts of tomcat have been attempted to no avail. 

The localhost log shows following error (I have seen this error in other 
posts but the answers didn't help me)

04-Mar-2019 16:48:38.265 SEVERE [localhost-startStop-1] 
org.apache.catalina.core.StandardContext.listenerStart Exception sending 
context initiali
zed event to listener instance of class 
org.dspace.app.util.DSpaceWebappListener
 java.lang.ExceptionInInitializerError
        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:4727)
        at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189)
        at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
        at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1107)
        at 
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1841)
        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:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
        at 
org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:547)
        at org.dspace.core.Context.<clinit>(Context.java:103)
        ... 15 more

04-Mar-2019 15:02:29.934 SEVERE [localhost-startStop-2] 
org.apache.catalina.core.StandardContext.listenerStart Exception sending 
context initialized event to listener instance of class 
org.dspace.app.util.DSpaceWebappListener
 java.lang.ExceptionInInitializerError
        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:4727)
        at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189)
        at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
        at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1107)
        at 
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1841)
        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:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
        at 
org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:547)
        at org.dspace.core.Context.<clinit>(Context.java:103)
        ... 15 more


DatabaseUtils.java:547 reads:

 {
        // Get our configured dataSource
        DataSource dataSource = getDataSource();

        try(Connection connection = dataSource.getConnection())
        {
            // Upgrade database to the latest version of our schema
            updateDatabase(dataSource, connection);
        }
    }


I am able to connect to db using client and also the "dspace database test" 
and "dspace database info"  runs fine as well. 


root@ip-172-31-21-77:/dspace/bin# ./dspace database info

Database Type: postgres
Database URL: jdbc:postgresql://localhost:5432/dspace
Database Schema: public
Database Username: dspace
Database Software: PostgreSQL version 9.5.14
Database Driver: PostgreSQL Native Driver version PostgreSQL 9.4.1211
PostgreSQL 'pgcrypto' extension installed/up-to-date? true (version=1.2)

+----------------+-----------------------------------------------------+---------------------+---------+
| Version        | Description                                         | 
Installed on        | State   |
+----------------+-----------------------------------------------------+---------------------+---------+
| 1              | << Flyway Baseline >>                               | 
2018-02-07 15:07:01 | Baselin |
| 1.1            | Initial DSpace 1.1 database schema                  | 
2018-02-07 15:07:03 | Success |
| 1.2            | Upgrade to DSpace 1.2 schema                        | 
2018-02-07 15:07:04 | Success |
| 1.3            | Upgrade to DSpace 1.3 schema                        | 
2018-02-07 15:07:04 | Success |
| 1.3.9          | Drop constraint for DSpace 1 4 schema               | 
2018-02-07 15:07:04 | Success |
| 1.4            | Upgrade to DSpace 1.4 schema                        | 
2018-02-07 15:07:04 | Success |
| 1.5            | Upgrade to DSpace 1.5 schema                        | 
2018-02-07 15:07:04 | Success |
| 1.5.9          | Drop constraint for DSpace 1 6 schema               | 
2018-02-07 15:07:04 | Success |
| 1.6            | Upgrade to DSpace 1.6 schema                        | 
2018-02-07 15:07:04 | Success |
| 1.7            | Upgrade to DSpace 1.7 schema                        | 
2018-02-07 15:07:04 | Success |
| 1.8            | Upgrade to DSpace 1.8 schema                        | 
2018-02-07 15:07:04 | Success |
| 3.0            | Upgrade to DSpace 3.x schema                        | 
2018-02-07 15:07:04 | Success |
| 4.0            | Upgrade to DSpace 4.x schema                        | 
2018-02-07 15:07:04 | Success |
| 4.9.2015.10.26 | DS-2818 registry update                             | 
2018-02-07 15:07:04 | Success |
| 5.0.2014.08.08 | DS-1945 Helpdesk Request a Copy                     | 
2018-02-07 15:07:04 | Success |
| 5.0.2014.09.25 | DS 1582 Metadata For All Objects drop constraint    | 
2018-02-07 15:07:04 | Success |
| 5.0.2014.09.26 | DS-1582 Metadata For All Objects                    | 
2018-02-07 15:07:04 | Success |
| 5.6.2016.08.23 | DS-3097                                             | 
2018-02-07 15:07:04 | Success |
| 5.7.2017.04.11 | DS-3563 Index metadatavalue resource type id column | 
2018-02-07 15:07:04 | Success |
| 5.7.2017.05.05 | DS 3431 Add Policies for BasicWorkflow              | 
2018-02-07 15:07:04 | Success |
| 6.0.2015.03.06 | DS 2701 Dso Uuid Migration                          | 
2018-02-07 15:07:04 | Success |
| 6.0.2015.03.07 | DS-2701 Hibernate migration                         | 
2018-02-07 15:07:04 | Success |
| 6.0.2015.08.31 | DS 2701 Hibernate Workflow Migration                | 
2018-02-07 15:07:07 | Success |
| 6.0.2016.01.03 | DS-3024                                             | 
2018-02-07 15:07:07 | Success |
| 6.0.2016.01.26 | DS 2188 Remove DBMS Browse Tables                   | 
2018-02-07 15:07:07 | Success |
| 6.0.2016.02.25 | DS-3004-slow-searching-as-admin                     | 
2018-02-07 15:07:07 | Success |
| 6.0.2016.04.01 | DS-1955 Increase embargo reason                     | 
2018-02-07 15:07:07 | Success |
| 6.0.2016.04.04 | DS-3086-OAI-Performance-fix                         | 
2018-02-07 15:07:07 | Success |
| 6.0.2016.04.14 | DS-3125-fix-bundle-bitstream-delete-rights          | 
2018-02-07 15:07:07 | Success |
| 6.0.2016.05.10 | DS-3168-fix-requestitem item id column              | 
2018-02-07 15:07:07 | Success |
| 6.0.2016.07.21 | DS-2775                                             | 
2018-02-07 15:07:07 | Success |
| 6.0.2016.07.26 | DS-3277 fix handle assignment                       | 
2018-02-07 15:07:07 | Success |
| 6.0.2016.08.23 | DS-3097                                             | 
2018-02-07 15:07:07 | Success |
| 6.1.2017.01.03 | DS 3431 Add Policies for BasicWorkflow              | 
2018-02-07 15:07:07 | Success |
+----------------+-----------------------------------------------------+---------------------+---------+


Greatful for any pointers. 

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to