报错:attempted to return null from a method with a primitive return type (int)
2019-04-04 20:22
603 查看
报错:attempted to return null from a method with a primitive return type (int)
报错:attempted to return null from a method with a primitive return type (int)
为了这个问题折腾了1个多小时,真的很无语
产生这样的问题遇到过两种情况:
1.某个事务没有提交,导致一直无法更新
查看事务
select * from information_schema.INNODB_TRX;
查看锁
select * from information_schema.INNODB_LOCKS;
查看锁等待
select * from information_schema.INNODB_LOCK_WAITS;
kill掉对应 thread 就好 (开发环境的时候)
2.update语句用了@Select注解,或者是在XML中配置写错了标签(概率极大)
相关文章推荐
- [置顶] 【java】Mybatis返回int类型为空时报错 attempted to return null from a method with a primitive return type (int)
- attempted to return null from a method with a primitive return type (int)
- attempted to return null from a method with a primitive return type (int)异常的解决
- delete attempted to return null from a method with a primitive return type (int)
- attempted to return null from a method with a primitive return type (int).
- mybatis -----attempted to return null from a method with a primitive return type (int)
- 关于attempted to return null from a method with a primitive return type (int).报错解决方案
- MyBatis提示getFundBonus attempted to return null from a method with a primitive return type (double)
- mybatis返回int类型报错 return null from a method with a primitive return type (int).
- [mybatis-异常]:BindingException: Mapper method 'CartMapper.testSum attempted to return null from a met
- 关于Hibernate中的int和float数据及Null value was assigned to a property of primitive type setter of
- BUG6:Cannot return a value from a method with void result type 返回值错误
- Null value was assigned to a property of primitive type setter ,hibernate int型数据无法读取 hiberante读int
- 关于Attempt to invoke virtual method 'HSSFCell.getCellType(int)'' on a null object reference
- MyBatis Error:BindingException Mapper method attempted to return null
- aop.AopInvocationException: null return value from advice does not match primitive return type for
- Spring之AOP奇葩报错:Null return value from advice does not match primitive return type for
- Null value was assigned to a property of primitive type setter of model.LabAppForm.peoplenumber; nes
- Cast from pointer to smaller type 'int' loses information
- 问题描述:Null value was assigned to a property of primitive type setter