It's all about the answers!

Ask a question

M6: can not load components into workpace


Pravesh Patel (3762615) | asked Apr 08 '08, 1:25 p.m.
After successfully installing M6, I was able to run a CC sync to sync my Clear Case projects with Jazz successfully. Next I created a New Repository Workspace and attempted to load some of the newly created components. After selecting the components to load, I get the following error message which appears concurrently with the "Repository folders to load" diaglogue:

An internal error occurred during: "Loading repository items".
Path for project must have only one segment.


Here is the output from the workspace log file:

!ENTRY org.eclipse.core.jobs 4 2 2008-04-08 12:21:00.109
!MESSAGE An internal error occurred during: "Evaluating load request".
!STACK 0
java.lang.IllegalArgumentException: Path for project must have only one segment.
at org.eclipse.core.runtime.Assert.isLegal(Assert.java:62)
at org.eclipse.core.internal.resources.WorkspaceRoot.getProject(WorkspaceRoot.java:165)
at com.ibm.team.filesystem.rcp.core.internal.operations.EclipseWorkspaceMergeLoadOperation.existsOnMirror(EclipseWorkspaceMergeLoadOperation.java:151)
at com.ibm.team.filesystem.client.internal.operations.LoadOperation.checkForOverwrite(LoadOperation.java:1076)
at com.ibm.team.filesystem.client.internal.operations.LoadOperation.checkForCollision(LoadOperation.java:997)
at com.ibm.team.filesystem.client.internal.operations.LoadOperation.getElementsToLoad(LoadOperation.java:962)
at com.ibm.team.filesystem.client.internal.operations.LoadOperation.evaluateLoadRequests(LoadOperation.java:290)
at com.ibm.team.filesystem.ui.teamplace.views.LoadOperationInput$EvaluateLoadRequest.run(LoadOperationInput.java:102)
at com.ibm.team.repository.rcp.ui.operations.JobRunner.run(JobRunner.java:201)
at com.ibm.team.repository.rcp.ui.operations.JobRunner$1.run(JobRunner.java:63)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Can someone please help me get resolve this issue? Thanks!

5 answers



permanent link
Jean-Michel Lemieux (2.5k11) | answered Apr 08 '08, 1:27 p.m.
JAZZ DEVELOPER
Please log a bug against Source Control. Please include details such as what the file tree looks like in the component being loaded and what you selected to be loaded.

This looks like a bug, but it would help if we could reproduce.

Jean-Michel
Jazz Source Control Team

permanent link
Pravesh Patel (3762615) | answered Apr 08 '08, 4:08 p.m.
In M5, I had to check .project files into the root of my CC components, this allowed the CC Connector to synchronized these CC components as Jazz components. With M6 I found that this .project file is causing the error described above.

If I remove the .project file, and re-sync with CC, then I can load the component, however each of the component's subfolders becomes it's own project. I want 1 Java project per component (as it was in M5). Is there a way to acheive this?

permanent link
Pravesh Patel (3762615) | answered Apr 09 '08, 7:07 p.m.
There was a change in the way the CC Connector synchronizes between M5 and M6.

This issue is being tracked in the following work items:

https://jazz.net/jazz/web/projects/Jazz%20Project#action=com.ibm.team.workitem.viewWorkItem&id=50445
https://jazz.net/jazz/web/projects/Jazz%20Project#action=com.ibm.team.workitem.viewWorkItem&id=50582

permanent link
Geoffrey Clemm (29.4k23035) | answered Apr 09 '08, 10:41 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
For folks interested in a summary:

In M5, every imported directory from ClearCase was created as an
immediate child of the Jazz component. One major problem with the M5
approach was that the relative names of imported directories were not
preserved, so build scripts that depended on those relative names would
fail after you imported the directories.

In M6, the names of synchronized files in a Jazz component (relative to
the root of the component) are made the same as the relative names of
the corresponding files in the ClearCase component (relative to the root
directory of the ClearCase component), so relative names are preserved,
and builds succeed.

In Pravesh's case, each of his ClearCase components was a single Eclipse
project (with a .project file in the root directory of the component).
In M5, when he imported the whole component, it was placed as a child of
the root of the Jazz component. In M6, it was made the root of the Jazz
component.

But Jazz SCM will not let you load a component that is a single Eclipse
project, thus producing the error message described in workitem 50445.

We're doing three things about that:
- improving the error message (50445)
- requesting that Jazz SCM handle this situation (50699)
- developing an interim workaround within the ClearCase Connector (50680)

Cheers,
Geoff

pravesh wrote:
There was a change in the way the CC Connector synchronizes between M5
and M6.

This issue is being tracked in the following work items:

https://jazz.net/jazz/web/projects/Jazz%20Project#action=com.ibm.team.workitem.viewWorkItem&id=50445
https://jazz.net/jazz/web/projects/Jazz%20Project#action=com.ibm.team.workitem.viewWorkItem&id=50582

permanent link
Pravesh Patel (3762615) | answered Apr 10 '08, 11:21 a.m.
I believe our ClearCase usage is pretty common. We started with 1 VOB and checked our Java Projects in under that VOB since all of the Java Projects where loosely related (from a product family perspective), but otherwise independent.

If you have this use case, please post your desire for a first class fix by posting to WI 50699.

https://jazz.net/jazz/web/projects/Jazz%20Project#action=com.ibm.team.workitem.viewWorkItem&id=50699

Your answer


Register or to post your answer.