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

15 views
Skip to first unread message

Hung Tran

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

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

ODatabaseDocumentTx.java

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
Forward
0 new messages