IBM Support

PK60325: EJB MEDIATION FAILS WITH NULLPOINTEREXCEPTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When using RAD 7- version 7.0.0.5 on Windows XP trying to
    define a mediation handler in the EJB deployment descriptor, the
    process
    fails with a NullPointerException.  Below are the steps to
    reproduce -
    
    1. Created a class implementing the MediationHandler interface
    in a java
    project
    2. Created an EJB project and specified the above java project
    in the
    J2EE Module dependencies.
    3. In the EJB deployment descriptor, selected the Mediation
    Handler tab
    and clicked "Add".
    4. In the 'Define Mediation Handler' dialog, mentioned the name
    and
    selected the Handler class using the 'Browse' button.  The first
    thing
    that seems to be wrong is that any properties on the handler
    class are
    not displayed in the parameters section.
    5. Clicked on 'Finish' and got the error message - "An error has
    occurred when null finnished". Stack trace is below -
    
    
    
    org.eclipse.core.runtime.CoreException: Extended Operation
    failure:
    com.ibm.etools.sib.mediation.deploy.handler.operations.AddMediat
    ionHandl
    erOperation
       at
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users creating an EJB Mediation Handler *
    *                  in Rational Application Developer v7.0 and  *
    *                  WebSphere Application Server Toolkit v6.1.1.*
    ****************************************************************
    * PROBLEM DESCRIPTION: A NullPointerException is written to    *
    *                      the workspace .log file when            *
    *                      selecting to define an EJB mediation    *
    *                      handler in the EJB deployment           *
    *                      descriptor editor.                      *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The following exception will be visible in the workspace .log
    file when selecting to defined a new EJB mediation handler:
    
    java.lang.NullPointerException
    
    at com.ibm.etools.sib.mediation.deploy.handler.operations.
    AddMediationHandlerOperation.runEnvEntriesCreationOperatio
    n(Unknown Source)
    at com.ibm.etools.sib.mediation.deploy.handler.operations.
    AddMediationHandlerOperation.execute(Unknown Source)
    at com.ibm.etools.sib.mediation.deploy.handler.operations.
    AddMediationHandlerOperation.doExecute(Unknown Source)
    at org.eclipse.wst.common.componentcore.internal.operation.
    ArtifactEditProviderOperation.execute(Unknown Source)
    

Problem conclusion

  • The NullPointerException was happening due to the way that the
    underlying JEM functionality was introspecting the mediation
    handler class - it was unable to find certain proprety types
    and caused the NullPointerException.  The fix for this APAR is
    currently scheduled for inclusion in the Rational Application
    Developer v7.0.0.7 and WebSphere Application Server Toolkit
    v6.1.1.7 fixpacks.  Please refer to the Recommended Updates
    page for WebSphere Application Server Toolkit delivery
    information:
    http://www.ibm.com/support/docview.wss?uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK60325

  • Reported component name

    WEBAPP SERVER A

  • Reported component ID

    5724J0820

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-02-01

  • Closed date

    2008-02-11

  • Last modified date

    2008-06-10

  • 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

    WEBAPP SERVER A

  • Fixed component ID

    5724J0820

Applicable component levels

  • R610 PSY

       UP

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

Document Information

Modified date:
24 October 2021