It's all about the answers!

Ask a question

Error occurs on Rename & Move operation (Eclipse client 4.0.5)


Sanjeev Kulkarni (331220) | asked Feb 06 '14, 9:48 a.m.

Our stream has below structure,

 Stream XYZ

            Component A

            Component B

            Component C

            Component D


When we load the stream in eclipse every component is loaded as a project (Package Explorer view). Things work fine.

 Loading pattern  

            Component A   - Loads as project.

            Component B   - Loads as project.

            Component C   - Loads as project.

            Component D   - Loads as project.

 
But we face problems when we load these components under single project. Error occurs on rename, move operations. We are neither able to rename the files of Stream nor move them.

 Loading pattern

 Project MNC

Component A   - loaded directly under project.

            Component B   - loaded directly under project.

            Component C   - loaded directly under project.

            Component D   - loaded directly under project.


Error noticed:

java.lang.NullPointerException at com.ibm.team.filesystem.rcp.core.internal.resources.MoveDeleteHook.moveResource(MoveDeleteHook.java:207)at com.ibm.team.filesystem.rcp.core.internal.resources.MoveDeleteHook.moveFile(MoveDeleteHook.java:177)at org.eclipse.team.internal.core.MoveDeleteManager.moveFile(MoveDeleteManager.java:87) at org.eclipse.core.internal.resources.Resource.unprotectedMove(Resource.java:1967) at org.eclipse.core.internal.resources.Resource.move(Resource.java:1597) at org.eclipse.ltk.core.refactoring.resource.RenameResourceChange.perform(RenameResourceChange.java:123)at org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278) at org.eclipse.ltk.core.refactoring.PerformChangeOperation$1.run(PerformChangeOperation.java:258)at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)

I would like to know the reason why this happens. What is the recommended way to load components of a stream?

One answer



permanent link
Piotr Aniola (3.6k1534) | answered Feb 06 '14, 9:54 a.m.
edited Feb 06 '14, 9:54 a.m.
I believe you are running into this defect:
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=296489
It's fixed in version 5

Workaround (by Matthew Jarvis): RTC seems to think the new project is also shared even though it is not.  If I right-click on the new project and select Team => Disconnect, it seems to get things back into a good state.  After that, I'm able to refactor things in the new project.  I can also choose to Share the new project, and things continue to work as expected.

Your answer


Register or to post your answer.