IBM Support

JR60301: Swagger fails with NoClassDefFoundError error after upgrading to Commerce 9.0.1

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • After upgrading to 9.0.1, the following error is seen when using
    Swagger.
    
    CWNCF5000E: An unexpected error has occurred. [kqzZQMNRH06R7CL6]
    com.ibm.commerce.cf.exception.SystemException: CWNCF5000E: An
    unexpected error has occurred. [kqzZQMNRH06R7CL6]
    at
    com.ibm.commerce.cf.rest.ErrorResponseContainer$Error.<init>(Err
    orResponseContainer.java:67)
    ...
    Caused by: java.lang.NoClassDefFoundError:
    com.fasterxml.jackson.dataformat.yaml.YAMLFactory
    at io.swagger.util.Json.mapper(Json.java:13)
    at
    io.swagger.jersey.SwaggerJersey2Jaxrs.<init>(SwaggerJersey2Jaxrs
    .java:34)
    

Local fix

Problem summary

  • USERS AFFECTED:
    9.0.0.8, 9.0.1.0
    
    PROBLEM ABSTRACT:
    Swagger fails with NoClassDefFoundError error after upgrading to
     Commerce 9.0.1
    
    BUSINESS IMPACT:
    Customers unable to test with Swagger.
    
    RECOMMENDATION:
    

Problem conclusion

  • This fix corrects jackson-dataformat-yaml-2.4.5.jar
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR60301

  • Reported component name

    WC BUS EDITION

  • Reported component ID

    5724I3800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-11-15

  • Closed date

    2018-12-03

  • Last modified date

    2018-12-03

  • 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

    WC BUS EDITION

  • Fixed component ID

    5724I3800

Applicable component levels

  • R900 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]

Document Information

Modified date:
11 December 2021