IBM Support

PI17810: Deleting a port from a read-write Class unit returns the error 'Cannot modify element with read-only owner'

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Deleting port from read-write unit with read-only parent cause
    error 'Cannot modify element with read-only owner' in IBM
    Rational Rhapsody
    
    Additional Information:
    
    The port that is selected for deletion does not belong to the
    read-only parent so it should not be causing an error. However,
    if the FlowPort has a type or the UML Port has a contract it is
    possible to delete it from the owner package.
    
    
    SYMPTOM
    
    The full error message is:
    
    Cannot modify read only element (or element with read only
    owner)
    C:\Rhapsody8.0.6\workspace\44594\Project_rpy\Default.sbs
    
    Steps to Reproduce:
    
    1. Create a new model
    
    2. Add a package, add a block/class to the package.
    
    3. Make them both units and set the package to read-only. The
    block/class stays read-write
    
    4. Add a port to the block/class. Rename the port. No error.
    
    5. Attempt to delete the port. Error above is shown.
    
    
    WORKAROUND
    
    Enable read-write permissions for the owner unit.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Deleting a port from a read-write Class unit returns the
    error "Cannot modify element with read-only owner"
    

Problem conclusion

  • Fixed in 8.1.1
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI17810

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    804

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-05-13

  • Closed date

    2014-09-11

  • Last modified date

    2014-09-11

  • 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

    TLOGIC RHAPSODY

  • Fixed component ID

    5724V74RP

Applicable component levels

  • R804 PSN

       UP



Document information

More support for: Rational Rhapsody

Software version: 8.0.4

Reference #: PI17810

Modified date: 11 September 2014