java.lang.ArrayIndexOutOfBoundsException

-2

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web957

  • 2
  • via GitHub by benas
    , 1 month ago
    2
  • Stack trace

    • java.lang.ArrayIndexOutOfBoundsException: -2 at net.bhl.cdt.paxelerate.ui.views.PropertyViewPart.drawFunction(PropertyViewPart.java:299) at net.bhl.cdt.paxelerate.ui.views.PropertyViewPart.createFunctionBlock(PropertyViewPart.java:253) at net.bhl.cdt.paxelerate.ui.views.PropertyViewPart$2.paintControl(PropertyViewPart.java:208) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:230) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1137) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1122) at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1512) at org.eclipse.swt.widgets.Control.windowProc(Control.java:4733) at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:339) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5063) at org.eclipse.swt.internal.win32.OS.RedrawWindow(Native Method) at org.eclipse.swt.widgets.Control.update(Control.java:4493) at org.eclipse.swt.widgets.Control.update(Control.java:4483) at net.bhl.cdt.paxelerate.ui.views.PropertyViewPart.doTheDraw(PropertyViewPart.java:105) at net.bhl.cdt.paxelerate.ui.views.PropertyViewPart.updateUI(PropertyViewPart.java:427) at net.bhl.cdt.paxelerate.ui.commands.RefreshCabinViewCommand.doRun(RefreshCabinViewCommand.java:106) at net.bhl.cdt.paxelerate.ui.commands.GeneratePassengersCommand$1$2.run(GeneratePassengersCommand.java:145) at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:162) at org.eclipse.ui.internal.UILockListener.aboutToWait(UILockListener.java:128) at org.eclipse.core.internal.jobs.LockManager.aboutToWait(LockManager.java:114) at org.eclipse.core.internal.jobs.JobManager.join(JobManager.java:904) at org.eclipse.core.internal.jobs.InternalJob.join(InternalJob.java:341) at org.eclipse.core.runtime.jobs.Job.join(Job.java:458) at net.bhl.cdt.paxelerate.ui.commands.GeneratePassengersCommand.doRun(GeneratePassengersCommand.java:173) at net.bhl.cdt.paxelerate.ui.commands.RefreshCabinViewCommand.doRun(RefreshCabinViewCommand.java:64) at net.bhl.cdt.commands.CDTCommand.execute(CDTCommand.java:34) at net.bhl.cdt.paxelerate.ui.helper.DefineBatchSimulationInput$1$1.run(DefineBatchSimulationInput.java:125) at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:162) at org.eclipse.ui.internal.UILockListener.aboutToWait(UILockListener.java:128) at org.eclipse.core.internal.jobs.LockManager.aboutToWait(LockManager.java:114) at org.eclipse.core.internal.jobs.JobManager.join(JobManager.java:904) at org.eclipse.core.internal.jobs.InternalJob.join(InternalJob.java:341) at org.eclipse.core.runtime.jobs.Job.join(Job.java:458) at net.bhl.cdt.paxelerate.ui.helper.DefineBatchSimulationInput.doRun(DefineBatchSimulationInput.java:255) at net.bhl.cdt.paxelerate.ui.commands.RunBatchSimulationMenuCommand.doRun(RunBatchSimulationMenuCommand.java:85) at net.bhl.cdt.commands.CDTCommand.execute(CDTCommand.java:34) at net.bhl.cdt.paxelerate.ui.handlers.RunBatchSimulationMenuHandler.execute(RunBatchSimulationMenuHandler.java:36) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295) at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90) 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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:252) at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234) at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132) at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:493) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:486) at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:799) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:675) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:659) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:592) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:694) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at net.bhl.cdt.client.Application.start(Application.java:26) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) 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:669) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608) at org.eclipse.equinox.launcher.Main.run(Main.java:1515) at org.eclipse.equinox.launcher.Main.main(Main.java:1488)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.