Caused by: org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: java.util.ConcurrentModificationException
### Cause: java.util.ConcurrentModificationException
at org.apache.ibatis.exceptions.ExceptionFac
For the iterative stability problem, it is used for database query. The value of lastbyparam.getid is re assigned to ID, and an error is reported due to the reference of the object; Another problem is that valueconfig is the value obtained from Nacos. The global variable cannot always add ID, and the collection will slowly grow
List<Long> Ids = valueConfig.getIds(); Ids.add(Id); ObjectDO lastByParam = testMapper.getLastByParam(userId, Ids, null); if (lastByParam != null){ Id = lastByParam.getId(); }
The solution is to re new a collection
Read More:
- android Caused by: java.util.ConcurrentModificationException
- About the error querying database. Cause: java.lang.nullpointerexception reported in mybatis
- Error querying database.Cause:java.sql.SQLSyntaxErrorException:ORA-00911:invalid character
- How to Solve mybatis returns null when querying Oracle database with char type field
- Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communicat
- java.util.Collections.max() [How to Use]
- java.lang.NoSuchMethodError: org.json.JSONObject.put(Java/lang/String; Java/util/Collection;) “209151;”
- solve java.util.prefs . backingstoreexception error
- No converter found capable of converting from type [java.lang.String] to type [java.util.Map<java.la
- Failed to convert value of type ‘java.lang.String‘ to required type ‘java.util.Date‘;
- errorCode:9015,errorMsg:cn.bmob.v3.util.BmobContentProvider.updateProvider(BmobContentProvider.java:
- An error is reported when kettle connects Oracle database and MySQL database
- How to solve MySQL error 1049 (42000): unknown database ‘database’
- Spring boot thymeleaf crud implements simple functions of adding, deleting, modifying and querying
- java.lang.ClassNotFoundException : com.mysql.jdbc . driver project cannot connect to database, exception, lack of MySQL driver
- Solve the database connection failure of Discuz! Database error (1045) notconnect Forum
- 1716438 – Error :” Failed to load database information Details: The Database connector crdb_bwquery.
- Mybatis database error java.sql.SQLException : Error setting driver on UnpooledDataSource. Caus
- The connection pool of SSM project database cannot be connected. The project can run normally and the database cannot be connected
- Error about XX error 1 querying major version