錯誤的詳細信息如下。我剛剛安裝在新的Windows 7機器上,在EGit中完成任何提交時出現此錯誤。我可以使用Git Bash shell成功提交。我檢查了EGit的更新,但沒有找到。其他的EGit函數像pull和push可以工作,但我必須在Git shell中進行提交。Eclipse EGit提交失敗 - 導致:java.io.EOFException
org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of commit command
at org.eclipse.jgit.api.CommitCommand.call(CommitCommand.java:277)
at org.eclipse.egit.core.op.CommitOperation.commit(CommitOperation.java:255)
at org.eclipse.egit.core.op.CommitOperation.access$7(CommitOperation.java:233)
at org.eclipse.egit.core.op.CommitOperation$1.run(CommitOperation.java:197)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2326)
at org.eclipse.egit.core.op.CommitOperation.execute(CommitOperation.java:207)
at org.eclipse.egit.ui.internal.commit.CommitUI$2.run(CommitUI.java:220)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.io.EOFException: Input did not match supplied length. 239 bytes are missing.
at org.eclipse.jgit.storage.file.ObjectDirectoryInserter.shortInput(ObjectDirectoryInserter.java:237)
at org.eclipse.jgit.storage.file.ObjectDirectoryInserter.toTemp(ObjectDirectoryInserter.java:168)
at org.eclipse.jgit.storage.file.ObjectDirectoryInserter.insert(ObjectDirectoryInserter.java:105)
at org.eclipse.jgit.api.CommitCommand.createTemporaryIndex(CommitCommand.java:363)
at org.eclipse.jgit.api.CommitCommand.call(CommitCommand.java:195)
... 8 more
會話數據:
發生內部錯誤的commit命令
堆棧跟蹤執行過程中陷入 異常
eclipse.buildId=M20120208-0800
java.version=1.6.0_32
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.rcp.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.rcp.product
啊哈,發現這對Eclipse Egit社區論壇描述一個ne阿爾利idenditcal問題:http://www.eclipse.org/forums/index.php/m/820938/?srch=eofexception#msg_820938
的解決方案是安裝最新每晚從這裏建立既例如:It和JGit:http://download.eclipse.org/egit/updates-nightly/