报错背景:
CDH中集成kafka的服务,解决完kafka的jar包报错之后重启,发现这个报错。
报错现象:
java.lang.VerifyError: Instruction type does not match stack map Exception Details: Location: org/eclipse/jetty/servlet/ServletHandler.doStart()V @20: putfield Reason: Type 'org/eclipse/jetty/server/handler/ContextHandler$Context' (current frame, stack[1]) is not assignable to 'org/eclipse/jetty/server/handler/ContextHandler$NoContext' (stack map, stack[1]) Current Frame: bci: @20 flags: { } locals: { 'org/eclipse/jetty/servlet/ServletHandler', 'org/eclipse/jetty/server/handler/ContextHandler$Context' } stack: { 'org/eclipse/jetty/servlet/ServletHandler', 'org/eclipse/jetty/server/handler/ContextHandler$Context' } Stackmap Frame: bci: @20 flags: { } locals: { 'org/eclipse/jetty/servlet/ServletHandler', 'org/eclipse/jetty/server/handler/ContextHandler$Context' } stack: { 'org/eclipse/jetty/servlet/ServletHandler', 'org/eclipse/jetty/server/handler/ContextHandler$NoContext' } Bytecode: 0x0000000: b800 174c 2a2b c700 0dbb 0018 59b7 0019 0x0000010: a700 042b b500 1a2a 2bc7 0007 01a7 0007 0x0000020: 2bb6 001b c000 1cc0 001c b500 1d2a b400 0x0000030: 1dc6 001d 2ab4 001d 1300 1eb6 001f c000 0x0000040: 1e4d 2cc6 000b 2a2c b600 20b5 0021 2ab6 0x0000050: 0022 2ab6 0023 2a12 24b6 0025 c700 3f2a 0x0000060: b400 0a99 0038 b200 01b9 0026 0100 9900 0x0000070: 15b2 0001 1227 04bd 0028 5903 2a53 b900 0x0000080: 2903 002a 1300 2a12 24b6 002b 572a b600 0x0000090: 232a 1224 b600 2504 b600 2c2a b400 0799 0x00000a0: 0089 2ab4 0014 04bb 002d 59b7 002e 532a 0x00000b0: b400 1405 bb00 2d59 b700 2e53 2ab4 0014 0x00000c0: 07bb 002d 59b7 002e 532a b400 1410 08bb 0x00000d0: 002d 59b7 002e 532a b400 1410 10bb 002d 0x00000e0: 59b7 002e 532a b400 1604 bb00 2f59 b700 0x00000f0: 3053 2ab4 0016 05bb 002f 59b7 0030 532a 0x0000100: b400 1607 bb00 2f59 b700 3053 2ab4 0016 0x0000110: 1008 bb00 2f59 b700 3053 2ab4 0016 1010 0x0000120: bb00 2f59 b700 3053 2ab4 001d c700 072a 0x0000130: b600 312a b700 32b1 Stackmap Table: full_frame(@19,{Object[#388],Object[#389]},{Object[#388]}) full_frame(@20,{Object[#388],Object[#389]},{Object[#388],Object[#390]}) same_locals_1_stack_item_frame(@32,Object[#388]) full_frame(@36,{Object[#388],Object[#389]},{Object[#388],Object[#391]}) same_frame(@78) same_frame(@131) same_frame(@155) same_frame_extended(@296) same_frame(@307) at org.eclipse.jetty.servlet.ServletContextHandler.newServletHandler(ServletContextHandler.java:260) at org.eclipse.jetty.servlet.ServletContextHandler.getServletHandler(ServletContextHandler.java:322) at org.eclipse.jetty.servlet.ServletContextHandler.relinkHandlers(ServletContextHandler.java:198) at org.eclipse.jetty.servlet.ServletContextHandler.<init>(ServletContextHandler.java:157) at org.eclipse.jetty.servlet.ServletContextHandler.<init>(ServletContextHandler.java:135) at org.eclipse.jetty.servlet.ServletContextHandler.<init>(ServletContextHandler.java:111) at nl.techop.kafka.KafkaHttpMetricsReporter.setServer(KafkaHttpMetricsReporter.scala:67) at kafka.server.KafkaServerStartable$$anonfun$fromProps$2.apply(KafkaServerStartable.scala:31) at kafka.server.KafkaServerStartable$$anonfun$fromProps$2.apply(KafkaServerStartable.scala:31) at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59) at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48) at kafka.server.KafkaServerStartable$.fromProps(KafkaServerStartable.scala:31) at kafka.Kafka$.main(Kafka.scala:82) at com.cloudera.kafka.wrap.Kafka$.main(Kafka.scala:76) at com.cloudera.kafka.wrap.Kafka.main(Kafka.scala)
报错原因:
报错原因不明,看不懂,没查到相关资料。
报错解决:
不知道怎么解决的,在无数次的重启之后,过了段时间报错自己消失了。