Skip to content

[Bug] Bug title 使用jdk17启动mqcontroller报错 #10612

Description

@qianduoduo188

Before Creating the Bug Report

  • I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment

本地虚拟机:centos9
java环境jdk17

RocketMQ version

mq版本:5.5.0

JDK Version

BellSoft jdk17

Describe the Bug

启动mqcontroller报错
java.lang.reflect.InaccessibleObjectException: Unable to make field private java.lang.String java.lang.StackTraceElement.classLoaderName accessible: module java.base does not "opens java.lang" to unnamed module @32993f6f
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
at com.caucho.hessian.io.JavaDeserializer.getFieldMap(JavaDeserializer.java:329)
at com.caucho.hessian.io.JavaDeserializer.(JavaDeserializer.java:97)
at com.caucho.hessian.io.StackTraceElementDeserializer.(StackTraceElementDeserializer.java:57)
at com.caucho.hessian.io.SerializerFactory.(SerializerFactory.java:589)
at org.apache.rocketmq.controller.impl.manager.ReplicasInfoManager.(ReplicasInfoManager.java:79)
at org.apache.rocketmq.controller.impl.DLedgerController.(DLedgerController.java:132)
at org.apache.rocketmq.controller.ControllerManager.initialize(ControllerManager.java:122)
at org.apache.rocketmq.controller.ControllerStartup.start(ControllerStartup.java:134)
at org.apache.rocketmq.controller.ControllerStartup.main0(ControllerStartup.java:56)
at org.apache.rocketmq.controller.ControllerStartup.main(ControllerStartup.java:49)

Steps to Reproduce

使用bellsoft启动的mqcontroller

What Did You Expect to See?

解决方案

What Did You See Instead?

xx

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions