Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » nullpointerexception when trying to push to remote
nullpointerexception when trying to push to remote [message #885195] Tue, 12 June 2012 15:34 Go to next message
teebee Missing name is currently offline teebee Missing nameFriend
Messages: 4
Registered: June 2011
Junior Member
Hi all

Always when I try to push to remote I get a NullPointerException.

Commit,pull and fetch works fine.
I tried almost everyrhing, clone a repository, create a new one and trying to push but nothing worked.
Btw the remote repo is empty if that makes a difference.

Maybe someone can help me.

Here is the trace:


!ENTRY org.eclipse.core.jobs 4 2 2012-06-12 17:07:02.437
!MESSAGE An internal error occurred during: "Push to hannes - origin".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.jgit.lib.ObjectIdOwnerMap.get(ObjectIdOwnerMap.java:131)
	at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:889)
	at org.eclipse.jgit.storage.pack.PackWriter.findObjectsToPack(PackWriter.java:1557)
	at org.eclipse.jgit.storage.pack.PackWriter.preparePack(PackWriter.java:707)
	at org.eclipse.jgit.storage.pack.PackWriter.preparePack(PackWriter.java:670)
	at org.eclipse.jgit.transport.WalkPushConnection.sendpack(WalkPushConnection.java:229)
	at org.eclipse.jgit.transport.WalkPushConnection.push(WalkPushConnection.java:169)
	at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:141)
	at org.eclipse.jgit.transport.Transport.push(Transport.java:1120)
	at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:152)
	at org.eclipse.egit.core.op.PushOperation.run(PushOperation.java:227)
	at org.eclipse.egit.ui.internal.push.PushOperationUI.execute(PushOperationUI.java:145)
	at org.eclipse.egit.ui.internal.push.PushOperationUI$1.run(PushOperationUI.java:202)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)



and my .git/config


[core]
	repositoryformatversion = 0
	filemode = false
	logallrefupdates = true
	autocrlf = false
[remote "origin"]
	url = sftp://git@jonsen.org/home/git/hannes.git
[branch "master"]
	remote = origin
	merge = refs/heads/master

Re: nullpointerexception when trying to push to remote [message #885344 is a reply to message #885195] Tue, 12 June 2012 21:05 Go to previous messageGo to next message
teebee Missing name is currently offline teebee Missing nameFriend
Messages: 4
Registered: June 2011
Junior Member
i solved the problem myself. I had to do a manual push from the shell via command git push origin master(so the repo wasnt empy anymore) and after that the push command worked.
Re: nullpointerexception when trying to push to remote [message #885667 is a reply to message #885344] Wed, 13 June 2012 12:16 Go to previous messageGo to next message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
Registered: June 2011
Senior Member
You can do this in egit by using the "Push..." operation, under Team -> Remote (also available on the right-click menu of entries in the Git Repositories view). The "Push..." operation lets you specify what you're pushing, and where.

By contrast, the "Push to Upstream" operation (aka "Push Changes to Upstream" in the toolbar) uses the defaults, which in this case don't make sense.

But egit should really provide a more meaningful failure message here.

Re: nullpointerexception when trying to push to remote [message #886529 is a reply to message #885667] Fri, 15 June 2012 05:59 Go to previous message
Douglas Almquist is currently offline Douglas AlmquistFriend
Messages: 1
Registered: June 2012
Junior Member
I'm having the same issue: null pointer error when publishing/exporting to a remote linux server via SSH.

As I'm fairly new to Eclipse and my environment requires remote servers for publishing this is a show-stopper.

Specific versions:

Eclipse IDE for JavaScript Web Developers.
Version: Indigo Service Release 2
Build id: 20120216-1857

Remote System Explorer v 3.3.2






Previous Topic:Egit unable to clone shared repo
Next Topic:gitolite, on egit failes, on bash works, frustration lvl rising
Goto Forum:
  


Current Time: Fri Mar 29 08:13:59 GMT 2024

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

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

Back to the top