java.io.FileNotFoundException when checking out a branch [message #574628] |
Tue, 13 October 2009 14:24 |
Eclipse User |
|
|
|
Originally posted by: hillner.informatik.uni-leipzig.de
Hello,
when I try to checkout a branch using the following code ...
private void loadBranch(String refName) throws IOException {
Commit commit = repo.mapCommit(refName);
Tree tree = commit.getTree();
GitIndex index = repo.getIndex();
new WorkDirCheckout(repo, repo.getWorkDir(), index, tree).checkout();
index.write();
repo.writeSymref(Constants.HEAD, refName);
}
.... I sometimes get a FileNotFoundException with a stack trace like the
following:
java.io.FileNotFoundException:
D:\Stanley\SHK\AMOR\runtime-EclipseApplication\voldemort\src \java\voldemort\serialization\VoldemortOperation.java
(Zugriff verweigert) --> Access denied
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.eclipse.jgit.lib.GitIndex.checkoutEntry(GitIndex.java:84 5)
at
org.eclipse.jgit.lib.WorkDirCheckout$1.visitEntry(WorkDirChe ckout.java:176)
at org.eclipse.jgit.lib.IndexTreeWalker.visitEntry(IndexTreeWal ker.java:160)
at org.eclipse.jgit.lib.IndexTreeWalker.walk(IndexTreeWalker.ja va:127)
at org.eclipse.jgit.lib.IndexTreeWalker.walk(IndexTreeWalker.ja va:107)
at
org.eclipse.jgit.lib.WorkDirCheckout.checkoutOutIndexNoHead( WorkDirCheckout.java:179)
at org.eclipse.jgit.lib.WorkDirCheckout.checkout(WorkDirCheckou t.java:136)
at
de.modelrepository.test.git.GitFileHistory.loadBranch(GitFil eHistory.java:139)
at de.modelrepository.test.git.GitFileHistory.<init>(GitFileHistory.java:42)
at de.modelrepository.test.git.GitFileHistory.main(GitFileHisto ry.java:167)
This error occurs often but by chance. Everytime the affected file is
another and I can't figure out what the reason may be.
|
|
|
Powered by
FUDForum. Page generated in 0.02339 seconds