Orientdb 获得;java.lang.IllegalStateException:池已关闭;getTx()调用期间发生异常

Orientdb 获得;java.lang.IllegalStateException:池已关闭;getTx()调用期间发生异常,orientdb,Orientdb,下面是日志中与orientdb(2.2.19)相关的异常 在执行提交时,这些异常也会在NPE之后出现 java.lang.NullPointerException at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.makeActive(OrientBaseGraph.java:362) at com.tinkerpop.blueprints.impls.orient.OrientTransaction

下面是日志中与orientdb(2.2.19)相关的异常

在执行提交时,这些异常也会在NPE之后出现

java.lang.NullPointerException
        at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.makeActive(OrientBaseGraph.java:362)
        at com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.commit(OrientTransactionalGraph.java:177)
OrientGraphFactory的初始化如下所示

factory = new OrientGraphFactory(url, userName, password).setupPool(1,50);
任何指针,何时以及为什么抛出此错误都会很有帮助

编辑:

my orientdb-server-config.xml中的配置如下:

 <parameters>
                <parameter value="true" name="enabled"/>
                <parameter value="50" name="graph.pool.max"/>
            </parameters>

您是否在不同线程之间共享该图?@Luigi,每个线程都有自己的OrientGraph(事务连接),然后在调用commit后,它调用shutdown。我有一个OrientGraphFactory实例,用于获取OrientGraph和OrientGraphNoTx。
factory = new OrientGraphFactory(url, userName, password).setupPool(1,50);
 <parameters>
                <parameter value="true" name="enabled"/>
                <parameter value="50" name="graph.pool.max"/>
            </parameters>
com.orientechnologies.orient.core.exception.OStorageException: Cannot create a connection to remote server address(es)