What to do with an JavaFX exception
Tom Schindl
tom.schindl at bestsolution.at
Thu May 30 06:51:33 UTC 2019
You need to interface with FX on the JavaFX thread.
Tom
Von meinem iPhone gesendet
> Am 30.05.2019 um 00:51 schrieb Petr Nemecek <pnem at cmail.cz>:
>
> Dear all,
>
> when making a call in a separate thread like this:
>
> myTableView.getSelectionModel().select(myItem);
>
> I sometimes (not every time...) get the exception see the stacktrace below.
>
> It looks to me like a bug somewhere in JavaFX code. Could I file this as a bug? Where?
>
> Many thanks,
> Petr
>
> ***
> java.lang.ArrayIndexOutOfBoundsException: arraycopy: length -1 is negative
> at java.base/java.lang.System.arraycopy(Native Method)
> at javafx.collections.transformation.SortedList.removeFromMapping(SortedList.java:364)
> at javafx.collections.transformation.SortedList.addRemove(SortedList.java:398)
> at javafx.collections.transformation.SortedList.sourceChanged(SortedList.java:108)
> at javafx.collections.transformation.TransformationList.lambda$getListener$0(TransformationList.java:106)
> at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88)
> at com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:164)
> at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
> at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)
> at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
> at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
> at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:205)
> at com.sun.javafx.collections.ObservableListWrapper.clear(ObservableListWrapper.java:157)
> at com.sun.javafx.scene.control.SelectedCellsMap.clear(SelectedCellsMap.java:202)
> at javafx.scene.control.TableView$TableViewArrayListSelectionModel.quietClearSelection(TableView.java:2815)
> at javafx.scene.control.TableView$TableViewArrayListSelectionModel.select(TableView.java:2539)
> at com.rinkai.rinkairouting.scenes.main.DistanceMatrixController$1.call(DistanceMatrixController.java:200)
>
>
More information about the openjfx-discuss
mailing list