Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321527 - IOOBE when trying to push
Summary: IOOBE when trying to push
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 0.9.0   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-02 12:45 EDT by Benjamin Muskalla CLA
Modified: 2010-09-07 10:59 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Muskalla CLA 2010-08-02 12:45:28 EDT
Using a remote which has just a push URL fails in Egit while trying to push. Config looks like this:

bmuskalla@bmuskalla-laptop:/projects/runtime-New_configurationgit/psftest/.git$ cat config 
[core]
	repositoryformatversion = 0
	filemode = true
	logallrefupdates = true
	autocrlf = false
	bare = false
[remote "origin"]
	url = ssh://git@github.com/bmuskalla/psftest.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[remote "foo"]
	pushurl = ssh://git@github.com/bmuskalla/git-test.git
	push = HEAD:refs/for/master

!ENTRY org.eclipse.ui 4 0 2010-08-02 18:31:35.578
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IndexOutOfBoundsException: Index: 0, Size: 0)
	at org.eclipse.swt.SWT.error(SWT.java:4083)
	at org.eclipse.swt.SWT.error(SWT.java:3998)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3527)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3174)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at org.eclipse.egit.ui.internal.actions.PushActionHandler.execute(PushActionHandler.java:46)
	at org.eclipse.egit.ui.internal.actions.RepositoryAction.run(RepositoryAction.java:93)
	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)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
	at java.util.ArrayList.get(ArrayList.java:322)
	at java.util.Collections$UnmodifiableList.get(Collections.java:1154)
	at org.eclipse.egit.ui.internal.components.RepositorySelection.getURI(RepositorySelection.java:59)
	at org.eclipse.egit.ui.internal.components.RefSpecPage.revalidateImpl(RefSpecPage.java:223)
	at org.eclipse.egit.ui.internal.components.RefSpecPage.access$2(RefSpecPage.java:219)
	at org.eclipse.egit.ui.internal.components.RefSpecPage$2.run(RefSpecPage.java:214)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
	... 35 more
	
This happens as the RefSpecPage only asks for URIs and which is not available for this RemoteConfig. Remote was created with Git Repo view, New Remote, Configure Push
Comment 1 Mathias Kinzler CLA 2010-08-25 08:11:01 EDT
Code review at http://egit.eclipse.org/r/#change,1413
Comment 2 Stefan Lay CLA 2010-09-07 10:59:24 EDT
The bug should be fixed by commit 58877c0d8df281566d259e57baf876acd8120eab