org.eclipse.jgit.api.errors.JGitInternalException

Exception caught during execution of commit command

Samebug tips1

Check if android.permission.WRITE_EXTERNAL_STORAGE is in AndroidManifest.xml. Also, add checks in your code to see if the storage is available to write before trying to write. And last: create a folder to put your files inside.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Stack trace

  • org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of commit command at org.eclipse.jgit.api.CommitCommand.call(CommitCommand.java:317) at com.door43.translationstudio.core.TargetTranslation.commitSync(TargetTranslation.java:982) at com.door43.translationstudio.core.TargetTranslation$1.run(TargetTranslation.java:1018) Caused by: java.io.FileNotFoundException: /storage/emulated/0/translationStudio/translations/aa_mrk_text_reg/.git/refs/heads/master.lock: open failed: ENOENT (No such file or directory) at libcore.io.IoBridge.open(IoBridge.java:418) at java.io.FileOutputStream.<init>(FileOutputStream.java:88) at java.io.FileOutputStream.<init>(FileOutputStream.java:73) at org.eclipse.jgit.internal.storage.file.LockFile.lock(LockFile.java:162) at org.eclipse.jgit.internal.storage.file.RefDirectoryUpdate.tryLock(RefDirectoryUpdate.java:83) at org.eclipse.jgit.lib.RefUpdate.updateImpl(RefUpdate.java:607) at org.eclipse.jgit.lib.RefUpdate.update(RefUpdate.java:486) at org.eclipse.jgit.lib.RefUpdate.update(RefUpdate.java:465) at org.eclipse.jgit.lib.RefUpdate.forceUpdate(RefUpdate.java:444) at org.eclipse.jgit.api.CommitCommand.call(CommitCommand.java:277) ... 2 more Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory) at libcore.io.Posix.open(Native Method) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110) at libcore.io.IoBridge.open(IoBridge.java:402) ... 11 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

justCodeitjustCodeit
619 times, last one
gauravgaurav
39 times, last one
AkshayAkshay
22 times, last one
RajeshRajesh
10 times, last one
Stefan BrauneStefan Braune
20 times, last one
43 more bugmates