Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException [message #893614] Wed, 04 July 2012 22:25 Go to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 466
Registered: July 2009
Senior Member

Hi,

Has anyone seen this before when creating a TitleAreaDialog?

Regards,

Wim

java.lang.ArrayIndexOutOfBoundsException: 0
at org.eclipse.rwt.internal.theme.AbstractThemeAdapter.getPrimaryElement(AbstractThemeAdapter.java:40)
at org.eclipse.swt.internal.widgets.controlkit.ControlThemeAdapter.getFont(ControlThemeAdapter.java:47)
at org.eclipse.swt.widgets.Control.getFont(Control.java:661)
at org.eclipse.rwt.widgets.Upload.computeBrowseButtonSize(Upload.java:368)
at org.eclipse.rwt.widgets.Upload.computeSize(Upload.java:302)
at org.eclipse.swt.layout.GridData.computeSize(GridData.java:482)
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:209)
at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:154)
at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:563)
at org.eclipse.swt.layout.FormData.computeSize(FormData.java:118)
at org.eclipse.swt.layout.FormData.getWidth(FormData.java:147)
at org.eclipse.swt.layout.FormLayout.computeWidth(FormLayout.java:267)
at org.eclipse.swt.layout.FormLayout.layout(FormLayout.java:322)
at org.eclipse.swt.layout.FormLayout.computeSize(FormLayout.java:231)
at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:563)
at org.eclipse.swt.layout.GridData.computeSize(GridData.java:482)
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:209)
at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:154)
at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:563)
at org.eclipse.jface.window.Window.getInitialSize(Window.java:608)
at org.eclipse.jface.dialogs.Dialog.getInitialSize(Dialog.java:1174)
at org.eclipse.jface.dialogs.TitleAreaDialog.getInitialSize(TitleAreaDialog.java:352)
at com.remainsoftware.incidents.ui.dialog.updateIncident.UpdateIncident.getInitialSize(UpdateIncident.java:320)
at org.eclipse.jface.window.Window.initializeBounds(Window.java:780)
at org.eclipse.jface.dialogs.Dialog.initializeBounds(Dialog.java:699)
at org.eclipse.jface.window.Window.create(Window.java:448)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1071)
at com.remainsoftware.incidents.ui.dialog.updateIncident.UpdateIncident.create(UpdateIncident.java:79)
at com.remainsoftware.incidents.handlers.UpdateCall.execute(UpdateCall.java:70)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:306)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:167)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:239)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:239)
at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:843)
at org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:829)
at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:819)
at org.eclipse.swt.internal.widgets.UntypedEventAdapter.dispatchEvent(UntypedEventAdapter.java:646)
at org.eclipse.swt.internal.widgets.UntypedEventAdapter.widgetSelected(UntypedEventAdapter.java:90)
at org.eclipse.swt.events.SelectionEvent.dispatchToObserver(SelectionEvent.java:191)
at org.eclipse.rwt.internal.events.Event.processEvent(Event.java:46)
at org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.java:186)
at org.eclipse.swt.events.TypedEvent.executeNext(TypedEvent.java:208)
at org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1145)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1135)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2733)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2694)
at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:702)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:685)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
at com.remainsoftware.rap.application.Application.createUI(Application.java:36)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:177)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:289)
at java.lang.Thread.run(Unknown Source)
at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)
2012-07-05 00:04:36.027:WARN:oejs.ServletHandler:ERROR: /remain
java.lang.ArrayIndexOutOfBoundsException: 0
at org.eclipse.rwt.internal.theme.AbstractThemeAdapter.getPrimaryElement(AbstractThemeAdapter.java:40)
at org.eclipse.swt.internal.widgets.controlkit.ControlThemeAdapter.getFont(ControlThemeAdapter.java:47)
at org.eclipse.swt.widgets.Control.getFont(Control.java:661)
at org.eclipse.rwt.widgets.internal.uploadkit.UploadLCA.renderChanges(UploadLCA.java:141)
at org.eclipse.rwt.lifecycle.AbstractWidgetLCA.render(AbstractWidgetLCA.java:35)
at org.eclipse.swt.internal.widgets.displaykit.DisplayLCA$RenderVisitor.render(DisplayLCA.java:88)
at org.eclipse.swt.internal.widgets.displaykit.DisplayLCA$RenderVisitor.doVisit(DisplayLCA.java:72)
at org.eclipse.swt.internal.widgets.WidgetTreeVisitor$AllWidgetTreeVisitor.visit(WidgetTreeVisitor.java:31)
at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:62)
at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleChildren(WidgetTreeVisitor.java:122)
at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:52)
at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleChildren(WidgetTreeVisitor.java:122)
at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:52)
at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleChildren(WidgetTreeVisitor.java:122)
at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:52)
at org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.renderShells(DisplayLCA.java:194)
at org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.render(DisplayLCA.java:164)
at org.eclipse.rwt.internal.lifecycle.Render.execute(Render.java:29)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.continueLifeCycle(RWTLifeCycle.java:158)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.sleep(RWTLifeCycle.java:229)
at org.eclipse.swt.widgets.Display.sleep(Display.java:1176)
at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:361)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2734)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2694)
at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:702)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:685)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
at com.remainsoftware.rap.application.Application.createUI(Application.java:36)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:177)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:289)
at java.lang.Thread.run(Unknown Source)
at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)

