Hallo Java-Forum!
Ich beginne derzeit mit Java-Programmierung. Nun habe ich das folgende Problem:
während der Programmlaufzeit bekomme ich in der Output-Leiste unten die folgende Exception angezeigt:
Kann man dieses "...1 more" weiter auflösen, also ansehen, an welcher Programmstelle der Fehler aufgetreten ist?
Oder steht zur Laufzeit nicht mehr Information über das "...1 more" zur verfügung?
offenbar wird die Exception an folgender stelle geschmissen:
offenbar versuche ich einen Eintag in der Instanz series zo löschen, die nicht da ist, also kommt die IndexOutOfBoundsException.
Aber kann ich mir die Programm-Zeile anzeigen lassen, in der der Fehler auftrat, anstatt dass ich selber suchen muss?
Oder geht es nur, wenn ich den .remove(9) - Funktionsaufruf in einen try-catch block packe?
Ich beginne derzeit mit Java-Programmierung. Nun habe ich das folgende Problem:
während der Programmlaufzeit bekomme ich in der Output-Leiste unten die folgende Exception angezeigt:
...
Exception in Application start method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:367)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:305)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:894)
at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:56)
at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:158)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IndexOutOfBoundsException: Index: 9, Size: 8
at java.util.ArrayList.rangeCheck(ArrayList.java:638)
at java.util.ArrayList.remove(ArrayList.java:477)
at com.sun.javafx.collections.ObservableListWrapper.doRemove(ObservableListWrapper.java:114)
at javafx.collections.ModifiableObservableListBase.remove(ModifiableObservableListBase.java:179)
at gui_first.GUI_First.start(GUI_First.java:90)
at com.sun.javafx.application.LauncherImpl$8.run(LauncherImpl.java:837)
at com.sun.javafx.application.PlatformImpl$7.run(PlatformImpl.java:335)
at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:301)
at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:298)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:298)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
at com.sun.glass.ui.win.WinApplication$4$1.run(WinApplication.java:112)
... 1 more
Exception running application gui_first.GUI_First
Java Result: 1
...
Kann man dieses "...1 more" weiter auflösen, also ansehen, an welcher Programmstelle der Fehler aufgetreten ist?
Oder steht zur Laufzeit nicht mehr Information über das "...1 more" zur verfügung?
offenbar wird die Exception an folgender stelle geschmissen:
Java:
series.getData().remove(9);
Aber kann ich mir die Programm-Zeile anzeigen lassen, in der der Fehler auftrat, anstatt dass ich selber suchen muss?
Oder geht es nur, wenn ich den .remove(9) - Funktionsaufruf in einen try-catch block packe?