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
Accepted answer
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
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...
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.