Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » EGit pull results in NPE
EGit pull results in NPE [message #815101] Wed, 07 March 2012 03:27 Go to next message
Marko Asplund is currently offline Marko Asplund
Messages: 4
Registered: July 2009
Junior Member
Hi,

I'm having problems pulling from a remote repository (Github).
I get the following errors when trying to pull:

Pull Canceled
The pull operation was canceled

Problem Occurred
'Pulling Branch 1.0 - koku-services1' has encountered a problem.

An internal error occurred during: "Pulling Branch 1.0 - koku-services1".

details:
An internal error occurred during: "Pulling Branch 1.0 - koku-services1".
java.lang.NullPointerException

Is this a known bug?
Should i report it?
Any suggestions for diagnosing the issue further?

I'm using Eclipse EGit 1.2.0.201112221803-r with Indigo Java EE SR1.

marko
Re: EGit pull results in NPE [message #815120 is a reply to message #815101] Wed, 07 March 2012 03:54 Go to previous messageGo to next message
Marko Asplund is currently offline Marko Asplund
Messages: 4
Registered: July 2009
Junior Member
running git pull from the command line results in:
Already up-to-date.

The remote repository uses ssh public key authentication (with ssh-agent).
Is EGit able to work with this?
Re: EGit pull results in NPE [message #815245 is a reply to message #815120] Wed, 07 March 2012 07:15 Go to previous messageGo to next message
Stefan Lay is currently offline Stefan Lay
Messages: 338
Registered: July 2009
Senior Member
EGit supports ssh public key authentication.

Do you have a stacktrace (from the error log view)?
Re: EGit pull results in NPE [message #815389 is a reply to message #815245] Wed, 07 March 2012 10:45 Go to previous messageGo to next message
Marko Asplund is currently offline Marko Asplund
Messages: 4
Registered: July 2009
Junior Member
How do i configure ssh public key authentication?
Does EGit use ssh-agent or "default" (id_rsa) OpenSSH public key?

I just upgraded to Indigo SR2 and EGit and the messages are somewhat different but the operation still fails.

Pull Failed
Git connection problem.

Maybe you are offline or behind a proxy.
Check your network connection and proxy configuration.

Reason:
git@github.com:myorg/myrepo.git: session is down

details:
git@github.com:myorg/myrepo.git: session is down

The "Error Log" view just tells me the same thing.
There're no messages in Eclipse workspace log.
Re: EGit pull results in NPE [message #816180 is a reply to message #815389] Thu, 08 March 2012 09:19 Go to previous messageGo to next message
Marko Asplund is currently offline Marko Asplund
Messages: 4
Registered: July 2009
Junior Member
After configuring ssh private key as described in:
EGit/User Guide/Remote (not allowed to post a link)
EGit is now able to communicate with the remote repository.

The error message could've been a bit more descriptive of the situation.
Re: EGit pull results in NPE [message #819664 is a reply to message #816180] Tue, 13 March 2012 03:11 Go to previous message
Matthias Sohn is currently offline Matthias Sohn
Messages: 491
Registered: July 2009
Senior Member
Again: could you check the Eclipse error log if you find a stack trace for the NPE you reported ?
Previous Topic:branch.master.merge key for pull
Next Topic:Egit
Goto Forum:
  


Current Time: Thu Apr 17 08:42:41 EDT 2014

Powered by FUDForum. Page generated in 0.02060 seconds