IBM Support

PI46746: MFP JAX-RS IMPLEMENTATION DOES NOT CONFORM TO JAX-RS SPECIFICATI ON:APPLICATION SUBCLASS CANNOT BE INJECTED INTO A RESOURCE CLASS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • It is not possible to access the JAX-RS Application subclass
    instance from JAX-RS Resource class in a MobileFirst Platform
    Java Adapter.
    
    According to the relevant Specification
    (http://download.oracle.com/otn-pub/jcp/jaxrs-1.1-mrel-eval-oth-
    JSpec/jax_rs-1_1-mrel-spec.pdf) this should be possible by using
     the @Context annotation.
    
    However, the MFP implementation seems to inject an instance of
    type
    com.worklight.wink.extensions.MFPJAXRSApplicationWrapper
    instead.  This does not provide access to the Application
    subclass.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * MFP Developers who build java adapters                       *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * In java adapters, the Jax-RS application class cannot be     *
    * injected into the resource class using the Context           *
    * annotation                                                   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * -                                                            *
    ****************************************************************
    

Problem conclusion

  • The server implementation was modified to allow injection of the
    application class into the resource. This injection will work
    for any adapter with an application class that does not inherit
    from MFPJAXRSApplication.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI46746

  • Reported component name

    MFPF/WORKLIGHT

  • Reported component ID

    5725I4301

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-08-12

  • Closed date

    2015-09-03

  • Last modified date

    2015-09-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

    MFPF/WORKLIGHT

  • Fixed component ID

    5725I4301

Applicable component levels

  • R700 PSY

       UP

  • R710 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"700","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 October 2021