baomidou / mybatis-plus

An powerful enhanced toolkit of MyBatis for simplify development
https://baomidou.com
Apache License 2.0
16.33k stars 4.3k forks source link

Java Flight Recorder finds many exceptions thrown by Mybatis-Plus, e.g. "java.lang.NoSuchMethodError" #6285

Closed YangyangLi-dev closed 3 months ago

YangyangLi-dev commented 3 months ago

当前使用版本

com.baomidou mybatis-plus-boot-starter 3.5.7

当前环境信息

Java8 + PostgreSQL 描述bug现象 146 errors were thrown in total. The most common error was ''java.lang.NoSuchMethodError'', which was thrown 81 times. Investigate the thrown errors to see if they can be avoided. Errors indicate that something went wrong with the code execution and should never be used for flow control.

MP-errors found by flight recorder

提供问题复现步骤 Run application and start java flight recorder, generate .jfr file then use java mission control to analyse .jfr file 提供完整堆栈日志(可选)

提供问题复现工程(可选) 请尽量提供复现工程,减少大家排错的时间.

nieqiurong commented 3 months ago

错误堆栈呢?

YangyangLi-dev commented 3 months ago

错误堆栈呢?

Message Count java.lang.Object.insertOrUpdate(Ljava/lang/Object;)

java.lang.Object.selectPage(Lcom/baomidou/mybatisplus/core/metadata/IPage;Lcom/baomidou/mybatisplus/core/conditions/Wrapper;)Lcom/baomidou/mybatisplus/core/metadata/IPage;

VampireAchao commented 3 months ago

Please provide a Minimimal Reproducable Example, preferable as a Github repository. Make sure to include the database, either as an in memory database or if that is not possible using Testcontainers.

VampireAchao commented 3 months ago

可以尝试检查依赖是否冲突

另外请给出复现Demo,若无问题,我将在一段时间(也许几天)后关闭本issue