IBM Support

PI11072: Validation in transaction 'commit()' gives a NullPointerException

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In IBM Rational Software Architect (RSA), during the validation
    in transaction 'commit()',
    'ContentTypeHelper.isSupportedResource()' and
    'isSupportedContent()' will be called in a thread stack where a
    NullPointerException results:
    
    [?BEGIN?]
    java.lang.NullPointerException
          at
    com.ibm.xtools.modeler.ui.internal.utils.ContentTypeHelper.isSup
    portedContent(ContentTypeHelper.java:69)
          at
    com.ibm.xtools.modeler.ui.internal.utils.ContentTypeHelper.isSup
    portedResource(ContentTypeHelper.java:53)
          at
    com.ibm.xtools.modeler.ui.internal.expressions.InResourceClientS
    elector.selects(InResourceClientSelector.java:55)
          at
    org.eclipse.emf.validation.internal.service.ClientContextManager
    .getClientContextsFor(ClientContextManager.java:183)
          at
    org.eclipse.emf.validation.internal.service.LiveValidator.doVali
    date(LiveValidator.java:95)
          at
    org.eclipse.emf.transaction.impl.AbstractTransactionalCommandSta
    ck.execute(AbstractTransactionalCommandStack.java:165)
    [?/END?]
    
    In the 'isSupportedResource()' method, there is a URI variable
    called 'fileURI' which is like ?pathmap://??, but not
    ?file://...?.
    
    As the program progresses, it gets a string variable called
    'filename'. The variable 'filename' is 'null' when the real URI
    is like ?pathmap://?? instead of ?file://...?.  As a result,
    this 'null' value for 'filename' will be transferred to
    'isSupportedContent()' and cause a 'NullPointException'.
    
    Once the 'NullPointException' occurs, the whole 'validate()'
    will fail and, ultimately, cause a transaction rollback.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Validation in transaction "commit()" gives a
    NullPointerException.
    

Problem conclusion

  • Null Pointer Exception handled in resource type validation.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI11072

  • Reported component name

    RATL SW ARCHITE

  • Reported component ID

    5725A3000

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-02-05

  • Closed date

    2014-03-31

  • Last modified date

    2014-03-31

  • 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 SW ARCHITE

  • Fixed component ID

    5725A3000

Applicable component levels

  • R850 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"850","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"850","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
10 September 2020