You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/08/11 03:09:31 UTC

[GitHub] [shardingsphere] jameszhongsq opened a new issue #6775: ### Error updating database. Cause: java.lang.NullPointerException

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:
users@infra.apache.org



[GitHub] [shardingsphere] tristaZero commented on issue #6775: ### Error updating database. Cause: java.lang.NullPointerException

Posted by GitBox <gi...@apache.org>.
tristaZero commented on issue #6775:
URL: https://github.com/apache/shardingsphere/issues/6775#issuecomment-671745597


   @jameszhongsq Hi, Firstly, please search our issue list with your keyword since there some similar issues solved.
   Secondly, please give more stack log, it is not enough to find the reason.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [shardingsphere] jameszhongsq closed issue #6775: ### Error updating database. Cause: java.lang.NullPointerException

Posted by GitBox <gi...@apache.org>.
jameszhongsq closed issue #6775:
URL: https://github.com/apache/shardingsphere/issues/6775


   


----------------------------------------------------------------
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:
users@infra.apache.org