Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 124044 - Task Repositories -> Properties: IndexOutOfBounds on Mac OS X
Summary: Task Repositories -> Properties: IndexOutOfBounds on Mac OS X
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 0.4   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Mik Kersten CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 121318 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-16 17:41 EST by Gerd Castan CLA
Modified: 2006-01-16 18:29 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerd Castan CLA 2006-01-16 17:41:15 EST
After adding eclipse bugzilla to the task repositories, I chose properties of this reposiries (context menu). This creates the following exception.

Mac OS X 10.4.4, Mylar 0.4.7 on Eclipse 3.2M4

!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: 8
	at java.lang.String.getChars(String.java:721)
	at org.eclipse.swt.widgets.Text.getEditText(Text.java:1062)
	at org.eclipse.swt.widgets.Text.getText(Text.java:1008)
	at org.eclipse.jface.preference.StringFieldEditor.checkState(StringFieldEditor.java:185)
	at org.eclipse.jface.preference.StringFieldEditor.refreshValidState(StringFieldEditor.java:395)
	at org.eclipse.mylar.tasklist.ui.wizards.RepositorySettingsPage$RepositoryStringFieldEditor.refreshValidState(RepositorySettingsPage.java:139)
	at org.eclipse.jface.preference.StringFieldEditor.valueChanged(StringFieldEditor.java:495)
	at org.eclipse.jface.preference.StringFieldEditor.setStringValue(StringFieldEditor.java:439)
	at org.eclipse.mylar.tasklist.ui.wizards.RepositorySettingsPage.createControl(RepositorySettingsPage.java:84)
	at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:179)
	at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:611)
	at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:502)
	at org.eclipse.jface.window.Window.create(Window.java:417)
	at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1051)
	at org.eclipse.mylar.tasklist.repositories.ui.TaskRepositoryPropertiesAction.run(TaskRepositoryPropertiesAction.java:54)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:492)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:530)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:480)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:392)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1446)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1470)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1455)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1232)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3243)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2894)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1762)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1726)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:397)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:109)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:379)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
	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:585)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
	at org.eclipse.core.launcher.Main.run(Main.java:977)
	at org.eclipse.core.launcher.Main.main(Main.java:952)
Comment 1 Mik Kersten CLA 2006-01-16 17:45:48 EST
*** Bug 121318 has been marked as a duplicate of this bug. ***
Comment 2 Gerd Castan CLA 2006-01-16 17:49:32 EST
'Add existing Bugzilla Report' works now, despite this exception. So it's no showstopper any more.
Comment 3 Mik Kersten CLA 2006-01-16 17:50:17 EST
Great.  I think I know how to fix it, will post later today.
Comment 4 Mik Kersten CLA 2006-01-16 18:29:20 EST
I just tried this with an OS X box and did not see any problems when using Mylar 0.4.7 (added account and set password with no exceptions).  However, I've made this code fail gracefully so you should not see any more exceptions, although an info will be put into the log if a similar failure occurs.  If you're seeing those messages or any strange behavior in 0.4.8 feel free to reopen.