IBM Support

PM93609: Upgrading a model with table in the Documentation tab gives a NullPointerException and a ClassCastException error

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In IBM Rational Software Architect (RSA), if you attempt to
    upgrade a UML model with a table in the rich text Documentation
    tab to gives a 'NullPointerException' and a
    'java.lang.ClassCastException:
    com.ibm.xtools.richtext.emf.impl.TableRowImpl incompatible with
    com.ibm.xtools.richtext.emf.TableColumn' error in the .log file.
    
    The following steps reproduce the problem:
    
    1. Create a UML project ? model in RSA (or IBM Rational Software
    Modeler [RSM]) v7.5.5.5
    2. Add a class to the model and a table to the class's
    Properties ? Documentation
    3. Close RSA/RSM v7.5.5.5 and open RSA v8.5.1
    4. Import the v7.5.5.5 model
    5. Open the class's Properties ? Documentation
    
    Expected Result: The Properties ? Documentation opens without
    errors and it looks as it does in previous version of RSA/RSM
    Actual Result: A 'NullPointerException' error message appears
    and the following is written to the .log:
    
    null
    Error
    Tue Jul 09 10:36:22 CEST 2013
    com.ibm.xtools.richtext.emf.impl.TableRowImpl incompatible with
    com.ibm.xtools.richtext.emf.TableColumn
    
    java.lang.ClassCastException:
    com.ibm.xtools.richtext.emf.impl.TableRowImpl incompatible with
    com.ibm.xtools.richtext.emf.TableColumn
    at
    com.ibm.xtools.richtext.gef.internal.editparts.TablePart.refresh
    Children(Unknown
    Source)
    at
    com.ibm.xtools.richtext.gef.internal.editparts.EMFEditPart.refre
    shVisuals(Unknown
    Source)
    at
    com.ibm.xtools.richtext.gef.internal.editparts.FlowTypePart.refr
    eshVisuals(Unknown
    Source)
    at
    com.ibm.xtools.richtext.gef.internal.editparts.EMFEditPart.refre
    sh(Unknown
    Source)
    at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown
    Source)
    at
    org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Un
    known
    Source)
    at
    com.ibm.xtools.richtext.gef.internal.editparts.TablePart.addNoti
    fy(Unknown
    Source)
    at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown
    Source)
    at
    org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(Unkno
    wn
    Source)
    at
    com.ibm.xtools.richtext.gef.internal.editparts.EMFEditPart.refre
    shVisuals(Unknown
    Source)
    at
    com.ibm.xtools.richtext.gef.internal.editparts.FlowTypePart.refr
    eshVisuals(Unknown
    Source)
    at
    com.ibm.xtools.richtext.gef.internal.editparts.BlockContainerPar
    t.refreshVisuals(Unknown
    Source)
    at
    com.ibm.xtools.richtext.gef.internal.editparts.EMFEditPart.refre
    sh(Unknown
    Source)
    at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown
    Source)
    at
    org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Un
    known
    Source)
    at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown
    Source)
    at
    org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(Unkno
    wn
    Source)
    at
    com.ibm.xtools.richtext.gef.internal.editparts.EMFEditPart.refre
    shVisuals(Unknown
    Source)
    at
    com.ibm.xtools.richtext.gef.internal.editparts.FlowTypePart.refr
    eshVisuals(Unknown
    Source)
    at
    com.ibm.xtools.richtext.gef.internal.editparts.BodyEditPart.refr
    eshVisuals(Unknown
    Source)
    at
    com.ibm.xtools.richtext.gef.internal.editparts.EMFEditPart.refre
    sh(Unknown
    Source)
    at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown
    Source)
    at
    org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Un
    known
    Source)
    at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown
    Source)
    at
    org.eclipse.gef.editparts.SimpleRootEditPart.setContents(Unknown
    Source)
    at
    org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(Unkn
    own
    Source)
    at
    org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(Unkn
    own
    Source)
    at
    com.ibm.xtools.richtext.control.internal.GEFRichText.setText(Unk
    nown
    Source)
    
    There is no workaround at this time.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Rich text expects a ?col? tag, to decide on the width of the
    columns in the table.
    

Problem conclusion

  • If a ?col? tag is not specified, a default column width is
    assumed for the column.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM93609

  • Reported component name

    SW ARCHITECT WI

  • Reported component ID

    5724I7001

  • Reported release

    851

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-07-23

  • 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

    SW ARCHITECT WI

  • Fixed component ID

    5724I7001

Applicable component levels

  • R851 PSN

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYKBQ","label":"Rational Software Architect Designer for WebSphere Software"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"851","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
02 November 2021