Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » How to access GitServlet(How to access GitServlet)
How to access GitServlet [message #1814357] Tue, 10 September 2019 06:59 Go to next message
chao chen is currently offline chao chenFriend
Messages: 13
Registered: June 2019
Junior Member
As you can see,there are some exceptions:

Exception in thread "main" org.eclipse.jgit.api.errors.TransportException: invalid advertisement of 001e# service=git-upload-pack
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:255)
at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:302)
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:200)
at org.requirement.git.GitClone.cloneRepository(GitClone.java:48)
at org.requirement.api.Main.main(Main.java:27)
Caused by: org.eclipse.jgit.errors.PackProtocolException: invalid advertisement of 001e# service=git-upload-pack
at org.eclipse.jgit.transport.TransportHttp$HttpObjectDB.invalidAdvertisement(TransportHttp.java:1291)
at org.eclipse.jgit.transport.TransportHttp$HttpObjectDB.readAdvertisedImpl(TransportHttp.java:1257)
at org.eclipse.jgit.transport.TransportHttp.newDumbConnection(TransportHttp.java:407)
at org.eclipse.jgit.transport.TransportHttp.getConnection(TransportHttp.java:379)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:393)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:138)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:124)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1292)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:244)
... 4 more

There are some problems with jgit clone, but it is ok to use the git.
Re: How to access GitServlet [message #1814375 is a reply to message #1814357] Tue, 10 September 2019 13:09 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
Just a stack trace is not enough information so that we could help.
What did you try ?
Which version of JGit did you use ?
Which version of Java ?
Which operating system ?
...
Re: How to access GitServlet [message #1814399 is a reply to message #1814375] Wed, 11 September 2019 02:41 Go to previous messageGo to next message
chao chen is currently offline chao chenFriend
Messages: 13
Registered: June 2019
Junior Member
Thank you very much.I want to access the jgit's GitServlet through the jgit client.The version of jgit is 5.4.0.20061061210030-r.The system is win10.the java version is jdk1.8.For details, you can see the picture.

[Updated on: Wed, 11 September 2019 02:44]

Report message to a moderator

Re: How to access GitServlet [message #1814582 is a reply to message #1814399] Fri, 13 September 2019 14:20 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
I will not parse screenshots to read your code, maybe you have it somewhere on github ?
Previous Topic:Missing bundles in JGit P2 repository
Next Topic:How to authenticate
Goto Forum:
  


Current Time: Fri Apr 19 14:27:20 GMT 2024

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

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

Back to the top