0

当我启动 baasbox 时,我在提交时收到 NullPointerException。我在 baasbox 的 DbHelper.java 文件中注释掉了事务逻辑。

orientdb 版本是 1.6.3。以前在这个版本中出现过这个问题吗?

有人对此有想法吗?

这是一个例外:

java.lang.NullPointerException: null
    at com.orientechnologies.orient.core.tx.OTransactionOptimistic$2.run(OTransactionOptimistic.java:145) ~[orientdb-core-1.6.3.jar:1.6.3]
    at com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage.commit(OLocalPaginatedStorage.java:1446) ~[orientdb-core-1.6.3.jar:1.6.3]
Wrapped by: com.orientechnologies.orient.core.exception.OStorageException: Error during transaction commit.
    at com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage.commit(OLocalPaginatedStorage.java:1460) ~[orientdb-core-1.6.3.jar:1.6.3]
    at com.orientechnologies.orient.core.tx.OTransactionOptimistic.commit(OTransactionOptimistic.java:176) ~[orientdb-core-1.6.3.jar:1.6.3]
    at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.commit(ODatabaseRecordTx.java:115) ~[orientdb-core-1.6.3.jar:1.6.3]
    at com.baasbox.db.DbHelper.commitTransaction(DbHelper.java:119) ~[classes/:na]
    at com.baasbox.service.user.UserService.signUp(UserService.java:283) ~[classes/:na]
    at com.baasbox.service.user.UserService.createDefaultUsers(UserService.java:74) ~[classes/:na]
4

1 回答 1

0

该声明已被评论,因为 OrientDB 1.6.3 在事务和图形数据库方面有一些限制(对于某些 BaasBox 用例)。这些限制在 OrientDB 1.7.x 中消失了。这样做的结果是 BaasBox 0.8.4 现在完全支持必要的事务,并且 DbHelper 类的源代码确实已经更新。

https://github.com/baasbox/baasbox/blob/0.8.4/app/com/baasbox/db/DbHelper.java#L130

于 2014-10-22T13:32:12.270 回答