IBM Support

PM62502: Multiple versions of some classes/jars running at the same time might cause profiling to fail

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Abstract:
    
    Attempts to profile an application containing multiple versions
    of the same class might result in an exception; however, it does
    not give an error indicating there are duplicate classes.
    
    Problem:
    
    If you attempt to profile an application that contains multiple
    copies of the same class then the following exception might
    occur:
    
    java.lang.ArrayIndexOutOfBoundsException
            at
    com.ibm.rational.llc.engine.instrumentation.ServerFileStreamData
    Collector.executableUnitAccessed(ServerFileStreamDataCollector.j
    ava:242)
    ...
    
    Local fix:
    
    If you intend to be running multiple versions of the same class,
    the workaround is to iteratively filter the duplicated classes
    from the coverage set:
    
    1. Examine the stacktrace to determine the problematic class.
    2. Add a filter which excludes that class, and classes related
    to it.
    3. Try again. If a new exception occurs, repeat from step 1.
    
    For example if the stack trace points to mypackage.MyClass:
    
    java.lang.ArrayIndexOutOfBoundsException
            at
    com.ibm.rational.llc.engine.instrumentation.ServerFileStreamData
    Collector.executableUnitAccessed(ServerFileStreamDataCollector.j
    ava:242)
            at llc_probe$Probe_0._executableUnit(llc_probe.java:28)
            at mypackage.MyClass.put(OgnlContext.java:540) ????????
    THE PROBLEMATIC CLASS IS FOUND HERE
    
    For this class you can exclude all of mypackage.*.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Code Coverage engine does not handle ClassLoader scoped
    multiple conflicting definitions of the same class.
    

Problem conclusion

  • A warning message will be logged to prevent the crash. The
    fix for this APAR is included in Rational Application
    Developer v8.0.4.1.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM62502

  • Reported component name

    RATL APP DEV WI

  • Reported component ID

    5724J1901

  • Reported release

    750

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-04-16

  • Closed date

    2012-05-15

  • Last modified date

    2012-05-15

  • 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

    RATL APP DEV WI

  • Fixed component ID

    5724J1901

Applicable component levels

  • R750 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 May 2012