java.lang.VerifyError: Bad type on operand stack Exception Details: Location: com/amazonaws/services/ec2/AmazonEC2Client.startInstances(Lcom/amazonaws/services/ec2/model/StartInstancesRequest;)Lcom/amazonaws/services/ec2/model/StartInstancesResult; @2: invokevirtual Reason: Type 'com/amazonaws/services/ec2/model/StartInstancesRequest' (current frame, stack[1]) is not assignable to 'com/amazonaws/AmazonWebServiceRequest' Current Frame: bci: @2 flags: { } locals: { 'com/amazonaws/services/ec2/AmazonEC2Client', 'com/amazonaws/services/ec2/model/StartInstancesRequest' } stack: { 'com/amazonaws/services/ec2/AmazonEC2Client', 'com/amazonaws/services/ec2/model/StartInstancesRequest' } Bytecode: 0000000: 2a2b b600 1e4d 2cb6 001f 4e2d b200 20b6 0000010: 0021 013a 0401 3a05 2db2 0022 b600 21bb 0000020: 02b6 59b7 02b7 2a2b b700 25c0 02b8 b602 0000030: b93a 0419 042d b900 2802 002d b200 22b6 0000040: 0029 a700 0f3a 062d b200 22b6 0029 1906 0000050: bf2a 1904 bb02 ba59 b702 bb2c b700 2a3a 0000060: 0519 05b6 0032 c002 bc3a 062a 2d19 0419 0000070: 05b6 002b 1906 b03a 072a 2d19 0419 05b6 0000080: 002b 1907 bf Exception Handler Table: bci [31, 59] => handler: 69 bci [69, 71] => handler: 69 bci [24, 107] => handler: 119 bci [119, 121] => handler: 119 Stackmap Table: full_frame(@69,{Object[#1319],Object[#2045],Object[#1321],Object[#1322],Object[#1323],Object[#1334]},{Object[#1324]}) same_frame(@81) same_locals_1_stack_item_frame(@119,Object[#1324])

Coderanch | arushi tomar | 1 year ago
  1. 0

    using AWS APIs - Exception in thread "main" java.lang.VerifyError: Bad type on operand stack

    Coderanch | 1 year ago | arushi tomar
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: com/amazonaws/services/ec2/AmazonEC2Client.startInstances(Lcom/amazonaws/services/ec2/model/StartInstancesRequest;)Lcom/amazonaws/services/ec2/model/StartInstancesResult; @2: invokevirtual Reason: Type 'com/amazonaws/services/ec2/model/StartInstancesRequest' (current frame, stack[1]) is not assignable to 'com/amazonaws/AmazonWebServiceRequest' Current Frame: bci: @2 flags: { } locals: { 'com/amazonaws/services/ec2/AmazonEC2Client', 'com/amazonaws/services/ec2/model/StartInstancesRequest' } stack: { 'com/amazonaws/services/ec2/AmazonEC2Client', 'com/amazonaws/services/ec2/model/StartInstancesRequest' } Bytecode: 0000000: 2a2b b600 1e4d 2cb6 001f 4e2d b200 20b6 0000010: 0021 013a 0401 3a05 2db2 0022 b600 21bb 0000020: 02b6 59b7 02b7 2a2b b700 25c0 02b8 b602 0000030: b93a 0419 042d b900 2802 002d b200 22b6 0000040: 0029 a700 0f3a 062d b200 22b6 0029 1906 0000050: bf2a 1904 bb02 ba59 b702 bb2c b700 2a3a 0000060: 0519 05b6 0032 c002 bc3a 062a 2d19 0419 0000070: 05b6 002b 1906 b03a 072a 2d19 0419 05b6 0000080: 002b 1907 bf Exception Handler Table: bci [31, 59] => handler: 69 bci [69, 71] => handler: 69 bci [24, 107] => handler: 119 bci [119, 121] => handler: 119 Stackmap Table: full_frame(@69,{Object[#1319],Object[#2045],Object[#1321],Object[#1322],Object[#1323],Object[#1334]},{Object[#1324]}) same_frame(@81) same_locals_1_stack_item_frame(@119,Object[#1324])
  2. 0

    using AWS APIs - Exception in thread main java.lang.VerifyError: Bad type on operand stack (Java in General forum at JavaRanch)

    coderanch.com | 1 year ago
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: com/amazonaws/services/ec2/AmazonEC2Client.startInstances(Lcom/amazonaws/services/ec2/model/StartInstancesRequest;)Lcom/amazonaws/services/ec2/model/StartInstancesResult; @2: invokevirtual Reason: Type 'com/amazonaws/services/ec2/model/StartInstancesRequest' (current frame, stack[1]) is not assignable to 'com/amazonaws/AmazonWebServiceRequest' Current Frame: bci: @2 flags: { } locals: { 'com/amazonaws/services/ec2/AmazonEC2Client', 'com/amazonaws/services/ec2/model/StartInstancesRequest' } stack: { 'com/amazonaws/services/ec2/AmazonEC2Client', 'com/amazonaws/services/ec2/model/StartInstancesRequest' } Bytecode: 0000000: 2a2b b600 1e4d 2cb6 001f 4e2d b200 20b6 0000010: 0021 013a 0401 3a05 2db2 0022 b600 21bb 0000020: 02b6 59b7 02b7 2a2b b700 25c0 02b8 b602 0000030: b93a 0419 042d b900 2802 002d b200 22b6 0000040: 0029 a700 0f3a 062d b200 22b6 0029 1906 0000050: bf2a 1904 bb02 ba59 b702 bb2c b700 2a3a 0000060: 0519 05b6 0032 c002 bc3a 062a 2d19 0419 0000070: 05b6 002b 1906 b03a 072a 2d19 0419 05b6 0000080: 002b 1907 bf Exception Handler Table: bci [31, 59] => handler: 69 bci [69, 71] => handler: 69 bci [24, 107] => handler: 119 bci [119, 121] => handler: 119 Stackmap Table: full_frame(@69,{Object[#1319],Object[#2045],Object[#1321],Object[#1322],Object[#1323],Object[#1334]},{Object[#1324]}) same_frame(@81) same_locals_1_stack_item_frame(@119,Object[#1324])
  3. 0

    using AWS APIs - Exception in thread main java.lang.VerifyError: Bad type on operand stack (Java in General forum at JavaRanch)

    coderanch.com | 1 year ago
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: com/amazonaws/services/ec2/AmazonEC2Client.startInstances(Lcom/amazonaws/services/ec2/model/StartInstancesRequest;)Lcom/amazonaws/services/ec2/model/StartInstancesResult; @2: invokevirtual Reason: Type 'com/amazonaws/services/ec2/model/StartInstancesRequest' (current frame, stack[1]) is not assignable to 'com/amazonaws/AmazonWebServiceRequest' Current Frame: bci: @2 flags: { } locals: { 'com/amazonaws/services/ec2/AmazonEC2Client', 'com/amazonaws/services/ec2/model/StartInstancesRequest' } stack: { 'com/amazonaws/services/ec2/AmazonEC2Client', 'com/amazonaws/services/ec2/model/StartInstancesRequest' } Bytecode: 0000000: 2a2b b600 1e4d 2cb6 001f 4e2d b200 20b6 0000010: 0021 013a 0401 3a05 2db2 0022 b600 21bb 0000020: 02b6 59b7 02b7 2a2b b700 25c0 02b8 b602 0000030: b93a 0419 042d b900 2802 002d b200 22b6 0000040: 0029 a700 0f3a 062d b200 22b6 0029 1906 0000050: bf2a 1904 bb02 ba59 b702 bb2c b700 2a3a 0000060: 0519 05b6 0032 c002 bc3a 062a 2d19 0419 0000070: 05b6 002b 1906 b03a 072a 2d19 0419 05b6 0000080: 002b 1907 bf Exception Handler Table: bci [31, 59] => handler: 69 bci [69, 71] => handler: 69 bci [24, 107] => handler: 119 bci [119, 121] => handler: 119 Stackmap Table: full_frame(@69,{Object[#1319],Object[#2045],Object[#1321],Object[#1322],Object[#1323],Object[#1334]},{Object[#1324]}) same_frame(@81) same_locals_1_stack_item_frame(@119,Object[#1324])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception in thread "main" java.lang.VerifyError: Bad local variable type

    Eclipse Bugzilla | 2 years ago | smolnik
    java.lang.VerifyError: Bad local variable type Exception Details: Location: net/xyz/control/dispatcher/Abc.lambda$0(Ljava/util/List;)V @11: aload_2 Reason: Type top (current frame, locals[2]) is not assignable to reference type Current Frame: bci: @11 flags: { } locals: { 'net/control/dispatcher/Abc', 'java/util/List' } stack: { 'com/amazonaws/services/ec2/AmazonEC2', 'com/amazonaws/services/ec2/model/TerminateInstancesRequest' } Bytecode: 0000000: 2ab4 0038 bb00 3a59 b700 3c2c b600 3db9 0000010: 0041 0200 b1
  6. 0

    Bug 444803 – Exception in thread "main" java.lang.VerifyError: Bad local variable type

    eclipse.org | 5 months ago
    java.lang.VerifyError: Bad local variable type Exception Details: Location: net/xyz/control/dispatcher/Abc.lambda$0(Ljava/util/List;)V @11: aload_2 Reason: Type top (current frame, locals[2]) is not assignable to reference type Current Frame: bci: @11 flags: { } locals: { 'net/control/dispatcher/Abc', 'java/util/List' } stack: { 'com/amazonaws/services/ec2/AmazonEC2', 'com/amazonaws/services/ec2/model/TerminateInstancesRequest' } Bytecode: 0000000: 2ab4 0038 bb00 3a59 b700 3c2c b600 3db9 0000010: 0041 0200 b1

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.VerifyError

      Bad type on operand stack Exception Details: Location: com/amazonaws/services/ec2/AmazonEC2Client.startInstances(Lcom/amazonaws/services/ec2/model/StartInstancesRequest;)Lcom/amazonaws/services/ec2/model/StartInstancesResult; @2: invokevirtual Reason: Type 'com/amazonaws/services/ec2/model/StartInstancesRequest' (current frame, stack[1]) is not assignable to 'com/amazonaws/AmazonWebServiceRequest' Current Frame: bci: @2 flags: { } locals: { 'com/amazonaws/services/ec2/AmazonEC2Client', 'com/amazonaws/services/ec2/model/StartInstancesRequest' } stack: { 'com/amazonaws/services/ec2/AmazonEC2Client', 'com/amazonaws/services/ec2/model/StartInstancesRequest' } Bytecode: 0000000: 2a2b b600 1e4d 2cb6 001f 4e2d b200 20b6 0000010: 0021 013a 0401 3a05 2db2 0022 b600 21bb 0000020: 02b6 59b7 02b7 2a2b b700 25c0 02b8 b602 0000030: b93a 0419 042d b900 2802 002d b200 22b6 0000040: 0029 a700 0f3a 062d b200 22b6 0029 1906 0000050: bf2a 1904 bb02 ba59 b702 bb2c b700 2a3a 0000060: 0519 05b6 0032 c002 bc3a 062a 2d19 0419 0000070: 05b6 002b 1906 b03a 072a 2d19 0419 05b6 0000080: 002b 1907 bf Exception Handler Table: bci [31, 59] => handler: 69 bci [69, 71] => handler: 69 bci [24, 107] => handler: 119 bci [119, 121] => handler: 119 Stackmap Table: full_frame(@69,{Object[#1319],Object[#2045],Object[#1321],Object[#1322],Object[#1323],Object[#1334]},{Object[#1324]}) same_frame(@81) same_locals_1_stack_item_frame(@119,Object[#1324])

      at com.amazonaws.services.ec2.model.StartInstancesRequest.authentication()
    2. AWS Java SDK for Amazon EC2
      StartInstancesRequest.main
      1. com.amazonaws.services.ec2.model.StartInstancesRequest.authentication(StartInstancesRequest.java:38)
      2. com.amazonaws.services.ec2.model.StartInstancesRequest.main(StartInstancesRequest.java:45)
      2 frames