IBM Support

PM59674: Building a project via Ant might result in a CHKJ2023W validation error

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Abstract:
    
    Attempts to build EJB projects and execute ejbDeploy headlessly
    result in incorrect EJB validation errors: CHKJ2023W the method
    op1 needs op1 to exist on package1.Class1.
    
    Problem:
    
    These steps reproduce the problem:
    
    1. Create an ANT script that imports projects, builds the
    workspace, performs EJB Deploy and deploys projects to an
    Application Server.
    
    2. Intermittently, the workspace starts showing EJB Validation
    errors.
    
    Examples of the incorrect EJB Validation errors are:
    
    
    CHKJ2023W: The op1() method
    needs op1() to exist on package1.Class1 (EJB 2.0: 7.10.5)
    
    The method op1 reported as missing is declared in a superclass
    of the EJB implementation class.
    
    The superclasse is stored in a Jar file,
    which is referenced via a custom classpath container.
    
    These errors are incorrect, in fact they disappear just by
    invoking validation manually.
    
    This issue is due to defect 372687 in Eclipse JDT:
    
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=372687
    
    Local fix:
    
    Invoke validation by right-clicking on the project and
    selecting: Validate.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Several public API leverage
    org.eclipse.jdt.internal.core.BinaryType.getMethods() which
    return an empty list of methods while executing in a
    headless script.
    

Problem conclusion

  • The fix for this APAR is included in Rational Application
    Developer v8.5.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM59674

  • Reported component name

    SW ARCHITECT WI

  • Reported component ID

    5724I7001

  • Reported release

    803

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-03-05

  • Closed date

    2012-06-15

  • Last modified date

    2012-06-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

  • R803 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":"8.0.3","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2012