Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » EGit crash after update Eclipse Mars
EGit crash after update Eclipse Mars [message #1710521] Wed, 07 October 2015 09:53 Go to next message
Tim Mickelson is currently offline Tim MickelsonFriend
Messages: 3
Registered: October 2015
Junior Member
I updated Eclipse Mars today and after that nothing works with GIT. I have already tried to run with:
eclipse -clean


Nothing works, in the view of GIT repositories there is a red icon with the text Could not create the view: org.eclipse.egit.ui.RepositoriesView. There are stacktraces with in the Error Log view. If neccessary I can post the stack trace of any of the FrameworkEvent ERROR? Please let me know what is going on. Please let me know any other information needed.

Platform: Windows 10
Java: JDK1.8
Eclipse: Mars

Greetings, Tim
Re: EGit crash after update Eclipse Mars [message #1710553 is a reply to message #1710521] Wed, 07 October 2015 13:39 Go to previous messageGo to next message
Tim Mickelson is currently offline Tim MickelsonFriend
Messages: 3
Registered: October 2015
Junior Member
Update> Since this was very blocking, I downloaded Eclipse Mars, installed all my plugins from scratch and now it works. Very ugly, but life must go on. I have the old Eclipse installation if someone needs more info, this should not happened of course! Maybe it was due to the updates, after installing the plugins there are no reported updates when I check, so maybe something was different performing an update instead of installation from scratch.

For me personally, as for now, this is a closed problem. But not resolved.
Re: EGit crash after update Eclipse Mars [message #1710556 is a reply to message #1710521] Wed, 07 October 2015 13:41 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Tim,

We ran into something similar recently. I turned out that there were
two versions of some bundles (sorry, I forget which ones, but something
to do with *jsch*) and this resulted in a wiring exception when the
bundles were wired by OSGi and as a result, the egit.ui bundle was not
being activated so nothing in the UI worked; the EGit views couldn't be
shown. Likely (hopefully) this won't happen if you install a fresh
Mars.1 package rather than doing an update...


On 07/10/2015 3:10 PM, Tim Mickelson wrote:
> I updated Eclipse Mars today and after that nothing works with GIT. I
> have already tried to run with:
> eclipse -clean
>
> Nothing works, in the view of GIT repositories there is a red icon
> with the text Could not create the view:
> org.eclipse.egit.ui.RepositoriesView. There are stacktraces with in
> the Error Log view. If neccessary I can post the stack trace of any of
> the FrameworkEvent ERROR? Please let me know what is going on. Please
> let me know any other information needed.
>
> Platform: Windows 10
> Java: JDK1.8
> Eclipse: Mars
>
> Greetings, Tim


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EGit crash after update Eclipse Mars [message #1720652 is a reply to message #1710521] Wed, 20 January 2016 08:14 Go to previous messageGo to next message
Sebastian Steinke is currently offline Sebastian SteinkeFriend
Messages: 2
Registered: January 2016
Junior Member
Same here. It's com.jcraft.jsch, see FrameworkEvent ERROR below. Any idea how to fix this without fresh installation?

I am using Luna (eclipse.buildId=4.4.2.M20150204-1700)

org.osgi.framework.BundleException: Could not resolve module: org.eclipse.mylyn.git.ui [883]
  Unresolved requirement: Require-Bundle: org.eclipse.egit.ui
    -> Bundle-SymbolicName: org.eclipse.egit.ui; bundle-version="4.1.1.201511131810-r"; singleton:="true"
       org.eclipse.egit.ui [1018]
         No resolution report for the bundle.  Bundle was not resolved because of a uses contraint violation.
  org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.eclipse.egit.ui [osgi.identity; osgi.identity="org.eclipse.egit.ui"; type="osgi.bundle"; version:Version="4.1.1.201511131810-r"; singleton:="true"] because it is exposed to package 'com.jcraft.jsch' from resources com.jcraft.jsch [osgi.identity; osgi.identity="com.jcraft.jsch"; type="osgi.bundle"; version:Version="0.1.53.v201508180515"] and com.jcraft.jsch [osgi.identity; osgi.identity="com.jcraft.jsch"; type="osgi.bundle"; version:Version="0.1.51.v201410302000"] via two dependency chains.

Chain 1:
  org.eclipse.egit.ui [osgi.identity; osgi.identity="org.eclipse.egit.ui"; type="osgi.bundle"; version:Version="4.1.1.201511131810-r"; singleton:="true"]
    require: (&(osgi.wiring.bundle=com.jcraft.jsch)(&(bundle-version>=0.1.37)(!(bundle-version>=0.2.0))))
     |
    provide: osgi.wiring.bundle: com.jcraft.jsch
  com.jcraft.jsch [osgi.identity; osgi.identity="com.jcraft.jsch"; type="osgi.bundle"; version:Version="0.1.53.v201508180515"]

Chain 2:
  org.eclipse.egit.ui [osgi.identity; osgi.identity="org.eclipse.egit.ui"; type="osgi.bundle"; version:Version="4.1.1.201511131810-r"; singleton:="true"]
    require: (&(osgi.wiring.bundle=org.eclipse.jsch.core)(&(bundle-version>=1.1.100)(!(bundle-version>=2.0.0))))
     |
    provide: osgi.wiring.bundle; bundle-version:Version="1.1.500.v20131112-1442"; osgi.wiring.bundle="org.eclipse.jsch.core"; singleton:="true"
  org.eclipse.jsch.core [osgi.identity; osgi.identity="org.eclipse.jsch.core"; type="osgi.bundle"; version:Version="1.1.500.v20131112-1442"; singleton:="true"]
    require: (&(osgi.wiring.bundle=com.jcraft.jsch)(&(bundle-version>=0.1.50)(!(bundle-version>=1.0.0))))
     |
    provide: osgi.wiring.bundle: com.jcraft.jsch
  com.jcraft.jsch [osgi.identity; osgi.identity="com.jcraft.jsch"; type="osgi.bundle"; version:Version="0.1.51.v201410302000"]
	at org.eclipse.osgi.container.Module.start(Module.java:434)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Re: EGit crash after update Eclipse Mars [message #1720818 is a reply to message #1720652] Thu, 21 January 2016 09:05 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Sebastian,

No, I have no idea how to fix it in place. Given I use the Oomph
installer to create all my installations, it takes just 2 minutes to
create a fresh new one, so I can't be bothered to try repairing a bad
old installation.


On 20/01/2016 4:05 PM, Sebastian Steinke wrote:
> Same here. It's com.jcraft.jsch, see FrameworkEvent ERROR below. Any
> idea how to fix this without fresh installation?
>
> I am using Luna (eclipse.buildId=4.4.2.M20150204-1700)
>
> org.osgi.framework.BundleException: Could not resolve module:
> org.eclipse.mylyn.git.ui [883]
> Unresolved requirement: Require-Bundle: org.eclipse.egit.ui
> -> Bundle-SymbolicName: org.eclipse.egit.ui;
> bundle-version="4.1.1.201511131810-r"; singleton:="true"
> org.eclipse.egit.ui [1018]
> No resolution report for the bundle. Bundle was not resolved
> because of a uses contraint violation.
> org.osgi.service.resolver.ResolutionException: Uses constraint
> violation. Unable to resolve resource org.eclipse.egit.ui
> [osgi.identity; osgi.identity="org.eclipse.egit.ui";
> type="osgi.bundle"; version:Version="4.1.1.201511131810-r";
> singleton:="true"] because it is exposed to package 'com.jcraft.jsch'
> from resources com.jcraft.jsch [osgi.identity;
> osgi.identity="com.jcraft.jsch"; type="osgi.bundle";
> version:Version="0.1.53.v201508180515"] and com.jcraft.jsch
> [osgi.identity; osgi.identity="com.jcraft.jsch"; type="osgi.bundle";
> version:Version="0.1.51.v201410302000"] via two dependency chains.
>
> Chain 1:
> org.eclipse.egit.ui [osgi.identity;
> osgi.identity="org.eclipse.egit.ui"; type="osgi.bundle";
> version:Version="4.1.1.201511131810-r"; singleton:="true"]
> require:
> (&(osgi.wiring.bundle=com.jcraft.jsch)(&(bundle-version>=0.1.37)(!(bundle-version>=0.2.0))))
> |
> provide: osgi.wiring.bundle: com.jcraft.jsch
> com.jcraft.jsch [osgi.identity; osgi.identity="com.jcraft.jsch";
> type="osgi.bundle"; version:Version="0.1.53.v201508180515"]
>
> Chain 2:
> org.eclipse.egit.ui [osgi.identity;
> osgi.identity="org.eclipse.egit.ui"; type="osgi.bundle";
> version:Version="4.1.1.201511131810-r"; singleton:="true"]
> require:
> (&(osgi.wiring.bundle=org.eclipse.jsch.core)(&(bundle-version>=1.1.100)(!(bundle-version>=2.0.0))))
> |
> provide: osgi.wiring.bundle;
> bundle-version:Version="1.1.500.v20131112-1442";
> osgi.wiring.bundle="org.eclipse.jsch.core"; singleton:="true"
> org.eclipse.jsch.core [osgi.identity;
> osgi.identity="org.eclipse.jsch.core"; type="osgi.bundle";
> version:Version="1.1.500.v20131112-1442"; singleton:="true"]
> require:
> (&(osgi.wiring.bundle=com.jcraft.jsch)(&(bundle-version>=0.1.50)(!(bundle-version>=1.0.0))))
> |
> provide: osgi.wiring.bundle: com.jcraft.jsch
> com.jcraft.jsch [osgi.identity; osgi.identity="com.jcraft.jsch";
> type="osgi.bundle"; version:Version="0.1.51.v201410302000"]
> at org.eclipse.osgi.container.Module.start(Module.java:434)
> at
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
> at
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
> at
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
> at
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
> at
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EGit crash after update Eclipse Mars [message #1721959 is a reply to message #1720818] Mon, 01 February 2016 21:17 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
Sounds like https://bugs.eclipse.org/bugs/show_bug.cgi?id=478695
Try to start Eclipse with the -clean option and see if this helps.
Re: EGit crash after update Eclipse Mars [message #1721979 is a reply to message #1721959] Tue, 02 February 2016 05:59 Go to previous messageGo to next message
Sebastian Steinke is currently offline Sebastian SteinkeFriend
Messages: 2
Registered: January 2016
Junior Member
Thanks Matthias. Yes, #478695 looks like the same issue. I already moved to a fresh installation.
Re: EGit crash after update Eclipse Mars [message #1733771 is a reply to message #1710521] Tue, 31 May 2016 15:31 Go to previous messageGo to next message
Miroslav Zaťko is currently offline Miroslav ZaťkoFriend
Messages: 3
Registered: February 2016
Junior Member
for me it was because of not removing old version of jgit plugin .p2/pool/plugins/org.eclipse.jgit_4.2.0.201601211800-r.jar when updated to new .p2/pool/plugins/org.eclipse.jgit_4.4.0.201605252151.jar
I removed it manually an it is working now
Re: EGit crash after update Eclipse Mars [message #1735969 is a reply to message #1733771] Fri, 24 June 2016 06:32 Go to previous messageGo to next message
Matteo Piccolo is currently offline Matteo PiccoloFriend
Messages: 2
Registered: June 2016
Junior Member
Miroslav Zat'ko wrote on Tue, 31 May 2016 15:31
for me it was because of not removing old version of jgit plugin .p2/pool/plugins/org.eclipse.jgit_4.2.0.201601211800-r.jar when updated to new .p2/pool/plugins/org.eclipse.jgit_4.4.0.201605252151.jar
I removed it manually an it is working now


Thank you Miroslav : I had same issue and I solved with your procedure.
In detail, I manually deleted all
org.eclipse.egit****_4.2.0.201601211800-r.jar
files and now is working good.


Only one difference: my files were not into P2 directory.
They was into C:\Program Files (x86)\eclipse\plugins
Re: EGit crash after update Eclipse Mars [message #1735970 is a reply to message #1733771] Fri, 24 June 2016 06:32 Go to previous messageGo to next message
Matteo Piccolo is currently offline Matteo PiccoloFriend
Messages: 2
Registered: June 2016
Junior Member
Miroslav Zat'ko wrote on Tue, 31 May 2016 15:31
for me it was because of not removing old version of jgit plugin .p2/pool/plugins/org.eclipse.jgit_4.2.0.201601211800-r.jar when updated to new .p2/pool/plugins/org.eclipse.jgit_4.4.0.201605252151.jar
I removed it manually an it is working now

Re: EGit crash after update Eclipse Mars [message #1764226 is a reply to message #1735970] Fri, 26 May 2017 19:12 Go to previous message
Spencer Williams is currently offline Spencer WilliamsFriend
Messages: 5
Registered: November 2014
Junior Member
So, I tried removing the older Egit and Jgit plugin and feature files from ~/.p2/pool/plugins and ~/.p2/pool/features, but it didn't help. I then tried reinstalling Eclipse in the same folder with the Eclipse Installer and fortunately that did restore the Git plugin, although it looks like there are two selections for it in the Open Perspective window, one surrounded by angle brackets, but they both seem to work.
Previous Topic:Cannot import (local) Git repository
Next Topic:Flaky web access to git repository
Goto Forum:
  


Current Time: Fri Apr 19 16:30:19 GMT 2024

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

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

Back to the top