Re: ArrayIndexOutOfBoundsException [message #893668 is a reply to message #893614] Thu, 05 July 2012 08:07 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Wim,
which RAP version are you using? There is no
org.eclipse.rwt.widgets.Upload any more. It's seems that you are using
the obsolete Upload widget from the old CVS sandbox. Please use the new
org.eclipse.rap.rwt.supplemental.fileupload or
org.eclipse.rap.rwt.supplemental.filedialog from the incubator [1].

[1]
http://git.eclipse.org/c/rap/incubator/org.eclipse.rap.incubator.fileupload.git
Best,
Ivan

On 7/5/2012 1:25 AM, Wim Jongman wrote:
> Hi,
>
> Has anyone seen this before when creating a TitleAreaDialog?
>
> Regards,
>
> Wim
>
> java.lang.ArrayIndexOutOfBoundsException: 0
> at
> org.eclipse.rwt.internal.theme.AbstractThemeAdapter.getPrimaryElement(AbstractThemeAdapter.java:40)
> at
> org.eclipse.swt.internal.widgets.controlkit.ControlThemeAdapter.getFont(ControlThemeAdapter.java:47)
> at org.eclipse.swt.widgets.Control.getFont(Control.java:661)
> at
> org.eclipse.rwt.widgets.Upload.computeBrowseButtonSize(Upload.java:368)
> at org.eclipse.rwt.widgets.Upload.computeSize(Upload.java:302)
> at org.eclipse.swt.layout.GridData.computeSize(GridData.java:482)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:209)
> at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:154)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:563)
> at org.eclipse.swt.layout.FormData.computeSize(FormData.java:118)
> at org.eclipse.swt.layout.FormData.getWidth(FormData.java:147)
> at
> org.eclipse.swt.layout.FormLayout.computeWidth(FormLayout.java:267)
> at org.eclipse.swt.layout.FormLayout.layout(FormLayout.java:322)
> at org.eclipse.swt.layout.FormLayout.computeSize(FormLayout.java:231)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:563)
> at org.eclipse.swt.layout.GridData.computeSize(GridData.java:482)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:209)
> at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:154)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:563)
> at org.eclipse.jface.window.Window.getInitialSize(Window.java:608)
> at org.eclipse.jface.dialogs.Dialog.getInitialSize(Dialog.java:1174)
> at
> org.eclipse.jface.dialogs.TitleAreaDialog.getInitialSize(TitleAreaDialog.java:352)
> at
> com.remainsoftware.incidents.ui.dialog.updateIncident.UpdateIncident.getInitialSize(UpdateIncident.java:320)
> at org.eclipse.jface.window.Window.initializeBounds(Window.java:780)
> at org.eclipse.jface.dialogs.Dialog.initializeBounds(Dialog.java:699)
> at org.eclipse.jface.window.Window.create(Window.java:448)
> at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1071)
> at
> com.remainsoftware.incidents.ui.dialog.updateIncident.UpdateIncident.create(UpdateIncident.java:79)
> at
> com.remainsoftware.incidents.handlers.UpdateCall.execute(UpdateCall.java:70)
> at
> org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:306)
> at
> org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
> at
> org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
> at
> org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:167)
> at
> org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:239)
> at
> org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:239)
> at
> org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:843)
> at
> org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:829)
> at
> org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:819)
> at
> org.eclipse.swt.internal.widgets.UntypedEventAdapter.dispatchEvent(UntypedEventAdapter.java:646)
> at
> org.eclipse.swt.internal.widgets.UntypedEventAdapter.widgetSelected(UntypedEventAdapter.java:90)
> at
> org.eclipse.swt.events.SelectionEvent.dispatchToObserver(SelectionEvent.java:191)
> at org.eclipse.rwt.internal.events.Event.processEvent(Event.java:46)
> at
> org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.java:186)
> at org.eclipse.swt.events.TypedEvent.executeNext(TypedEvent.java:208)
> at
> org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1145)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1135)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2733)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2694)
> at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:702)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:685)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
> at
> com.remainsoftware.rap.application.Application.createUI(Application.java:36)
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:177)
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:289)
> at java.lang.Thread.run(Unknown Source)
> at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)
> 2012-07-05 00:04:36.027:WARN:oejs.ServletHandler:ERROR: /remain
> java.lang.ArrayIndexOutOfBoundsException: 0
> at
> org.eclipse.rwt.internal.theme.AbstractThemeAdapter.getPrimaryElement(AbstractThemeAdapter.java:40)
> at
> org.eclipse.swt.internal.widgets.controlkit.ControlThemeAdapter.getFont(ControlThemeAdapter.java:47)
> at org.eclipse.swt.widgets.Control.getFont(Control.java:661)
> at
> org.eclipse.rwt.widgets.internal.uploadkit.UploadLCA.renderChanges(UploadLCA.java:141)
> at
> org.eclipse.rwt.lifecycle.AbstractWidgetLCA.render(AbstractWidgetLCA.java:35)
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCA$RenderVisitor.render(DisplayLCA.java:88)
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCA$RenderVisitor.doVisit(DisplayLCA.java:72)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor$AllWidgetTreeVisitor.visit(WidgetTreeVisitor.java:31)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:62)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleChildren(WidgetTreeVisitor.java:122)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:52)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleChildren(WidgetTreeVisitor.java:122)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:52)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleChildren(WidgetTreeVisitor.java:122)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:52)
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.renderShells(DisplayLCA.java:194)
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.render(DisplayLCA.java:164)
> at org.eclipse.rwt.internal.lifecycle.Render.execute(Render.java:29)
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.continueLifeCycle(RWTLifeCycle.java:158)
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.sleep(RWTLifeCycle.java:229)
> at org.eclipse.swt.widgets.Display.sleep(Display.java:1176)
> at
> org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:361)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2734)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2694)
> at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:702)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:685)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
> at
> com.remainsoftware.rap.application.Application.createUI(Application.java:36)
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:177)
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:289)
> at java.lang.Thread.run(Unknown Source)
> at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)
>
>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: ArrayIndexOutOfBoundsException [message #893721 is a reply to message #893668] Thu, 05 July 2012 10:58 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 466
Registered: July 2009
Senior Member

Hi Ivan,

Thank you. How could I have missed that. That solved it.

Regards,

Wim
Previous Topic:ExternalBrowser: open tab instead of window
Next Topic:Needes Plugins/Features for a WAR file
Goto Forum:
  


Current Time: Tue Oct 19 13:32:48 GMT 2021

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

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

Back to the top