cancel
Showing results for 
Search instead for 
Did you mean: 

Name Clash with Java Class

former_member540174
Participant
0 Kudos

I have a web dynpro track. In my DC I use a java class that is in the src/packages directory. Somehow the connection between my SpiritCalendar.java class on my PC and the one in the repository have come apart. The repository browser shows the SpiritCalendar.Java class with the local house symbol next to it and the words SpiritCalendar.java <Name Clash>.

The differences between the two versions is just one method so I'm not scared of deletes. Natually, this is stopping the build since I use the new method.

Any guidance on how to fix this?

Diane

Accepted Solutions (1)

Accepted Solutions (1)

Stefan-EA
Contributor
0 Kudos

The blue house indicates that the file is local and not in the repository. To add the file to the DTR, you need to add that file to an activity. Go to the DTR perspective and drill down to find the file. Right click on the local file and select "Add" to add it into an activity. Check in the activity and the build should be successful. (BTW, im using NW 6.40, SP)

former_member540174
Participant
0 Kudos

The Add option is not enabled.

Stefan-EA
Contributor
0 Kudos

What about the Resolve Conflict option, is it enabled? If so, you there is a "Accept Your (Local ) Version" option.

If that does not work, copy the contents of your local class, sync to the remote class, add the synced class to an activity and then paste the contents.

former_member540174
Participant
0 Kudos

Unfortunately none of the Resolve Conflict options are enabled - joy!

Stefan-EA
Contributor
0 Kudos

When you are in the DTR perspective, are you trying to add the file in the "inactive" branch? EG: go to SC Name -> dev -> inactive -> DCs -> (Your DC list)

Edited by: Stefan Thibeault on Jan 30, 2009 9:34 AM

former_member540174
Participant
0 Kudos

I'm in the Repository Browser

in the Inactive DC > blah...blah....down to src > packages > com > spiritaero > cats > empl > util > SpiritCalendar.java <NAME CLASH>.

Stefan-EA
Contributor
0 Kudos

As a last resort, copy the contents of your local class, sync to the remote class, add the synced class to an activity and then paste the contents of your local class.

former_member540174
Participant
0 Kudos

I just tried to do an Edit File in this Folder from my UTIL folder. The other Java Class checked out fine. The SpiritCalendar class gave a Sync Failed due to the name clash

08:25:57.693 SYNC (FAILED: File has local-remote name clash) SpiritCalendar.java

(D:\NWDI Development Configuration\4\DCs\spiritaero.com\cats\emp\timevrfy\_comp\src\packages\com\spiritaero\cats\empl\util\SpiritCalendar.java)

08:38:59.360 SUCCEEDED: Created activity act_w_MTEHRC2_spiritaero_2e_com_MTE_2d_CATS_2d_CUSTOM_dev_inactive_u_s0002916_t_2009_01_30_14_38_59_GMT_de7d6ee2-3a90-4d19-92ee-9f0873308fff

08:39:01.172 EDIT (SKIPPED: File is local-only) SpiritCalendar.java

(D:\NWDI Development Configuration\4\DCs\spiritaero.com\cats\emp\timevrfy\_comp\src\packages\com\spiritaero\cats\empl\util\SpiritCalendar.java)

08:39:01.469 EDIT StringUtility.java (D:\NWDI Development Configuration\4\DCs\spiritaero.com\cats\emp\timevrfy\_comp\src\packages\com\spiritaero\cats\empl\util\StringUtility.java)

08:39:02.110 ==> Finished in 985ms. 1 file succeeded (8428 bytes). 1 file skipped (51066 bytes).

former_member540174
Participant
0 Kudos

Ok did a Forced Sync on the util folder. The Spirit Calendar.java now shows as Exclusive Checked-out for edit by other user, e.g.for file.

I'm the only developer so the only other user would be .... ah...me!

How can I get that check out cancelled?

Stefan-EA
Contributor
0 Kudos

If everything is checked into the DTR, you can then removed your development configuration and re-import everything again. Once the development configuration has been removed, make sure that "4" folder from "D:\NWDI Development Configuration\4" is gone as well. Hope this helps.

former_member540174
Participant
0 Kudos

Is there a way for the Admin to undo a checkout? The file still shows as checked out by another user.

former_member540174
Participant
0 Kudos

It took some doing but found a way for the administrator to revert my checkout. THANK YOU!!!

Stefan-EA
Contributor
0 Kudos

Great! How did the administrator revert the checkout?

former_member540174
Participant
0 Kudos

We went into the webCMS/DTR/NWDI site. Dug around in the repository and reverted the activity that had the checkout on it. It was the only thing on that activity so I only lost the checkout I didn't care about.

Answers (0)