Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322302 - Exception when selecting "Tag..." from context menu on a project.
Summary: Exception when selecting "Tag..." from context menu on a project.
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 0.9.0-M3   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-10 19:41 EDT by Robin Rosenberg CLA
Modified: 2010-08-30 09:00 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Rosenberg CLA 2010-08-10 19:41:06 EDT
org.eclipse.core.commands.ExecutionException: Object 8a478f811aa2770d0898c286a48716d8ff20fbae is not a tag.
	at org.eclipse.egit.ui.internal.actions.RepositoryActionHandler.getRevTags(RepositoryActionHandler.java:330)
	at org.eclipse.egit.ui.internal.actions.TagActionHandler.execute(TagActionHandler.java:81)
	at org.eclipse.egit.ui.internal.actions.RepositoryAction.run(RepositoryAction.java:98)
	at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3552)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3171)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Caused by: org.eclipse.jgit.errors.IncorrectObjectTypeException: Object 8a478f811aa2770d0898c286a48716d8ff20fbae is not a tag.
	at org.eclipse.jgit.revwalk.RevWalk.parseTag(RevWalk.java:768)
	at org.eclipse.egit.ui.internal.actions.RepositoryActionHandler.getRevTags(RepositoryActionHandler.java:326)
	... 30 more
Comment 1 Stefan Lay CLA 2010-08-25 08:56:36 EDT
Code review at http://egit.eclipse.org/r/#change,1414
Comment 2 Stefan Lay CLA 2010-08-25 09:00:08 EDT
Currently the Tag dialog only supports annotated tags. This should be changed (bug 323607). To solve this bug the proposed solution is to just ignore the lightweight tags in order to avoid the exception.
Comment 3 Stefan Lay CLA 2010-08-30 04:18:49 EDT
Fixed with 1d201adf81db884671e293babf8ecaff647638a0