A NullReferenceException is thrown in ODatabaseDocumentTx.checkIfActive() at the shutdown moment

Skip to first unread message

Hung Tran

Jan 7, 2016, 4:03:09 AM1/7/16
to orient-...@googlegroups.com

I am using OrientDB v2.1.8 (download version)

At the shutdown moment, I got a NullReferenceException due to a null object at line 3240 with ODatabaseRecordThreadLocal.INSTANCE


public void checkIfActive() {
    final ODatabaseDocumentInternal currentDatabase = ODatabaseRecordThreadLocal.INSTANCE.get();
    if (currentDatabase != this)
      throw new IllegalStateException("Current database instance (" + toString() + ") is not active on current thread ("
          + Thread.currentThread() + "). Current active database is: " + currentDatabase);

Hereunder is the call stack

and the connection status is still OPEN, it means the exception will prevent the connection from releasing properly. Hopefully that will not cause a memory leaking issue.

My Best,
Hung Tran
Reply all
Reply to author
0 new messages