IBM Support

PI52713: RATIONAL DEVELOPER FOR SYSTEM Z (RDZ) RAISES NULLPOINTEREXCEPTIO N DURING "CREATE BASELINE" IN SOFTWARE ANALYSIS

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • In Rational Developer for System z - RDz - v9.1.1.2, attempt to
    create a new baseline fails with error:
    
    An internal error occurred during: "Create Baseline".
    java.lang.NullPointerException
    
    <workspace>\.metadata\.log file shows error:
    
    java.lang.NullPointerException
        at
    com.ibm.rsar.analysis.codereview.baseline.BaselineManager.writeZ
    ipFile(Unknown Source)
        at
    com.ibm.rsar.analysis.codereview.baseline.BaselineManager.access
    $0(Unknown Source)
        at
    com.ibm.rsar.analysis.codereview.baseline.BaselineManager$1.run(
    Unknown Source)
        at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)
    
    Steps to reproduce:
    
    1- start RDz in a new workspace
    2- select menu Run > Analysis...
    3- create a new Software Analyzer configuration
    - Analyze entire workspace
    - On tab Rules, check Cobol Software Metrics
    - click Apply
    4- create a new baseline
    - click New
    - select the config previously created
    - give a name
    - click OK
    5- Error happens:
    An internal error occurred during: "Create Baseline".
    java.lang.NullPointerException
    

Local fix

  • Do not use COBOL Software Metrics when creating baseline.
    COBOL Software Metrics are not meant to be used when creating
    baseline.
    The purpose of the baseline is to ignore code rule violations in
    legacy code.
    

Problem summary

  • Attempt to
    create a new baseline fails with error:
    
    An internal error occurred during: "Create Baseline".
    java.lang.NullPointerException
    
    <workspace>\.metadata\.log file shows error:
    
    java.lang.NullPointerException
        at
    com.ibm.rsar.analysis.codereview.baseline.BaselineManager.writeZ
    ipFile(Unknown Source)
        at
    com.ibm.rsar.analysis.codereview.baseline.BaselineManager.access
    $0(Unknown Source)
        at
    com.ibm.rsar.analysis.codereview.baseline.BaselineManager$1.run(
    Unknown Source)
        at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)
    
    Steps to reproduce:
    
    1- start RDz in a new workspace
    2- select menu Run > Analysis...
    3- create a new Software Analyzer configuration
    - Analyze entire workspace
    - On tab Rules, check Cobol Software Metrics
    - click Apply
    4- create a new baseline
    - click New
    - select the config previously created
    - give a name
    - click OK
    5- Error happens:
    An internal error occurred during: "Create Baseline".
    java.lang.NullPointerException
    

Problem conclusion

  • Modified the RDz Software Analyzer code to accept baseline scans
    with metrics rules applied.
    
    The problem listed in this APAR has been resolved with
    IBM Rational Developer for System z V9.1.1.3 Fix Pack which
    is available from the Recommended Fixes support download page:
    http://www-1.ibm.com/support/docview.wss?rs=2294&uid=swg27006335
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI52713

  • Reported component name

    RATL DEV FOR SY

  • Reported component ID

    5724T0700

  • Reported release

    911

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-11-18

  • Closed date

    2016-02-25

  • Last modified date

    2016-02-25

  • 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 DEV FOR SY

  • Fixed component ID

    5724T0700

Applicable component levels

  • R911 PSY

       UP



Document information

More support for: Rational Developer for System z

Software version: 9.1.1

Reference #: PI52713

Modified date: 25 February 2016