Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Helios: Unhandled event loop exception
Helios: Unhandled event loop exception [message #654433] Tue, 15 February 2011 13:19 Go to next message
Marco Lopes is currently offline Marco Lopes
Messages: 56
Registered: September 2010
Member
I started to have this error that i cannot trace back to my app (i use "org.eclipse.nebula.widgets" NumberFormatter, that woked pretty well in previous versions of Eclipse).

This error does not seem affect anything crucial...

Thanks.

!ENTRY org.eclipse.ui 4 0 2011-02-15 18:14:42.716
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at java.lang.String.substring(Unknown Source)
at org.eclipse.jface.internal.databinding.swt.SWTVetoableValueD ecorator$1.handleEvent(SWTVetoableValueDecorator.java:38)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Text.verifyText(Text.java:2066)
at org.eclipse.swt.widgets.Text.sendKeyEvent(Text.java:1517)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1099 )
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1508)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4268)
at org.eclipse.swt.widgets.Text.WM_CHAR(Text.java:2175)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4160 )
at org.eclipse.swt.widgets.Text.windowProc(Text.java:2170)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:24 59)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3655)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
at org.eclipse.jface.window.Window.open(Window.java:801)
at rcpcolibri.ui.workbench.actions.OpenPreferencePageAction.run (OpenPreferencePageAction.java:90)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:452)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:24 38)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at rcpcolibri.Application.start(Application.java:56)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.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(EclipseS tarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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)
Re: Helios: Unhandled event loop exception [message #655418 is a reply to message #654433] Sun, 20 February 2011 12:32 Go to previous messageGo to next message
Wim Jongman is currently offline Wim Jongman
Messages: 275
Registered: July 2009
Senior Member

Hi Marco,

Something wrong in the preference page that is opened by the rcpcolibri
action?

Regards,

Wim


> I started to have this error that i cannot trace back to my app (i use
"org.eclipse.nebula.widgets" NumberFormatter, that woked pretty well in
previous versions of Eclipse).
>
> This error does not seem affect anything crucial...
>
> Thanks.
>
> !ENTRY org.eclipse.ui 4 0 2011-02-15 18:14:42.716
> !MESSAGE Unhandled event loop exception
> !STACK 0
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> at java.lang.String.substring(Unknown Source)
> at java.lang.String.substring(Unknown Source)
> at org.eclipse.jface.internal.databinding.swt.SWTVetoableValueD
ecorator$1.handleEvent(SWTVetoableValueDecorator.java:38)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
> at org.eclipse.swt.widgets.Text.verifyText(Text.java:2066)
> at org.eclipse.swt.widgets.Text.sendKeyEvent(Text.java:1517)
> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1099 )
> at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1508)
> at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4268)
> at org.eclipse.swt.widgets.Text.WM_CHAR(Text.java:2175)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4160 )
> at org.eclipse.swt.widgets.Text.windowProc(Text.java:2170)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873 )
> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:24 59)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3655)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
> at org.eclipse.jface.window.Window.open(Window.java:801)
> at rcpcolibri.ui.workbench.actions.OpenPreferencePageAction.run
(OpenPreferencePageAction.java:90)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
> at org.eclipse.jface.action.ActionContributionItem.handleWidget
Selection(ActionContributionItem.java:584)
> at org.eclipse.jface.action.ActionContributionItem.access$2(Act
ionContributionItem.java:501)
> at org.eclipse.jface.action.ActionContributionItem$6.handleEven
t(ActionContributionItem.java:452)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:4066)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3657)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2640)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:24 38)
> at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault
(Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work
bench.java:664)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at rcpcolibri.Application.start(Application.java:56)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips
eAppHandle.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(EclipseS
tarter.java:369)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
tarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> 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)
Re: Helios: Unhandled event loop exception [message #665648 is a reply to message #654433] Fri, 15 April 2011 07:12 Go to previous messageGo to next message
Yves Schubert is currently offline Yves Schubert
Messages: 1
Registered: April 2011
Junior Member
Hello!

I am having the same problem.

I use the Nebula NumberFormatter with databinding and get the same exception when:

- Select all text in the textbox and press DEL or entering a small number
- Go to the end of the string and press BACKSPACE

However, all data is consistent and the exception does not affect the logic of my code.

Though, it is not very nice Wink


I found a documented bug at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=318782
that describes the same errornous behavior. They say that it is fixed, but i don't really think so?

My Eclipse Version:
Version: Helios Service Release 2
Build id: 20110301-1815

The Exception:

!ENTRY org.eclipse.ui 4 0 2011-04-15 13:06:38.542
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at java.lang.String.substring(Unknown Source)
at org.eclipse.jface.internal.databinding.swt.SWTVetoableValueD ecorator$1.handleEvent(SWTVetoableValueDecorator.java:38)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Text.verifyText(Text.java:2066)
at org.eclipse.swt.widgets.Text.sendKeyEvent(Text.java:1517)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1099 )
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1508)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4268)
at org.eclipse.swt.widgets.Text.WM_CHAR(Text.java:2175)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4160 )
at org.eclipse.swt.widgets.Text.windowProc(Text.java:2170)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:24 59)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3655)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:24 38)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at de.cinovo.tcc.rcp.core.TCC.start(TCC.java:28)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.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(EclipseS tarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
Re: Helios: Unhandled event loop exception [message #665745 is a reply to message #665648] Fri, 15 April 2011 13:25 Go to previous message
Marco Lopes is currently offline Marco Lopes
Messages: 56
Registered: September 2010
Member
Yves Schubert wrote on Fri, 15 April 2011 07:12
Hello!

I am having the same problem.

I use the Nebula NumberFormatter with databinding and get the same exception when:

- Select all text in the textbox and press DEL or entering a small number
- Go to the end of the string and press BACKSPACE

However, all data is consistent and the exception does not affect the logic of my code.

Though, it is not very nice Wink


I found a documented bug at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=318782
that describes the same errornous behavior. They say that it is fixed, but i don't really think so?

My Eclipse Version:
Version: Helios Service Release 2
Build id: 20110301-1815



Exactly my problem.

Still not fixed on the latest Eclipse release: Indigo M6a (Build id: 20110319-2305)

Using Windows XP SP3. I will test also in Ubuntu and OS X.

[Updated on: Fri, 15 April 2011 13:26]

Report message to a moderator

Previous Topic:Can I open an Internet Explorer window from RCP app?
Next Topic:ViewPart closing - causing content provider to be disposed
Goto Forum:
  


Current Time: Wed Jul 30 01:24:12 EDT 2014

Powered by FUDForum. Page generated in 0.02708 seconds