IBM Support

PI80102: INVOCATIONTARGETEXCEPTION WHEN TRANSFORMING A REST SERVICE MODELTO SWAGGER USING RSA/RSA4WS V9.6

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • You may observe an error when attempting to transform a REST
    Service model to Swagger using Rational Software Architect
    Designer [for WebSphere] v9.6
    
    Steps to reproduce:
    --------------------------
    1) Create a Swagger model from template;
    2) Import a sample .yaml file (you can find examples, i.e
    Twitter, at http://editor.swagger.io/#!/);
    3) Create a Swagger to REST service model transformation
    configuration and run it (Source: .yaml file; Target: Swagger
    model);
    4) Now, create a REST Service model to Swagger transformation
    configuration and run it (Source: Swagger Model; Target: you can
    specify some folder and location)
    
    Expected results: the transformation should complete
    successfully
    Actual results: the transformation fails with an
    InvocationTargetException
    
    The problem occurs in the case of the Twitter REST API because
    of a circular dependency that exists in the definition - the
    'Tweet' definition has a property of type 'Tweet' itself.  In
    general, this issue can occur for any definition that has a
    circular dependency.
    

Local fix

  • If the circular dependency was defined unintentionally, you can
    remove it.  Otherwise, there is no known workaround; please
    contact Rational Software Architect support for a fix.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * -                                                            *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The REST Service Model to Swagger transformation failed with *
    * an Invocation Target Exception when the model contained      *
    * Definitions with circular references.                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • The REST Service Model to Swagger transformation failed with an
    Invocation Target Exception when the model contained Definitions
    with circular references. This has now been fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI80102

  • Reported component name

    SW ARCHITECT WI

  • Reported component ID

    5724I7001

  • Reported release

    960

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-04-18

  • Closed date

    2017-05-11

  • Last modified date

    2017-05-11

  • 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

    SW ARCHITECT WI

  • Fixed component ID

    5724I7001

Applicable component levels

  • R950 PSY

       UP

  • R960 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYKBQ","label":"Rational Software Architect Designer for WebSphere Software"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"960","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
19 October 2021