xian icon indicating copy to clipboard operation
xian copied to clipboard

daocore版本升级迭代未覆盖到DaoUnit的静态test方法

Open happyyangyuan opened this issue 6 years ago • 0 comments

public class XyzDaoUnit extends DaoUnit {
...
public static void main(String[] args) {
        test(MessageDaoUnit.class, new JSONObject().fluentPut("deviceMac", "abc"));
    }
...

会报空指针

[ENV] environment = xian_runtime_IDE_happyyangyuan.local
java.lang.NullPointerException
	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:770)
	at com.google.common.cache.LocalCache.getIfPresent(LocalCache.java:4134)
	at com.google.common.cache.LocalCache$LocalManualCache.getIfPresent(LocalCache.java:5054)
	at info.xiancloud.dao.core.transaction.local.BaseLocalTransaction.getExistedLocalTrans(BaseLocalTransaction.java:61)
	at info.xiancloud.dao.core.transaction.TransactionFactory.getTransaction(TransactionFactory.java:23)
	at info.xiancloud.dao.core.units.DaoUnit.execute(DaoUnit.java:61)
	at info.xiancloud.dao.core.units.DaoUnit.test(DaoUnit.java:191)
	at com.bgy.yuanbao.dao.MessageDaoUnit.main(MessageDaoUnit.java:41)

happyyangyuan avatar Jul 19 '19 15:07 happyyangyuan