IBM Support

PI22648: PREDESTROY METHOD IS NOT BEING CALLED WHEN CLASS IS TO BE DESTROYED

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • JAX-WS web service with PreDestroy/PostConstruct annotations on
    web service methods, and while the PostConstruct method is
    being called, the PreDestroy method is not being called.
    PostConstruct method is suppose to be called after web service
    constructer. PreDestroy method is suppose to be called when
    class is to be destroyed.
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users who use JAX-WS on IBM WebSphere   *
    *                  Application Server Liberty Core             *
    ****************************************************************
    * PROBLEM DESCRIPTION: @PreDestroy is not called when a JAX-   *
    *                      WSservice endpoint is to be destroyed   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The JAX-WS spec only defines that @PreDestroy should be
    supported for handlers. In the current version, there is no
    support for @PreDestroy for a service endpoint.
    

Problem conclusion

  • The @PreDestroy should be supported for service endpoint. Then
    when a service endpoint is to be destroyed, the method with
    annotation @PreDestroy will be called, after that the handlers'
    @PreDestroy will be called, and finally we call the destroy
    method of the service endpoint.  The fix for this APAR is
    currently targeted for inclusion in fix pack 8.5.5.4.  Please
    refer to the Recommended Updates page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI22648

  • Reported component name

    WAS LIBERTY COR

  • Reported component ID

    5725L2900

  • Reported release

    855

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-07-24

  • Closed date

    2014-09-10

  • Last modified date

    2014-10-31

  • 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

    WAS LIBERTY COR

  • Fixed component ID

    5725L2900

Applicable component levels

  • R855 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSD28V","label":"WebSphere Application Server Liberty Core"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"855","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022