windows10环境下kafka运行报错java.lang.VerifyError: Uninitialized object exists on backward branch 86

windows10环境下kafka运行报错java.lang.VerifyError: Uninitialized object exists on backward branch 86

D:\Software\kafka\kafka_2.13-2.8.1\bin\windows>kafka-server-start.bat ..\..\config\server.properties
[2023-04-10 09:45:03,391] INFO Registered kafka:type=kafka.Log4jController MBean (kafka.utils.Log4jControllerRegistration$)
[2023-04-10 09:45:04,224] ERROR Exiting Kafka due to fatal exception (kafka.Kafka$)
java.lang.VerifyError: Uninitialized object exists on backward branch 86
Exception Details:
  Location:
    scala/util/matching/Regex.unapplySeq(Lscala/util/matching/Regex$Match;)Lscala/Option; @133: goto
  Reason:
    Error exists in the bytecode
  Bytecode:
    0x0000000: 2bb6 00b5 c700 07b2 0084 b02b b600 b8b6
    0x0000010: 00b9 2ab6 004b 4d59 c700 0b57 2cc6 000d
    0x0000020: a700 7c2c b600 bd99 0075 b200 3757 bb00
    0x0000030: 5559 b200 5ab6 005e 2bb6 00be 3ec7 0005
    0x0000040: 01bf bb00 6459 b700 683a 0419 041d b900
    0x0000050: 6e02 0003 3605 1505 1da2 002f 2b15 0504
    0x0000060: 60b6 00bf 3a08 1908 013a 083a 0719 0701
    0x0000070: 3a07 3a06 1904 1906 b600 7657 013a 0615
    0x0000080: 0504 6036 05a7 ffd1 1904 b900 7a01 00c0
    0x0000090: 007c 013a 0401 3a06 b700 7fb0 2a2b b600
    0x00000a0: b5b6 00c1 b0
  Stackmap Table:
    same_frame(@11)
    full_frame(@35,{Object[#2],Object[#24],Object[#62]},{Object[#62]})
    same_frame(@42)
    full_frame(@66,{Object[#2],Object[#24],Object[#62],Integer},{Uninitialized[#46],Uninitialized[#46]})
    full_frame(@86,{Object[#2],Object[#24],Object[#62],Integer,Object[#100],Integer},{Uninitialized[#46],Uninitialized[#46]})
    full_frame(@136,{Object[#2],Object[#24],Object[#62],Integer,Object[#100],Integer},{Uninitialized[#46],Uninitialized[#46]})
    chop_frame(@156,3)

        at scala.collection.StringOps$.r$extension(StringOps.scala:864)
        at kafka.cluster.EndPoint$.<clinit>(EndPoint.scala:29)
        at kafka.server.Defaults$.<clinit>(KafkaConfig.scala:87)
        at kafka.server.KafkaConfig$.<clinit>(KafkaConfig.scala:1039)
        at kafka.Kafka$.buildServer(Kafka.scala:67)
        at kafka.Kafka$.main(Kafka.scala:87)
        at kafka.Kafka.main(Kafka.scala)

解决方案:提高jdk版本或者降低kafka版本

你可能感兴趣的:(奇奇怪怪的编程问题,kafka,java,scala)