jameszhongsq opened a new issue #6775:
URL: https://github.com/apache/shardingsphere/issues/6775
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>sharding-jdbc-spring-boot-starter</artifactId>
<version>4.1.1</version>
</dependency>
When I test insert, I get the following error:
org.mybatis.spring.MyBatisSystemException: nested exception is
org.apache.ibatis.exceptions.PersistenceException:
### Error updating database. Cause: java.lang.NullPointerException
### The error may involve
cn.tsign.sealmanager.dal.mybatisgenerator.dao.MsgProduceLogDAO.insert-Inline
### The error occurred while setting parameters
### SQL: insert into msg_produce_log (id,topic, group, tag, msg_id,
msg_body, send_result ) values (?,?, ?, ?, ?, ?, ? )
### Cause: java.lang.NullPointerException
at
org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:77)
at
org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:446)
at
org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:278)
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:58)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59)
at
cn.tsign.sealmanager.service.optlog.OptlogServiceTest.test01(OptlogServiceTest.java:31)
at
the sql : insert into msg_produce_log (id,topic, group, tag, msg_id,
msg_body, send_result) values (?,?, ?, ?, ?, ?, ? )。
the key,value can match it。
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]