SAP Knowledge Base Article - Preview

3224366 - Exception when executing application mapping program. Stack map does not match the one at exception handler 237

Symptom

You are using UDF library with a message mapping but facing following errors during runtime.

Transmitting the message using connection AFW failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error encountered while executing mapping: com.sap.aii.af.service.mapping.MappingException: Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_QRRequest_to_QRResponse_; Details: com.sap.aii.mappingtool.tf7.MessageMappingException; Runtime exception when processing target-field mapping /ns0:TCITicketBaiDTO/ns0:QRResponseDTO/qrBase64Image; root message: Exception:[java.lang.VerifyError: Stack map does not match the one at exception handler 237
Exception Details:
Location:
com/google/zxing/qrcode/encoder/MatrixUtil.embedDataBits(Lcom/google/zxing/common/BitArray;ILcom/google/zxing/qrcode/encoder/ByteMatrix;)V @237: dup
Reason:
Type top (current frame, locals[1]) is not assignable to integer (stack map, locals[1])
Current Frame:
.....

You can find following stack from XPI Inspector trace.

RuntimeException during appliction Java mapping com/sap/xi/tf/_<MappingName>_
Thrown:
com.sap.aii.mappingtool.tf7.MessageMappingException: Runtime exception when processing target-field mapping /ns0:<FieldName>; root message: Exception:[java.lang.VerifyError: Stack map does not match the one at exception handler 397
Exception Details:
  Location:
    com/google/zxing/qrcode/encoder/Encoder.interleaveWithECBytes(Lcom/google/zxing/common/BitArray;III)Lcom/google/zxing/common/BitArray; @397: dup
  Reason:
    Type top (current frame, locals[0]) is not assignable to 'com/google/zxing/common/BitArray' (stack map, locals[0])
  Current Frame:
    bci: @164
    flags: { }
    locals: { top, integer, integer, top, integer, integer, integer, 'java/util/ArrayList', top, top, top, top, top, top, 'com/wily/introscope/agent/trace/IMethodTracer' }
    stack: { 'java/lang/Throwable' }
  Stackmap Frame:
    bci: @397
    flags: { }
    locals: { 'com/google/zxing/common/BitArray', integer, integer, integer, top, top, top, top, top, top, top, top, top, top, 'com/wily/introscope/agent/trace/IMethodTracer' }
    stack: { 'java/lang/Throwable' }
  Bytecode:
    0000000: 1302 58b8 023c 3a0e 2ab6 004f 1c9f 000d
    0000010: bb00 1e59 1216 b700 48bf 0336 0403 3605
    0000020: 0336 06bb 0036 591d b700 943a 0703 3608
    0000030: 1508 1da2 0071 04bc 0a3a 0904 bc0a 3a0a
    0000040: 1b1c 1d15 0819 0919 0ab8 0072 1909 032e
    0000050: 5936 0bbc 083a 0c2a 1504 0678 190c 0315
    0000060: 0bb6 0050 190c 190a 032e b800 703a 0d19
    0000070: 07bb 0027 5919 0c19 0db7 005e b900 9702
    0000080: 0057 1505 150b b800 8636 0515 0619 0dbe
    0000090: b800 8636 0615 0419 0903 2e60 3604 8408
    00000a0: 01a7 ff8f 1c15 049f 000d bb00 1e59 120d
    00000b0: b700 48bf bb00 1f59 b700 4a3a 0803 3609
    00000c0: 1509 1505 a200 4219 07b9 0098 0100 3a0a
    00000d0: 190a b900 9901 0099 0029 190a b900 9a01
    00000e0: 00c0 0027 b600 5f3a 0c15 0919 0cbe a200
    00000f0: 0f19 0819 0c15 0933 1008 b600 4da7 ffd3
    0000100: 8409 01a7 ffbd 0336 0915 0915 06a2 0042
    0000110: 1907 b900 9801 003a 0a19 0ab9 0099 0100
    0000120: 9900 2919 0ab9 009a 0100 c000 27b6 0060
    0000130: 3a0c 1509 190c bea2 000f 1908 190c 1509
    0000140: 3310 08b6 004d a7ff d384 0901 a7ff bd1b
    0000150: 1908 b600 4f9f 002d bb00 1e59 bb00 3559
    0000160: 1212 b700 901b b600 9112 08b6 0092 1908
    0000170: b600 4fb6 0091 1209 b600 92b6 0093 b700
    0000180: 48bf 1908 190e b902 4201 0000 b059 190e
    0000190: 5fb9 0236 0200 190e b902 4201 00bf     
  Exception Handler Table:
    bci [8, 397] => handler: 397
  Stackmap Table:
    full_frame(@26,{Object[#602],Integer,Integer,Integer,Top,Top,Top,Top,Top,Top,Top,Top,Top,Top,Object[#574]},{})
    full_frame(@48,{Object[#31],Integer,Integer,Integer,Integer,Integer,Integer,Object[#54],Integer,Top,Top,Top,Top,Top,Object[#574]},{})
    full_frame(@164,{Top,Integer,Integer,Top,Integer,Integer,Integer,Object[#54],Top,Top,Top,Top,Top,Top,Object[#574]},{})
    full_frame(@180,{Top,Integer,Top,Top,Top,Integer,Integer,Object[#54],Top,Top,Top,Top,Top,Top,Object[#574]},{})
    full_frame(@192,{Top,Integer,Top,Top,Top,Integer,Integer,Object[#54],Object[#31],Integer,Top,Top,Top,Top,Object[#574]},{})
    full_frame(@208,{Top,Integer,Top,Top,Top,Integer,Integer,Object[#54],Object[#31],Integer,Object[#56],Top,Top,Top,Object[#574]},{})
    same_frame(@253)
    full_frame(@256,{Top,Integer,Top,Top,Top,Integer,Integer,Object[#54],Object[#31],Integer,Top,Top,Top,Top,Object[#574]},{})
    full_frame(@262,{Top,Integer,Top,Top,Top,Top,Integer,Object[#54],Object[#31],Top,Top,Top,Top,Top,Object[#574]},{})
    full_frame(@265,{Top,Integer,Top,Top,Top,Top,Integer,Object[#54],Object[#31],Integer,Top,Top,Top,Top,Object[#574]},{})
    full_frame(@281,{Top,Integer,Top,Top,Top,Top,Integer,Object[#54],Object[#31],Integer,Object[#56],Top,Top,Top,Object[#574]},{})
    same_frame(@326)
    full_frame(@329,{Top,Integer,Top,Top,Top,Top,Integer,Object[#54],Object[#31],Integer,Top,Top,Top,Top,Object[#574]},{})
    full_frame(@335,{Top,Integer,Top,Top,Top,Top,Top,Top,Object[#31],Top,Top,Top,Top,Top,Object[#574]},{})
    full_frame(@386,{Top,Top,Top,Top,Top,Top,Top,Top,Object[#31],Top,Top,Top,Top,Top,Object[#574]},{})
    full_frame(@397,{Object[#602],Integer,Integer,Integer,Top,Top,Top,Top,Top,Top,Top,Top,Top,Top,Object[#574]},{Object[#595]})
] in class com.sap.xi.tf._<MappingName>_ method createQRB64[https://XXX&cr=112, 300, 300, com.sap.aii.mappingtool.tf7.rt.Context@7476baf0]
at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:521)
at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:461)
at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:461)
at com.sap.aii.mappingtool.tf7.AMappingProgram.start(AMappingProgram.java:567)
...

You have done CPACache refresh but still not resolved this issue.


Read more...

Environment

  • SAP NetWeaver
  • SAP Process Integration

Product

SAP NetWeaver all versions ; SAP Process Integration all versions

Keywords

Exception when executing application mapping program, Stack map does not match the one at exception handler 237, Process Integration, PI, Process Orchestration, PO, NetWeaver, XI, AEX, Runtime exception when processing target-field mapping , KBA , BC-XI-IBC-MAP , Mapping , BC-XI-IBD-MAP , Integration Builder Design - Mapping , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.