It's all about the answers!

Ask a question

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

Sanjeev Kulkarni (331822) | 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 at org.eclipse.core.internal.resources.Resource.unprotectedMove( at org.eclipse.core.internal.resources.Resource.move( at org.eclipse.ltk.core.refactoring.resource.RenameResourceChange.perform( org.eclipse.ltk.core.refactoring.CompositeChange.perform( at org.eclipse.ltk.core.refactoring.PerformChangeOperation$

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.7k11738) | answered Feb 06 '14, 9:54 a.m.
edited Feb 06 '14, 9:54 a.m.
I believe you are running into this defect:
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.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.