IBM Support

PK81805: UNABLE TO COPY DIAGRAM CONTENT AFTER IMPORT WHEN HAVING DIRECTED ASSOCIATIONS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Description:
    After importing pre-7.5 models in 7.5.1, customers can experienc
    e copy and paste problems in diagrams.
    Copy and paste would not function properly, and instead woud thr
    ow the following exception :
    ----
    ENTRY org.eclipse.gmf.runtime.common.ui.action 4 3 2009-03-04 15
    :39:15.109
    !MESSAGE While executing the operation, an exception occurred
    !STACK 0
    org.eclipse.core.commands.ExecutionException: While executing th
    e operation, an exception occurred
     at org.eclipse.core.commands.operations.DefaultOperationHistory
    .execute(Unknown Source)
     at org.eclipse.gmf.runtime.common.ui.action.global.GlobalAction
    .doRun(Unknown Source)
     at ....
    
    Caused by: java.lang.IllegalArgumentException: negative width
     at java.awt.BasicStroke.?init?(Unknown Source)
     at org.eclipse.gmf.runtime.draw2d.ui.render.awt.internal.graphi
    cs.GraphicsToGraphics2DAdaptor.setLineWidth(GraphicsToGraphics2D
    Adaptor.java:1050)
     at org.eclipse.gmf.runtime.draw2d.ui.internal.graphics.ScaledGr
    aphics.setLocalLineWidth(Unknown Source)
     at org.eclipse.gmf.runtime.draw2d.ui.internal.graphics.ScaledGr
    aphics.setLineWidth(Unknown Source)
     at org.eclipse.draw2d.Shape.paintFigure(Unknown Source)
     at org.eclipse.draw2d.Figure.paint(Unknown Source)
     at org.eclipse.draw2d.Figure.paintChildren(Unknown Source)
     at org.eclipse.draw2d.Figure.paintClientArea(Unknown Source)
     at org.eclipse.draw2d.Figure.paint(Unknown Source)
     at org.eclipse.gmf.runtime.diagram.ui.render.clipboard.DiagramG
    enerator.paintFigure(DiagramGenerator.java:367)
     at org.eclipse.gmf.runtime.diagram.ui.render.clipboard.DiagramG
    enerator.renderToGraphics(DiagramGenerator.java:231)
     at .....
    
    ----
    
    Steps to reproduce:
    1. In a pre-7.5 version (like 7.0.5.3), create a model
    2. Create a class diagram, 2 classes and an association between
    them
    3. Make the association navigable in one way only (to have the a
    rrowhead)
    4. Import the model in 7.5
    5. Select your classes and association and copy it:
    Expected result: the selected information is copied to the clipb
    oard and can be pasted later on
    Actual result: the selected information is not copied to the cli
    pboard and an error is silently logged.
    
    Workaround:
    IBM rational support developed a pluglet that 'repairs' the mode
    ls in the sense that they set the lineWidth to be 1 for all the
    lines that have a lineWidth of -1.
    

Local fix

Problem summary

  • Unable to copy diagram content after import when having
    directed associations
    

Problem conclusion

  • Fixed in release RSx 752.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK81805

  • Reported component name

    SW ARCHITECT WI

  • Reported component ID

    5724I7001

  • Reported release

    751

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-03-04

  • Closed date

    2009-04-03

  • Last modified date

    2009-04-03

  • 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

    SW ARCHITECT WI

  • Fixed component ID

    5724I7001

Applicable component levels

  • R751 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYKBQ","label":"Rational Software Architect Designer for WebSphere Software"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"751","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS4JCV","label":"Rational Software Architect for WebSphere Software"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"751","Edition":"","Line of Business":{"code":"LOB15","label":"Integration"}}]

Document Information

Modified date:
03 April 2009