Spring Transaction Analysize
问题描述
- 前言 20190525-Mybatis OGNL导致的并发安全问题 ,发生问题的mybatis版本为3.2.7,mybatis-spring的版本为1.2.2
- 为解决OGNL的并发问题,将mybatis升级是3.4.0版本,mybatis-spring升级至1.3.0版本,但是此时发现稳定报错
Transaction time out
Jeff xu
Transaction time out
在查询sql的时候遇到报错:
1 | org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression 'groupStatusList != null and groupStatusList.size() > 0'. Cause: org.apache.ibatis.ognl.MethodFailedException: Method "size" failed for object [0] [java.lang.IllegalAccessException: Class org.apache.ibatis.ognl.OgnlRuntime can not access a member of class com.google.common.primitives.Ints$IntArrayAsList with modifiers "public"] | |