io.netty.util.internal.PlatformDependent0 (261)- direct buffer constructor: unavailable

在SpringBoot2应用中集成Log4j2时,遇到一个debug级别的错误,涉及io.netty.util.internal.PlatformDependent0的直接缓冲构造函数不可用。错误源于Reflective setAccessible(true)被禁用。通过添加虚拟机参数`--add-opens java.base/jdk.internal.misc=ALL-UNNAMED`和`-Dio.netty.tryReflectionSetAccessible=true`来解决此问题,确保在CentOS环境下使用nohup命令启动时不受影响。
摘要由CSDN通过智能技术生成

DEBUG [restartedMain] io.netty.util.internal.PlatformDependent0 (261)- direct buffer constructor: unavailable
java.lang.UnsupportedOperationException: Reflective setAccessible(true) disabled
at io.netty.util.internal.ReflectionUtil.trySetAccessible(ReflectionUtil.java:31)
at io.netty.util.internal.PlatformDependent0 4. r u n ( P l a t f o r m D e p e n d e n t 0. j a v a : 233 ) a t j a v a . b a s e / j a v a . s e c u r i t y . A c c e s s C o n t r o l l e r . d o P r i v i l e g e d ( N a t i v e M e t h o d ) a t i o . n e t t y . u t i l . i n t e r n a l . P l a t f o r m D e p e n d e n t 0. < c l i n i t > ( P l a t f o r m D e p e n d e n t 0. j a v a : 227 ) a t i o . n e t t y . u t i l . i n t e r n a l . P l a t f o r m D e p e n d e n t . i s A n d r o i d ( P l a t f o r m D e p e n d e n t . j a v a : 289 ) a t i o . n e t t y . u t i l . i n t e r n a l . P l a t f o r m D e p e n d e n t . < c l i n i t > ( P l a t f o r m D e p e n d e n t . j a v a : 92 ) a t i o . n e t t y . u t i l . H a s h e d W h e e l T i m e r . < i n i t > ( H a s h e d W h e e l T i m e r . j a v a : 109 ) a t i o . n e t t y . u t i l . H a s h e d W h e e l T i m e r . < i n i t > ( H a s h e d W h e e

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值