IBM Support

IT44455: COMPILATION OF RESTAPI PROJECT USING 'MQSICREATEBAR' COMMAND ENCOUNTERS SNAKE-PARSING YAML ERROR FOR YAML-TYPE SPECIFICATION

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When executing the "MQSICREATEBAR" command against a project
    involving a RESTAPI and utilizing an OpenAPI specification file
    in YAML format, users may encounter a parsing error related to
    snake-parsing YAML content.
    
    
    "[INFO] [Worker-2: Building] WARN
    io.swaggter.v3.parser.util.DeserializationUtils - Error
    snake-parsing yaml content
    [INFO] java.lang.NoSuchMethodError:
    org/yaml/snakeyaml/constructor/SafeConstructor.<init>()V"
    
    The command execution completes with this warning message and
    the bar file will be generated.
    

Local fix

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    All users of IBM App Connect Enterprise V12 executing
    mqsicreatebar command on RESTAPI applications.
    
    
    Platforms affected:
    MultiPlatform
    
    ****************************************************************
    PROBLEM DESCRIPTION:
    <p>When users execute the mqsicreatebar command on REST API
    projects that include an OpenAPI specification file in YAML
    format, they may encounter an error message saying "Error
    snake-parsing YAML content." Despite this error, a valid BAR
    file will still be generated.
     </p><p>The console error message will appear similar to:</p>
    [Worker-3: Building] WARN
    io.swagger.v3.parser.util.DeserializationUtils - Error
    snake-parsing yaml content java.lang.NoSuchMethodError:
    org/yaml/snakeyaml/constructor/SafeConstructor.<init>()V (loaded
    from file:/C:/Program
    Files/IBM/ACE/12.0.9.0/tools/plugins/com.ibm.etools.mft.config_1
    2.0.9.0/snakeyaml-2.0.jar by
    org.eclipse.osgi.internal.loader.EquinoxClassLoader@9e292f3[com.
    ibm.etools.mft.config:12.0.9.0(id=244)]) called from class
    io.swagger.v3.parser.util.DeserializationUtils$CustomSnakeYamlCo
    nstructor (loaded from file:/C:/Program
    Files/IBM/ACE/12.0.9.0/tools/plugins/com.ibm.etools.mft.config_1
    2.0.9.0/swagger-parser-v3-2.0.33.jar by
    org.eclipse.osgi.internal.loader.EquinoxClassLoader@9e292f3[com.
    ibm.etools.mft.config:12.0.9.0(id=244)]). at
    io.swagger.v3.parser.util.DeserializationUtils$CustomSnakeYamlCo
    nstructor.<init>(DeserializationUtils.java:372) at
    io.swagger.v3.parser.util.DeserializationUtils.readYamlTree(Dese
    rializationUtils.java:190)"
    

Problem conclusion

  • The mqsicreatebar command executes successfully on REST API
    projects that include an OpenAPI specification file in YAML
    format.
    
    ---------------------------------------------------------------
    The fix is targeted for delivery in the following PTFs:
    
    Version    Maintenance Level
    v12.0      12.0.12.4
    
    The latest available maintenance can be obtained from:
    http://www-01.ibm.com/support/docview.wss?rs=849&uid=swg27006041
    
    If the maintenance level is not yet available,information on
    its planned availability can be found on:
    http://www-1.ibm.com/support/docview.wss?rs=849&uid=swg27006308
    ---------------------------------------------------------------
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT44455

  • Reported component name

    APP CONNECT ENT

  • Reported component ID

    5724J0560

  • Reported release

    C00

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2023-08-31

  • Closed date

    2024-10-18

  • Last modified date

    2024-10-18

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    APP CONNECT ENT

  • Fixed component ID

    5724J0560

Applicable component levels

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSDR5J","label":"IBM App Connect Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"C00","Line of Business":{"code":"LOB67","label":"IT Automation \u0026 App Modernization"}}]

Document Information

Modified date:
18 October 2024