"Problem occurred in the server. Please try again. If the problem persists, contact your system administrator. Error code: -1" error in Spectrum

Products affected: Spectrum Technology Platform
Product Feature: Installation / Upgrade
 

Issue

When trying to log on to use Spectrum Technology Platform you receive the error "Problem occurred in the server. Please try again. If the problem persists, contact your system administrator. Error code: -1".

User-added image

Cause

Studying the debug.log file a repeated number of 'Out of memory' errors are apparent. This relates to the configuration of the Java heap space on your Java Virtual Machine.

Log file example:

2019-06-02 01:20:00.314+0000 ERROR [o.n.b.v.r.ErrorReporter] Client triggered an unexpected error [TransactionStartFailed]: Database has encountered some problem, please perform necessary action (tx recovery/restart), reference 70bc16ab-95d3-4d15-af2c-99b1979e95be.
2019-06-02 01:20:00.314+0000 ERROR [o.n.b.v.r.ErrorReporter] Client triggered an unexpected error [TransactionStartFailed]: Database has encountered some problem, please perform necessary action (tx recovery/restart), reference 70bc16ab-95d3-4d15-af2c-99b1979e95be. Database has encountered some problem, please perform necessary action (tx recovery/restart)
org.neo4j.graphdb.TransactionFailureException: Database has encountered some problem, please perform necessary action (tx recovery/restart)
    at org.neo4j.kernel.impl.factory.ClassicCoreSPI.beginTransaction(ClassicCoreSPI.java:182)
    at org.neo4j.kernel.impl.factory.GraphDatabaseFacade.beginTransactionInternal(GraphDatabaseFacade.java:581)
    at org.neo4j.kernel.impl.factory.GraphDatabaseFacade.beginTransaction(GraphDatabaseFacade.java:384)
    at org.neo4j.bolt.v1.runtime.TransactionStateMachineSPI.beginTransaction(TransactionStateMachineSPI.java:101)
    at org.neo4j.bolt.v1.runtime.TransactionStateMachine$State$1.run(TransactionStateMachine.java:153)
    at org.neo4j.bolt.v1.runtime.TransactionStateMachine.run(TransactionStateMachine.java:74)
    at org.neo4j.bolt.v1.runtime.BoltStateMachine$State$2.run(BoltStateMachine.java:395)
    at org.neo4j.bolt.v1.runtime.BoltStateMachine.run(BoltStateMachine.java:194)
    at org.neo4j.bolt.v1.messaging.BoltMessageRouter.lambda$onRun$3(BoltMessageRouter.java:80)
    at org.neo4j.bolt.v1.runtime.concurrent.RunnableBoltWorker.execute(RunnableBoltWorker.java:130)
    at org.neo4j.bolt.v1.runtime.concurrent.RunnableBoltWorker.run(RunnableBoltWorker.java:91)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.neo4j.kernel.api.exceptions.TransactionFailureException: Database has encountered some problem, please perform necessary action (tx recovery/restart)
    at sun.reflect.GeneratedConstructorAccessor60.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.neo4j.kernel.internal.DatabaseHealth.assertHealthy(DatabaseHealth.java:62)
    at org.neo4j.kernel.impl.api.Kernel.newTransaction(Kernel.java:90)
    at org.neo4j.kernel.impl.factory.ClassicCoreSPI.beginTransaction(ClassicCoreSPI.java:174)
    ... 11 more
Caused by: org.neo4j.kernel.impl.store.UnderlyingStorageException: Error performing check point
    at org.neo4j.kernel.impl.transaction.log.checkpoint.CheckPointScheduler$1.constructCombinedFailure(CheckPointScheduler.java:100)
    at org.neo4j.kernel.impl.transaction.log.checkpoint.CheckPointScheduler$1.run(CheckPointScheduler.java:81)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    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)
    at org.neo4j.helpers.NamedThreadFactory$2.run(NamedThreadFactory.java:109)
    Suppressed: java.lang.OutOfMemoryError: Java heap space
    Suppressed: org.neo4j.kernel.impl.store.UnderlyingStorageException: Unable to force ContractCheckingIndexProxy -> OnlineIndexProxy[accessor:org.neo4j.kernel.api.impl.schema.LuceneIndexAccessor@58ad9f7f, descriptor:Index( GENERAL, :label[75](property[90]) )]
        at org.neo4j.kernel.impl.api.index.IndexingService.lambda$forceIndexProxy$4(IndexingService.java:681)
        at org.neo4j.kernel.impl.api.index.IndexMap.forEachIndexProxy(IndexMap.java:124)
        at org.neo4j.kernel.impl.api.index.IndexingService.forceAll(IndexingService.java:665)
        at org.neo4j.kernel.impl.storageengine.impl.recordstorage.RecordStorageEngine.flushAndForce(RecordStorageEngine.java:450)
        at org.neo4j.kernel.impl.transaction.log.checkpoint.CheckPointerImpl.doCheckPoint(CheckPointerImpl.java:160)
        at org.neo4j.kernel.impl.transaction.log.checkpoint.CheckPointerImpl.checkPointIfNeeded(CheckPointerImpl.java:134)
        at org.neo4j.kernel.impl.transaction.log.checkpoint.CheckPointScheduler$1.run(CheckPointScheduler.java:64)
        ... 8 more
    Caused by: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
        at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:720)
        at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:734)
        at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:2929)
        at org.neo4j.kernel.api.impl.index.AbstractLuceneIndex.flush(AbstractLuceneIndex.java:206)
        at org.neo4j.kernel.api.impl.schema.LuceneSchemaIndex.markAsOnline(LuceneSchemaIndex.java:175)
        at org.neo4j.kernel.api.impl.schema.WritableDatabaseSchemaIndex.markAsOnline(WritableDatabaseSchemaIndex.java:104)
        at org.neo4j.kernel.api.impl.schema.LuceneIndexAccessor.force(LuceneIndexAccessor.java:81)
        at org.neo4j.kernel.impl.api.index.OnlineIndexProxy.force(OnlineIndexProxy.java:141)
        at org.neo4j.kernel.impl.api.index.AbstractDelegatingIndexProxy.force(AbstractDelegatingIndexProxy.java:90)
        at org.neo4j.kernel.impl.api.index.ContractCheckingIndexProxy.force(ContractCheckingIndexProxy.java:127)
        at org.neo4j.kernel.impl.api.index.IndexingService.lambda$forceIndexProxy$4(IndexingService.java:674)
        ... 14 more
    [CIRCULAR REFERENCE:java.lang.OutOfMemoryError: Java heap space]

Resolution

UPDATED: March 27, 2020