Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Issue with lock file (.jazzlock) after load using Java API

Hi,

I've developed a java program using RTC API that load all files from all components on a given workspace using the ILoadOperation interface.

I can download all files but when I try to zip the result I've a problem with the .jazz5.jazzlock file that is locked.

I'm sure to close RTC connection (call logout and shutdown methods ) before running the ZIP process but seems that is not enough.

If we try to zip the files after the execution of my java script I can do it, the lock seems to be in Java application.

Do you have any suggestion ?

Thanks in advance,

Davide Dellepiane


0 votes


Accepted answer

Permanent link
Have you seen this? http://thescmlounge.blogspot.de/2013/08/getting-your-stuff-using-rtc-sdk-to-zip.html
David Lafreniere selected this answer as the correct answer

0 votes

Comments

Hi Ralph,

I've seen it but I haven't followed this "route" because the true purpose of the script is to download all files of the components on a certain Stream taking into account only a specific Snapshot.

The code in the article wasn't used because I've encountered some issues dealing with the Changes...

I'll try now and tell you if all works as expected.

Thanks for your quick answer.

It should work for multiple component and you should also be able to make it work for a snapshot. Some more pointers here: https://rsjazz.wordpress.com/2013/09/24/managing-workspaces-streams-and-components-using-the-plain-java-client-libraries/

It is based on the blog above.

Thank you Ralph, I was finally able to finish the script.

You're a life saver... ;)

Regards,

Davide Dellepiane


2 other answers

Permanent link
It's not necessary to zip up the .jazz5 folder if you're only interested in the content. You shouldn't be moving that folder around because it is the metadata for the resources that you have loaded. It will have linked those resources to the workspace and sharing that data in multiple locations will give you synchronization problems.

0 votes

Comments

Hi,

the only way to zip the files is to exclude the .jazz5 directory the problem with this solution is that I'm not able to delete the folder.

There is a way to instruct the load operation to exclude all metadata  and .project files ?



Permanent link
As I may understand from
I've developed a java program using RTC API that load all files from all components on a given workspace using the ILoadOperation interface. I can download all files but when I try to zip the result I've a problem with the .jazz5\.jazzlock file that is locked. I'm sure to close RTC connection (call logout and shutdown methods ) before running the ZIP process but seems that is not enough. 
maybe you couldn't close properly because you should add a 
sharingManager.deregister(sandbox, progressMonitor);
	
after the load operation. Maybe in the meantime you used a "no-workspace" solution like those pointed by Ralph...





0 votes

Comments

 The .jazz5 folder is metadata used by the RTC SCM system for coordination. I don't think it should go into a zip file. It is not part of the data in the projects. You can  likely not zip it, because it is actively used by the SCM managing the workspace 

 I perfectly agree, I just got stuck on a situation where I could not understand why after closing connection there was still a .jazzlock on the CFA so I wrote how I could solve my issue.

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937
× 57

Question asked: Jul 08 '14, 9:04 a.m.

Question was seen: 5,657 times

Last updated: Oct 10 '17, 1:40 p.m.

Confirmation Cancel Confirm