I am running into this error when shutting down the connection pool. This
is with the latest version of 1.7-RC2.
08:28:37,918 ERROR [STDERR] Exception in thread "Thread-15"
08:28:37,918 ERROR [STDERR] java.lang.NullPointerException
08:28:37,918 ERROR [STDERR] at
com.orientechnologies.orient.core.db.ODatabasePoolBase.getConnectionsInCurrentThread(ODatabasePoolBase.java:142)
08:28:37,918 ERROR [STDERR] at
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTxPooled.close(ODatabaseDocumentTxPooled.java:97)
08:28:37,918 ERROR [STDERR] at
com.orientechnologies.orient.core.db.ODatabaseFactory.shutdown(ODatabaseFactory.java:93)
08:28:37,918 ERROR [STDERR] at
com.orientechnologies.orient.core.Orient.shutdown(Orient.java:148)
08:28:37,918 ERROR [STDERR] at
com.orientechnologies.orient.core.OrientShutdownHook.run(OrientShutdownHook.java:28)
This is how we fixed it locally:
---
a/core/src/main/java/com/orientechnologies/orient/core/db/ODatabasePoolBase.java
+++
b/core/src/main/java/com/orientechnologies/orient/core/db/ODatabasePoolBase.java
@@ -139,7 +139,10 @@ public abstract class ODatabasePoolBase<DB extends
ODatabase> extends Thread {
}
public int getConnectionsInCurrentThread(final String name, final String
userName) {
- return dbPool.getConnectionsInCurrentThread(name, userName);
+ if (dbPool == null) {
+ return 0;
+ }
+ return dbPool.getConnectionsInCurrentThread(name, userName);
}
/**
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.