java.lang.ArrayIndexOutOfBoundsException: -2

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

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.internal.win32.OS.RedrawWindow(Native Method)
at org.eclipse.swt.widgets.Control.update(Control.java:4493)
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.commands.CDTCommand.execute(CDTCommand.java:34)
at net.bhl.cdt.paxelerate.ui.helper.DefineBatchSimulationInput$1$3.run(DefineBatchSimulationInput.java:189)
at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:162)
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 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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.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.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 net.bhl.cdt.client.Application.start(Application.java:26)
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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.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)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.