Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » jgit.sh on wsl(Unable to find ZIP central directory)
jgit.sh on wsl [message #1853030] Wed, 15 June 2022 12:09 Go to next message
Paul Brooks is currently offline Paul BrooksFriend
Messages: 3
Registered: June 2022
Junior Member
Using Windows 11, WSL version 2, Ubuntu, I tried:

git init
git add *
git commit -m "initial commit"
git remote add origin amazon-s3:///home/<username>/.jgit@<AWS user>/temp
jgit.sh push


and received the error below. At other time, I got an error about unsupported URI, but can't seem to replicate it.

Quote:

Exception in thread "main" java.lang.IllegalStateException: java.io.IOException: Unable to find ZIP central directory records after reading 65792 bytes
at org.springframework.boot.loader.ExecutableArchiveLauncher.<init>(ExecutableArchiveLauncher.java:52)
at org.springframework.boot.loader.JarLauncher.<init>(JarLauncher.java:48)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
Caused by: java.io.IOException: Unable to find ZIP central directory records after reading 65792 bytes
at org.springframework.boot.loader.jar.CentralDirectoryEndRecord.<init>(CentralDirectoryEndRecord.java:70)
at org.springframework.boot.loader.jar.CentralDirectoryParser.parse(CentralDirectoryParser.java:51)
at org.springframework.boot.loader.jar.JarFile.<init>(JarFile.java:139)
at org.springframework.boot.loader.jar.JarFile.<init>(JarFile.java:123)
at org.springframework.boot.loader.jar.JarFile.<init>(JarFile.java:109)
at org.springframework.boot.loader.jar.JarFile.<init>(JarFile.java:100)
at org.springframework.boot.loader.archive.JarFileArchive.<init>(JarFileArchive.java:73)
at org.springframework.boot.loader.archive.JarFileArchive.<init>(JarFileArchive.java:69)
at org.springframework.boot.loader.Launcher.createArchive(Launcher.java:163)
at org.springframework.boot.loader.ExecutableArchiveLauncher.<init>(ExecutableArchiveLauncher.java:48)


Java version:

openjdk version "17.0.3" 2022-04-19
OpenJDK Runtime Environment (build 17.0.3+7-Ubuntu-0ubuntu0.20.04.1)
OpenJDK 64-Bit Server VM (build 17.0.3+7-Ubuntu-0ubuntu0.20.04.1, mixed mode, sharing)
Re: jgit.sh on wsl [message #1853082 is a reply to message #1853030] Fri, 17 June 2022 03:23 Go to previous message
Paul Brooks is currently offline Paul BrooksFriend
Messages: 3
Registered: June 2022
Junior Member
Ok, able to replicate this error now:

Quote:

org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of push command
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:174)
at org.eclipse.jgit.pgm.Push.run(Push.java:107)
at org.eclipse.jgit.pgm.TextBuiltin.execute(TextBuiltin.java:239)
at org.eclipse.jgit.pgm.Main.execute(Main.java:245)
at org.eclipse.jgit.pgm.Main.run(Main.java:133)
at org.eclipse.jgit.pgm.Main.main(Main.java:105)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
Caused by: org.eclipse.jgit.errors.NotSupportedException: URI not supported: amazon-s3:///home/jpbrooks/.jgit@jpbrooksvcu/temp
at org.eclipse.jgit.transport.Transport.open(Transport.java:528)
at org.eclipse.jgit.transport.Transport.openAll(Transport.java:449)
at org.eclipse.jgit.transport.Transport.openAll(Transport.java:339)
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:133)
Previous Topic:jgit.sh in a Window Command Prompt
Next Topic:Does JGIT allow for running commands in parallel?
Goto Forum:
  


Current Time: Thu Oct 06 23:48:17 GMT 2022

Powered by FUDForum. Page generated in 0.02368 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top