IBM Support

PM08712: GMF deadlock: RuntimeException in resourceSetChanged leaves tran saction forever open

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Environment:
    - Microsoft Windows XP SP1/2
     - IBM Rational Application Developer 7.5.2
    
    Reproducible Y/N: Y
    
    Description of problem:
    When a RuntimeException is thrown from a ResourceSetListener.res
    ourceSetChanged implementation, within a GMF diagram,
    DiagramEditingDomainFactory.DiagramEditingDomain doesn't close t
    he inner transaction it creates (lines 212-219), and that preven
    ts any change in any transaction to commit ever after. Your only
     choice is to close eclipse.
    This has been reported again eclipse with the bugzilla:
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=301520
    
    Steps to reproduce:
    Create a GMF logic example, and apply the attached patch. Create
     a diagram, add a circuit, and move it around a few times. Once
    the RuntimeException is thrown, nothing will change in the diagr
    am, or in any other diagram you create.
    
    Workaround:
    None
    

Local fix

Problem summary

  • When a RuntimeException is thrown from a
    ResourceSetListener.resourceSetChanged
    implementation, within a GMF diagram,
    DiagramEditingDomainFactory.DiagramEditingDomain doesn't
    close the inner
    transaction it creates (lines 212-219), and that prevents
    any change in any
    transaction to commit ever after. Your only choice is to
    close eclipse
    

Problem conclusion

  • Capture the exception in
    DiagramEditingDomainFactory.DiagramEditingDomain,
    rollback the inner transaction, and throw again the
    exception to keep current
    behaviour. This effectively elliminates deadlock and lets
    users/developers know that exception has occurred via Error
    log
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM08712

  • Reported component name

    RATL APP DEV WI

  • Reported component ID

    5724J1901

  • Reported release

    750

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-02-26

  • Closed date

    2010-04-01

  • Last modified date

    2010-04-01

  • 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

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

Document Information

Modified date:
01 April 2010