Skip to content
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

springboot3+jdk17 未适配完成 #6287

Closed
lzzkey opened this issue Jun 26, 2024 · 0 comments
Closed

springboot3+jdk17 未适配完成 #6287

lzzkey opened this issue Jun 26, 2024 · 0 comments

Comments

@lzzkey
Copy link

lzzkey commented Jun 26, 2024

当前使用版本
springboot 3.0.4
mybatis-plus 3.5.7
当前环境信息
例如: Java17 + Mysql5.7

描述bug现象
springboot3 + mybatis-plus 3.5.7 ,启动报错

jvm 启动加入 --add-opens java.base/java.lang.reflect=ALL-UNNAMED 才能正常启动
提供问题复现步骤

提供完整堆栈日志(可选)

Caused by: org.apache.ibatis.exceptions.PersistenceException:

Error updating database. Cause: java.lang.reflect.InaccessibleObjectException: Unable to make field protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h accessible: module java.base does not "opens java.lang.reflect" to unnamed module @7bb58ca3

The error may exist in file [/Users/lzzkey/DevProject/Project/JavaProject/Yz/db/target/classes/com/gzyz/yz/mysql/system/dao/model/SystemPermissionMapper.xml]

The error may involve defaultParameterMap

The error occurred while setting parameters

SQL: delete from system_permission where PERMISSION_CODE = ? AND CREATE_TYPE = 0

Cause: java.lang.reflect.InaccessibleObjectException: Unable to make field protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h accessible: module java.base does not "opens java.lang.reflect" to unnamed module @7bb58ca3

at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:199)
at org.apache.ibatis.session.defaults.DefaultSqlSession.delete(DefaultSqlSession.java:212)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:425)
... 162 more

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

@lzzkey lzzkey closed this as completed Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant