首页 > 其他分享 >kafka启动失败报错Uninitialized object exists on backward branch 193

kafka启动失败报错Uninitialized object exists on backward branch 193

时间:2022-08-31 22:56:05浏览次数:66  
标签:Uninitialized exists scala Object collection kafka 报错 Integer 119

参考:https://www.dandelioncloud.cn/article/details/1511278739240636417

[root@xxxxpcV7-03 bin]# nohup sh -x kafka-server-start.sh ../config/server.properties > ../logs/kafka.out 2>1 &
[2] 3244
[2]+ 退出 1 nohup sh -x kafka-server-start.sh ../config/server.properties > ../logs/kafka.out 2> 1
[root@xxxxpcV7-03 bin]# cat ../logs/kafka.out
[2022-08-31 22:17:02,875] INFO Registered kafka:type=kafka.Log4jController MBean (kafka.utils.Log4jControllerRegistration$)
[2022-08-31 22:17:03,684] ERROR Exiting Kafka due to fatal exception (kafka.Kafka$)
java.lang.VerifyError: Uninitialized object exists on backward branch 193
Exception Details:
Location:
scala/collection/immutable/HashMap$HashTrieMap.split()Lscala/collection/immutable/Seq; @233: goto
Reason:
Error exists in the bytecode
Bytecode:
0000000: 2ab6 0044 04a0 000f bb00 da59 2ab2 00df
0000010: b700 e2b0 2ab6 003e b800 523c 1b04 a401
0000020: 551b 056c 3d2a 1b05 6c2a b600 3eb7 00e4
0000030: 3e2a b600 3e02 1d78 7e36 042a b600 3e02
0000040: 1020 1d64 7c7e 3605 bb00 1c59 b200 e92a
0000050: b600 41c0 00eb b600 efb7 00f2 1cb6 00f6
0000060: 3a06 1906 c600 1a19 06b6 00f9 c000 773a
0000070: 0719 06b6 00fc c000 773a 08a7 000c bb00
0000080: fe59 01b7 0101 bf19 073a 0919 083a 0abb
0000090: 0002 5915 0419 09bb 001c 59b2 00e9 1909
00000a0: c000 ebb6 00ef b700 f203 b801 073a 0e3a
00000b0: 0d03 190d b901 0b01 0019 0e3a 1136 1036
00000c0: 0f15 0f15 109f 0027 150f 0460 1510 190d
00000d0: 150f b901 0e02 00c0 0005 3a17 1911 1917
00000e0: b801 123a 1136 1036 0fa7 ffd8 1911 b801
00000f0: 16b7 0080 3a0b bb00 0259 1505 190a bb00
0000100: 1c59 b200 e919 0ac0 00eb b600 efb7 00f2
0000110: 03b8 0107 3a13 3a12 0319 12b9 010b 0100
0000120: 1913 3a16 3615 3614 1514 1515 9f00 2715
0000130: 1404 6015 1519 1215 14b9 010e 0200 c000
0000140: 053a 1819 1619 18b8 0119 3a16 3615 3614
0000150: a7ff d819 16b8 0116 b700 803a 0cbb 00da
0000160: 5919 0bbb 00da 5919 0cb2 00df b700 e2b7
0000170: 00e2 b02a b600 4103 32b6 011b b0
Stackmap Table:
same_frame(@20)
full_frame(@126,{Object[#2],Integer,Integer,Integer,Integer,Integer,Object[#147]},{})
append_frame(@135,Object[#119],Object[#119])
full_frame(@193,{Object[#2],Integer,Integer,Integer,Integer,Integer,Object[#147],Object[#119],Object[#119],Object[#119],Object[#119],Top,Top,Object[#28],Object[#78],Integer,Integer,Object[#145]},{Uninitialized[#143],Uninitialized[#143],Integer,Object[#119]})
full_frame(@236,{Object[#2],Integer,Integer,Integer,Integer,Integer,Object[#147],Object[#119],Object[#119],Object[#119],Object[#119],Top,Top,Object[#28],Object[#78],Integer,Integer,Object[#145]},{Uninitialized[#143],Uninitialized[#143],Integer,Object[#119]})
full_frame(@296,{Object[#2],Integer,Integer,Integer,Integer,Integer,Object[#147],Object[#119],Object[#119],Object[#119],Object[#119],Object[#2],Top,Object[#28],Object[#78],Integer,Integer,Object[#145],Object[#28],Object[#78],Integer,Integer,Object[#145]},{Uninitialized[#246],Uninitialized[#246],Integer,Object[#119]})
full_frame(@339,{Object[#2],Integer,Integer,Integer,Integer,Integer,Object[#147],Object[#119],Object[#119],Object[#119],Object[#119],Object[#2],Top,Object[#28],Object[#78],Integer,Integer,Object[#145],Object[#28],Object[#78],Integer,Integer,Object[#145]},{Uninitialized[#246],Uninitialized[#246],Integer,Object[#119]})
full_frame(@371,{Object[#2],Integer},{})

at scala.collection.immutable.HashMap$.scala$collection$immutable$HashMap$$makeHashTrieMap(HashMap.scala:340)
at scala.collection.immutable.HashMap$.scala$collection$immutable$HashMap$$makeHashTrieMap(HashMap.scala:344)
at scala.collection.immutable.HashMap$HashMap1.updated0(HashMap.scala:390)
at scala.collection.immutable.HashMap.updated(HashMap.scala:79)
at scala.collection.immutable.Map$Map4.updated(Map.scala:467)
at scala.collection.immutable.Map$Map4.$plus(Map.scala:468)
at scala.collection.immutable.Map$Map4.$plus(Map.scala:430)
at scala.collection.mutable.MapBuilder.$plus$eq(MapBuilder.scala:32)
at scala.collection.mutable.MapBuilder.$plus$eq(MapBuilder.scala:28)
at scala.collection.generic.Growable.$anonfun$$plus$plus$eq$1(Growable.scala:62)
at scala.collection.generic.Growable$$Lambda$6/2092769598.apply(Unknown Source)
at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:38)
at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
at scala.collection.mutable.MapBuilder.$plus$plus$eq(MapBuilder.scala:28)
at scala.collection.generic.GenMapFactory.apply(GenMapFactory.scala:51)
at kafka.server.KafkaConfig$.<init>(KafkaConfig.scala:346)
at kafka.server.KafkaConfig$.<clinit>(KafkaConfig.scala)
at kafka.Kafka$.buildServer(Kafka.scala:67)
at kafka.Kafka$.main(Kafka.scala:87)
at kafka.Kafka.main(Kafka.scala)

报错原因:jdk1.8.0_11版本不支持 

解决办法,升级jdk到jdk1.8最新版本

官网下载新版jdk

[root@xxxxpcV7-03 usr]# tar -zxvf jdk-8u202-linux-x64.tar.gz

配置~/.bash_profile

添加以下内容

export JAVA_HOME=/usr/jdk1.8.0_202
export CLASSPATH=$JAVA_HOME/lib/
export PATH=$PATH:$JAVA_HOME/bin
export PATH JAVA_HOME CLASSPATH

 

[root@xxxxpcV7-03 kafka_2.12-3.2.1]# java -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)

[root@xxxxpcV7-03 kafka_2.12-3.2.1]# jps -l4727 org.apache.zookeeper.server.quorum.QuorumPeerMain
5543 kafka.Kafka
5884 sun.tools.jps.Jps

 

标签:Uninitialized,exists,scala,Object,collection,kafka,报错,Integer,119
From: https://www.cnblogs.com/qsds/p/16644830.html

相关文章