我注意到OrientDB的shutdown()方法(OrientGraph的实例方法)每次调用都会导致以下异常:
Method threw 'com.orientechnologies.orient.core.exception.ODatabaseException' exception. Cannot evaluate com.tinkerpop.blueprints.impls.orient.OrientGraph.toString()
异常是静默的,控制台或日志中没有打印输出。只有在调试期间进行跟踪时才会看到它。
我称之为:
transaction.commit();
transaction.shutdown(); // silent exception is seen here during tracing
只是为了记录,我得到了一个像这样的OrientGraphFactory:
OrientGraphFactory gf = new OrientGraphFactory(dbLocation, "admin", "admin", true);
OrientGraph transaction = gf.getTx();
异常的原因是什么?