java.lang.VerifyError: Bad type on operand stack Exception Details: Location: com/basistech/rlije/osgi/impl/RliServiceFactory$RliComponentFactory.createComponent(Ljava/io/InputStream;)Lcom/basistech/rosette/osgi/RosetteComponent; @27: invokevirtual Reason: Type 'com/basistech/rosette/dm/EnumModule' (current frame, stack[1]) is not assignable to 'com/fasterxml/jackson/databind/Module' Current Frame: bci: @27 flags: { } locals: { 'com/basistech/rlije/osgi/impl/RliServiceFactory$RliComponentFactory', 'java/io/InputStream', top, 'com/fasterxml/jackson/databind/ObjectMapper' } stack: { 'com/fasterxml/jackson/databind/ObjectMapper', 'com/basistech/rosette/dm/EnumModule' } Bytecode: 0000000: 2bc6 0039 bb00 0759 bb00 0859 b700 09b7 0000010: 000a 4e2d bb00 0b59 b700 0cb6 000d 572d 0000020: 2b13 000e b600 0fc0 0010 4d2c 2ab4 0004 0000030: b800 11b6 0012 57a7 0012 bb00 1059 2ab4 0000040: 0004 b800 11b7 0013 4da7 000f 4ebb 0015 0000050: 5912 162d b700 17bf 2c2a b400 06b6 0018 0000060: 57bb 0019 592a 2cb7 001a b0 Exception Handler Table: bci [0, 73] => handler: 76 Stackmap Table: same_frame(@58) append_frame(@73,Object[#60]) full_frame(@76,{Object[#61],Object[#62]},{Object[#63]}) append_frame(@88,Object[#60])

felix-users | Benson Margulies | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Same code in bundle and system bundle results in verify error

    felix-users | 2 years ago | Benson Margulies
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: com/basistech/rlije/osgi/impl/RliServiceFactory$RliComponentFactory.createComponent(Ljava/io/InputStream;)Lcom/basistech/rosette/osgi/RosetteComponent; @27: invokevirtual Reason: Type 'com/basistech/rosette/dm/EnumModule' (current frame, stack[1]) is not assignable to 'com/fasterxml/jackson/databind/Module' Current Frame: bci: @27 flags: { } locals: { 'com/basistech/rlije/osgi/impl/RliServiceFactory$RliComponentFactory', 'java/io/InputStream', top, 'com/fasterxml/jackson/databind/ObjectMapper' } stack: { 'com/fasterxml/jackson/databind/ObjectMapper', 'com/basistech/rosette/dm/EnumModule' } Bytecode: 0000000: 2bc6 0039 bb00 0759 bb00 0859 b700 09b7 0000010: 000a 4e2d bb00 0b59 b700 0cb6 000d 572d 0000020: 2b13 000e b600 0fc0 0010 4d2c 2ab4 0004 0000030: b800 11b6 0012 57a7 0012 bb00 1059 2ab4 0000040: 0004 b800 11b7 0013 4da7 000f 4ebb 0015 0000050: 5912 162d b700 17bf 2c2a b400 06b6 0018 0000060: 57bb 0019 592a 2cb7 001a b0 Exception Handler Table: bci [0, 73] => handler: 76 Stackmap Table: same_frame(@58) append_frame(@73,Object[#60]) full_frame(@76,{Object[#61],Object[#62]},{Object[#63]}) append_frame(@88,Object[#60])
  2. 0

    Same code in bundle and system bundle results in verify error

    felix-users | 2 years ago | Benson Margulies
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: com/basistech/rlije/osgi/impl/RliServiceFactory$RliComponentFactory.createComponent(Ljava/io/InputStream;)Lcom/basistech/rosette/osgi/RosetteComponent; @27: invokevirtual Reason: Type 'com/basistech/rosette/dm/EnumModule' (current frame, stack[1]) is not assignable to 'com/fasterxml/jackson/databind/Module' Current Frame: bci: @27 flags: { } locals: { 'com/basistech/rlije/osgi/impl/RliServiceFactory$RliComponentFactory', 'java/io/InputStream', top, 'com/fasterxml/jackson/databind/ObjectMapper' } stack: { 'com/fasterxml/jackson/databind/ObjectMapper', 'com/basistech/rosette/dm/EnumModule' } Bytecode: 0000000: 2bc6 0039 bb00 0759 bb00 0859 b700 09b7 0000010: 000a 4e2d bb00 0b59 b700 0cb6 000d 572d 0000020: 2b13 000e b600 0fc0 0010 4d2c 2ab4 0004 0000030: b800 11b6 0012 57a7 0012 bb00 1059 2ab4 0000040: 0004 b800 11b7 0013 4da7 000f 4ebb 0015 0000050: 5912 162d b700 17bf 2c2a b400 06b6 0018 0000060: 57bb 0019 592a 2cb7 001a b0 Exception Handler Table: bci [0, 73] => handler: 76 Stackmap Table: same_frame(@58) append_frame(@73,Object[#60]) full_frame(@76,{Object[#61],Object[#62]},{Object[#63]}) append_frame(@88,Object[#60])

    Root Cause Analysis

    1. java.lang.VerifyError

      Bad type on operand stack Exception Details: Location: com/basistech/rlije/osgi/impl/RliServiceFactory$RliComponentFactory.createComponent(Ljava/io/InputStream;)Lcom/basistech/rosette/osgi/RosetteComponent; @27: invokevirtual Reason: Type 'com/basistech/rosette/dm/EnumModule' (current frame, stack[1]) is not assignable to 'com/fasterxml/jackson/databind/Module' Current Frame: bci: @27 flags: { } locals: { 'com/basistech/rlije/osgi/impl/RliServiceFactory$RliComponentFactory', 'java/io/InputStream', top, 'com/fasterxml/jackson/databind/ObjectMapper' } stack: { 'com/fasterxml/jackson/databind/ObjectMapper', 'com/basistech/rosette/dm/EnumModule' } Bytecode: 0000000: 2bc6 0039 bb00 0759 bb00 0859 b700 09b7 0000010: 000a 4e2d bb00 0b59 b700 0cb6 000d 572d 0000020: 2b13 000e b600 0fc0 0010 4d2c 2ab4 0004 0000030: b800 11b6 0012 57a7 0012 bb00 1059 2ab4 0000040: 0004 b800 11b7 0013 4da7 000f 4ebb 0015 0000050: 5912 162d b700 17bf 2c2a b400 06b6 0018 0000060: 57bb 0019 592a 2cb7 001a b0 Exception Handler Table: bci [0, 73] => handler: 76 Stackmap Table: same_frame(@58) append_frame(@73,Object[#60]) full_frame(@76,{Object[#61],Object[#62]},{Object[#63]}) append_frame(@88,Object[#60])

      at com.basistech.rlije.osgi.impl.RliServiceFactory.factory()
    2. com.basistech.rlije
      RliServiceFactory$1.createFactory
      1. com.basistech.rlije.osgi.impl.RliServiceFactory.factory(RliServiceFactory.java:174)
      2. com.basistech.rlije.osgi.impl.RliServiceFactory.access$000(RliServiceFactory.java:53)
      3. com.basistech.rlije.osgi.impl.RliServiceFactory$1.createFactory(RliServiceFactory.java:92)
      3 frames
    3. com.basistech.osgi
      RosetteOsgi.main
      1. com.basistech.osgi.tools.AnnotateCommand.run(AnnotateCommand.java:112)
      2. com.basistech.osgi.tools.Subcommand.perform(Subcommand.java:47)
      3. com.basistech.osgi.tools.RosetteOsgi.doMain(RosetteOsgi.java:168)
      4. com.basistech.osgi.tools.RosetteOsgi.main(RosetteOsgi.java:118)
      4 frames