IBM Support

PI16235: NullPointerException using Auto Resolve

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Environment:
    IBM Rational Software Architect (RSA) 9.0.0.1
    IBM Rational Team Concert (RTC) 4.0.5
    Windows 7
    
    Steps to reproduce:
    1. Configure IBM Rational Software Architect (RSA) to connect to
    IBM Rational Team Concert (RTC).
    2. Create 2 RSA workspaces connected to the same RTC Project
    Area
    3. Share one Model from one workspace into a Stream in RTC.
    4. Load the same stream from the second workspace, so that the
    same Model project appears in the Explorer
    5. Make changes from the first workspace and deliver them so
    they become visible as incoming changes in the second workspace
    6. In the second workspace, make also some changes, so that some
    conflict would appear.
    7. Check in these changes.
    8. Attempt to Deliver these conflicting changes.
    9. You will see a dialog that offers the option to Auto Resolve.
    10. Select Auto Resolve and you will get a dialog showing a
    NullPointerExcpetion.
    11. The detailed stack trace of the exception can be seen in the
    workspace\.log file:
    
    java.lang.NullPointerException
        at
    com.ibm.xtools.comparemerge.emf.controller.EmfMergeManager.isClo
    sureMode(EmfMergeManager.java:2799)
        at
    com.ibm.xtools.modeler.compare.internal.controller.ModelerMergeM
    anager.getContentTypeID(ModelerMergeManager.java:1896)
        at
    com.ibm.xtools.comparemerge.core.controller.AbstractMergeManager
    .merge(AbstractMergeManager.java:694)
        at
    com.ibm.team.filesystem.rcp.core.internal.operations.merge.FileC
    ontentMerger.performMerge(FileContentMerger.java:271)
        at
    com.ibm.team.filesystem.rcp.core.internal.operations.merge.FileC
    ontentMerger.performAutoMerge(FileContentMerger.java:265)
        at
    com.ibm.team.filesystem.rcp.core.internal.operations.merge.FileC
    ontentMerger.performAutoMerge(FileContentMerger.java:181)
        at
    com.ibm.team.filesystem.rcp.core.internal.operations.merge.FileC
    ontentMerger.performAutoMerge(FileContentMerger.java:92)
        at
    com.ibm.team.filesystem.client.internal.operations.AutoResolveOp
    eration.performAutoMerge(AutoResolveOperation.java:578)
        at
    com.ibm.team.filesystem.client.internal.operations.AutoResolveOp
    eration.access$3(AutoResolveOperation.java:395)
        at
    com.ibm.team.filesystem.client.internal.operations.AutoResolveOp
    eration$1.run(AutoResolveOperation.java:326)
        at
    com.ibm.team.filesystem.rcp.core.internal.resources.ResourceShar
    ingManager$1.run(ResourceSharingManager.java:77)
        at
    org.eclipse.core.internal.resources.Workspace.run(Workspace.java
    :2344)
        at
    com.ibm.team.filesystem.rcp.core.internal.resources.ResourceShar
    ingManager.runWithinFileSystemLock(ResourceSharingManager.java:8
    9)
        at
    com.ibm.team.filesystem.client.internal.operations.FileSystemOpe
    ration.runWithinFileSystemLock(FileSystemOperation.java:164)
        at
    com.ibm.team.filesystem.client.internal.operations.FileSystemOpe
    ration.runWithinFileSystemLock(FileSystemOperation.java:144)
        at
    com.ibm.team.filesystem.client.internal.operations.AutoResolveOp
    eration.execute(AutoResolveOperation.java:335)
        at
    com.ibm.team.filesystem.client.internal.operations.FileSystemOpe
    ration.run(FileSystemOperation.java:89)
        at
    com.ibm.team.filesystem.rcp.ui.internal.compare.ConflictCompareE
    ditorInput$10.repositoryRun(ConflictCompareEditorInput.java:606)
        at
    com.ibm.team.repository.rcp.ui.operations.RepositoryOperation.ru
    n(RepositoryOperation.java:43)
        at
    com.ibm.team.repository.rcp.ui.operations.JobRunner.run(JobRunne
    r.java:240)
        at
    com.ibm.team.repository.rcp.ui.operations.JobRunner$1.run(JobRun
    ner.java:63)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
    

Local fix

Problem summary

  • Merge manager had missing NullPointer check.
    

Problem conclusion

  • Necessary Null pointer check was added to merge manager code.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI16235

  • Reported component name

    RATL TEAM CONCE

  • Reported component ID

    5724V0400

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-04-17

  • Closed date

    2014-09-30

  • Last modified date

    2014-09-30

  • 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

  • R910 PSY

       UP

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

Document Information

Modified date:
14 October 2021