-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
今天从pagehelper.version 1.4.7 升级到 pagehelper.version2.1.0 出现的问题 #171
Comments
看一下依赖的jsqlparser是不是4.7。。如果使用4.5,可以修改依赖: <dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>6.1.0</version>
<exclusions>
<exclusion>
<groupId>com.github.jsqlparser</groupId>
<artifactId>jsqlparser</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>sqlparser4.5</artifactId>
<version>6.1.0</version>
</dependency> |
这样排除后 还是不行 |
6.0.0 版本都没有这个方法 |
你项目运行时依赖的jsqlparser版本是什么? |
4.6的版本 |
同样的问题,项目里边jsqlparser是4.6的 |
这样可以换成2.1.0的版本就不行,我的是springboot2.6.13 |
@zhouwei520 我也碰到了一样的报错异常 pagehelper/Mybatis-PageHelper#814 |
}
|
@focuseyes360 也可以这样,在
|
今天从<pagehelper.version> 1.4.7 升级到 <pagehelper.version>2.1.0</pagehelper.version>
springboot以前的版本 没有变动
org.springframework.boot
spring-boot-starter-parent
3.0.13
重新运行出现 以下的错误信息
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration': Bad return type
Exception Details:
Location:
com/github/pagehelper/parser/defaults/DefaultCountSqlParser.sqlToCount(Lnet/sf/jsqlparser/statement/select/Select;Ljava/lang/String;)Lnet/sf/jsqlparser/statement/select/Select; @149: areturn
Reason:
Type 'net/sf/jsqlparser/statement/select/PlainSelect' (current frame, stack[0]) is not assignable to 'net/sf/jsqlparser/statement/select/Select' (from method signature)
Current Frame:
bci: @149
flags: { }
locals: { 'com/github/pagehelper/parser/defaults/DefaultCountSqlParser', 'net/sf/jsqlparser/statement/select/Select', 'java/lang/String', 'java/util/List', 'net/sf/jsqlparser/statement/select/PlainSelect', 'net/sf/jsqlparser/statement/select/ParenthesedSelect' }
stack: { 'net/sf/jsqlparser/statement/select/PlainSelect' }
Bytecode:
0000000: bb00 2959 b700 2a4e 2dbb 002b 59bb 002c
0000010: 59bb 001f 59b7 0020 122d b600 212c b600
0000020: 2112 2eb6 0021 b600 22b7 002f b700 30b9
0000030: 0031 0200 572b c100 1599 0018 2a2b c000
0000040: 15b6 0032 9900 0d2b c000 152d b600 332b
0000050: b0bb 0015 59b7 0034 3a04 bb00 3559 b700
0000060: 363a 0519 052b b600 3719 05b2 0038 b600
0000070: 3919 0419 05b6 003a 1904 2db6 0033 2bb6
0000080: 0011 c600 1119 042b b600 11b6 003b 2b01
0000090: b600 3c19 04b0
Stackmap Table:
append_frame(@81,Object[#169])
append_frame(@147,Object[#170],Object[#171])
Caused by: java.lang.VerifyError: Bad return type
Exception Details:
Location:
com/github/pagehelper/parser/defaults/DefaultCountSqlParser.sqlToCount(Lnet/sf/jsqlparser/statement/select/Select;Ljava/lang/String;)Lnet/sf/jsqlparser/statement/select/Select; @149: areturn
Reason:
Type 'net/sf/jsqlparser/statement/select/PlainSelect' (current frame, stack[0]) is not assignable to 'net/sf/jsqlparser/statement/select/Select' (from method signature)
Current Frame:
bci: @149
flags: { }
locals: { 'com/github/pagehelper/parser/defaults/DefaultCountSqlParser', 'net/sf/jsqlparser/statement/select/Select', 'java/lang/String', 'java/util/List', 'net/sf/jsqlparser/statement/select/PlainSelect', 'net/sf/jsqlparser/statement/select/ParenthesedSelect' }
stack: { 'net/sf/jsqlparser/statement/select/PlainSelect' }
Bytecode:
0000000: bb00 2959 b700 2a4e 2dbb 002b 59bb 002c
0000010: 59bb 001f 59b7 0020 122d b600 212c b600
0000020: 2112 2eb6 0021 b600 22b7 002f b700 30b9
0000030: 0031 0200 572b c100 1599 0018 2a2b c000
0000040: 15b6 0032 9900 0d2b c000 152d b600 332b
0000050: b0bb 0015 59b7 0034 3a04 bb00 3559 b700
0000060: 363a 0519 052b b600 3719 05b2 0038 b600
0000070: 3919 0419 05b6 003a 1904 2db6 0033 2bb6
0000080: 0011 c600 1119 042b b600 11b6 003b 2b01
0000090: b600 3c19 04b0
Stackmap Table:
append_frame(@81,Object[#169])
append_frame(@147,Object[#170],Object[#171])
把版本将至
<pagehelper.version>2.0.0</pagehelper.version> 运行暂时没有发现问题
The text was updated successfully, but these errors were encountered: