ibatis 着急
Caused by:
java.lang.NullPointerException
at com.ibatis.common.logging.jakarta.JakartaCommonsLoggingImpl.isDebugEnabled(JakartaCommonsLoggingImpl.java:15) ~[ibatis-2.3.4.726.jar:?]
at com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransaction.init(JdbcTransaction.java:59) ~[ibatis-2.3.4.726.jar:?]
at com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransaction.getConnection(JdbcTransaction.java:89) ~[ibatis-2.3.4.726.jar:?]
at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForObject(MappedStatement.java:120) ~[ibatis-2.3.4.726.jar:?]
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:518) ~[ibatis-2.3.4.726.jar:?]
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:493) ~[ibatis-2.3.4.726.jar:?]
at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForObject(SqlMapSessionImpl.java:106) ~[ibatis-2.3.4.726.jar:?]
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForObject(SqlMapClientImpl.java:82) ~[ibatis-2.3.4.726.jar:?]
at com.bostechcorp.cbesb.common.util.db.ServerDBConfigDAO.getDBConfigWithNodeIDAndType(ServerDBConfigDAO.java:200) ~[core.common-3.5.jar:?]
at com.bostechcorp.commonframework.runtimedb.RuntimeDBDaoConfig.getSqlMapLockInstance(RuntimeDBDaoConfig.java:187) ~[core.common-3.5.jar:?]
... 5 more
有时候出错有时候没问题,跪求解释和解决方法
------解决方案--------------------debug ,数据出现null值了。
------解决方案--------------------at com.ibatis.common.logging.jakarta.JakartaCommonsLoggingImpl.isDebugEnabled(JakartaCommonsLoggingImpl.java:15) ~[ibatis-2.3.4.726.jar:?]
应该是log 没有获得到实例,是null