IBM Support

PI07534: ILLEGALARGUMENTEXCEPTION OCCURS WHEN LOGGER CREATED IS NOT AN INSTANCE OF WSLOGGER.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When a logger getting created is not an instance of
    WsLogger(which is WebSphere own Logger), fails with the
    following Exception.
    
    Caused by: java.lang.IllegalArgumentException: Logger passed as
    argument to setAttributes must be a named logger
     at
    com.ibm.ws.logging.LoggerHelper.setAttributes(LoggerHelper.java:
    192)
     at com.ibm.ws.logging.WsLogger.<clinit>(WsLogger.java:97)
     at java.lang.J9VMInternals.initializeImpl(Native Method)
     at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
     at
    com.ibm.ws.logging.WsLoggerFactoryImpl.createWsLogger(WsLoggerFa
    ctoryImpl.java:79)
     at
    com.ibm.ws.bootstrap.RASDelegator.createWsLogger(RASDelegator.ja
    va:74)
     at
    com.ibm.ws.bootstrap.WsLogManager.getLogger(WsLogManager.java:21
    8)
     at java.util.logging.Logger.getLoggerWithRes(Logger.java:350)
     at java.util.logging.Logger.getLogger(Logger.java:376)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Version 7                            *
    ****************************************************************
    * PROBLEM DESCRIPTION: When a logger being created is not      *
    *                      an instance of WsLogger (which is       *
    *                      Application Server's own Logger), it    *
    *                      fails with Exception                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When an application tries to register a logger, if it is not an
    instance of WsLogger (which is WebSphere Application Server's
    own implementation of Logger),then an IllegalArgumentException
    is thrown.
    

Problem conclusion

  • A check has been added to see if the new logger registered is
    an instance of WsLogger. If it is not, then it will not
    throw any exception. This fix is already present in Version
    8.0 and above.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 7.0.0.33.  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

    PI07534

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-12-05

  • Closed date

    2014-02-24

  • Last modified date

    2014-02-27

  • 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

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 October 2021