Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Bug Error after stopping and restarting empty test script?

Joined
Feb 14, 2024
Messages
8
I am getting this error upon restarting a script after it has been stopped. Is this normal or is it being caused by something i have misconfigured? Thank you!!!!

Code:
11:55:35 [TRACE] [            RuneMate] Initializing JavaFX Platform
11:55:35 [INFO ] [            RuneMate] Deleted 0 files over a week old
11:55:35 [DEBUG] [            RuneMate] RuneMate Version: 3.14.15
11:55:35 [DEBUG] [            RuneMate] Operating System: Windows 10 amd64
11:55:35 [INFO ] [            RuneMate] JAVA ENVIRONMENT:
11:55:35 [DEBUG] [            RuneMate]     Home: C:\Users\kek\.jdks\jbr-17.0.9
11:55:35 [DEBUG] [            RuneMate]     Version: 17.0.9 x64 (JetBrains s.r.o.)
11:55:35 [DEBUG] [            RuneMate]     Max. Heap: 16352MB
11:55:37 [TRACE] [            RuneMate] Identified manifest and main class of Agility
11:55:37 [INFO ] [            RuneMate] Detected 1 manifests and 1 unique content roots
11:55:37 [INFO ] [            RuneMate] Detected 1 classes and 1 resources
11:55:37 [DEBUG] [            RuneMate] Required x86 JDK resource exists - skipping download.
11:55:37 [INFO ] [            RuneMate] Detected 1 manifests and 1 unique content roots
11:55:37 [INFO ] [            RuneMate] Detected 1 classes and 1 resources
11:55:38 [INFO ] [            RuneMate] Successfully downloaded missing resources
11:55:38 [INFO ] [            RuneMate] State of runelite_patch_state is 1
11:55:38 [DEBUG] [            RuneMate] RuneLite launcher has already been patched
11:55:45 [INFO ] [            RuneMate] Setting up new logger for agility_z
11:55:46 [INFO ] [            RuneMate] The following RuneLite plugins may interfere with bot behavior: Ground Items, Minimap. We advise you to disable these plugins in RuneLite and then restart the bot in RuneMate.

Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "dtoa"
11:55:46 [DEBUG] [     SettingsManager] Found no settings.
11:55:48 [INFO ] [         AbstractBot] Stop button clicked
11:55:52 [INFO ] [            RuneMate] Setting up new logger for agility_z
11:55:53 [WARN ] [            RuneMate] An uncaught exception was thrown on thread JavaFX Application Thread
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
    at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?]
    at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?]
    at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) ~[?:?]
    at java.util.Objects.checkIndex(Objects.java:361) ~[?:?]
    at java.util.ArrayList.get(ArrayList.java:427) ~[?:?]
    at com.sun.javafx.collections.ObservableListWrapper.get(ObservableListWrapper.java:88) ~[RuneMate.jar:?]
    at javafx.collections.FXCollections$SynchronizedList.get(FXCollections.java:1119) ~[RuneMate.jar:?]
    at javafx.collections.transformation.FilteredList.get(FilteredList.java:172) ~[RuneMate.jar:?]
    at javafx.scene.control.ListCell.updateItem(ListCell.java:473) ~[RuneMate.jar:?]
    at javafx.scene.control.ListCell.lambda$new$2(ListCell.java:168) ~[RuneMate.jar:?]
    at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88) ~[RuneMate.jar:?]
    at com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:327) ~[RuneMate.jar:?]
    at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:71) ~[RuneMate.jar:?]
    at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:238) ~[RuneMate.jar:?]
    at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482) ~[RuneMate.jar:?]
    at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541) ~[RuneMate.jar:?]
    at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:210) ~[RuneMate.jar:?]
    at javafx.collections.transformation.FilteredList.sourceChanged(FilteredList.java:147) ~[RuneMate.jar:?]
    at javafx.collections.transformation.TransformationList.lambda$getListener$0(TransformationList.java:105) ~[RuneMate.jar:?]
    at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88) ~[RuneMate.jar:?]
    at com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:327) ~[RuneMate.jar:?]
    at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:71) ~[RuneMate.jar:?]
    at javafx.collections.FXCollections$SynchronizedObservableList.lambda$new$0(FXCollections.java:1212) ~[RuneMate.jar:?]
    at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88) ~[RuneMate.jar:?]
    at com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:162) ~[RuneMate.jar:?]
    at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:71) ~[RuneMate.jar:?]
    at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:238) ~[RuneMate.jar:?]
    at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482) ~[RuneMate.jar:?]
    at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541) ~[RuneMate.jar:?]
    at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:210) ~[RuneMate.jar:?]
    at com.sun.javafx.collections.ObservableListWrapper.clear(ObservableListWrapper.java:156) ~[RuneMate.jar:?]
    at javafx.collections.FXCollections$SynchronizedList.clear(FXCollections.java:1112) ~[RuneMate.jar:?]
    at nul.iIiiiIiiiIIIiI.IiIiiIiiiIIiII(ax:499) ~[RuneMate.jar:?]
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456) ~[RuneMate.jar:?]
    at java.security.AccessController.doPrivileged(AccessController.java:399) ~[?:?]
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455) ~[RuneMate.jar:?]
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) ~[RuneMate.jar:?]
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) ~[RuneMate.jar:?]
    at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:185) ~[RuneMate.jar:?]
    at java.lang.Thread.run(Thread.java:840) ~[?:?]
11:55:53 [WARN ] [            RuneMate] An uncaught exception was thrown on thread JavaFX Application Thread
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
    at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?]
    at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?]
    at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) ~[?:?]
    at java.util.Objects.checkIndex(Objects.java:361) ~[?:?]
    at java.util.ArrayList.get(ArrayList.java:427) ~[?:?]
    at com.sun.javafx.collections.ObservableListWrapper.get(ObservableListWrapper.java:88) ~[RuneMate.jar:?]
    at javafx.collections.FXCollections$SynchronizedList.get(FXCollections.java:1119) ~[RuneMate.jar:?]
    at javafx.collections.transformation.FilteredList.get(FilteredList.java:172) ~[RuneMate.jar:?]
    at javafx.scene.control.ListCell.updateItem(ListCell.java:473) ~[RuneMate.jar:?]
    at javafx.scene.control.ListCell.lambda$new$2(ListCell.java:168) ~[RuneMate.jar:?]
    at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88) ~[RuneMate.jar:?]
    at com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:327) ~[RuneMate.jar:?]
    at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:71) ~[RuneMate.jar:?]
    at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:238) ~[RuneMate.jar:?]
    at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482) ~[RuneMate.jar:?]
    at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541) ~[RuneMate.jar:?]
    at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:210) ~[RuneMate.jar:?]
    at javafx.collections.transformation.FilteredList.sourceChanged(FilteredList.java:147) ~[RuneMate.jar:?]
    at javafx.collections.transformation.TransformationList.lambda$getListener$0(TransformationList.java:105) ~[RuneMate.jar:?]
    at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88) ~[RuneMate.jar:?]
    at com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:327) ~[RuneMate.jar:?]
    at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:71) ~[RuneMate.jar:?]
    at javafx.collections.FXCollections$SynchronizedObservableList.lambda$new$0(FXCollections.java:1212) ~[RuneMate.jar:?]
    at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88) ~[RuneMate.jar:?]
    at com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:162) ~[RuneMate.jar:?]
    at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:71) ~[RuneMate.jar:?]
    at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:238) ~[RuneMate.jar:?]
    at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482) ~[RuneMate.jar:?]
    at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541) ~[RuneMate.jar:?]
    at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:210) ~[RuneMate.jar:?]
    at com.sun.javafx.collections.ObservableListWrapper.clear(ObservableListWrapper.java:156) ~[RuneMate.jar:?]
    at javafx.collections.FXCollections$SynchronizedList.clear(FXCollections.java:1112) ~[RuneMate.jar:?]
    at nul.iIiiiIiiiIIIiI.IiIiiIiiiIIiII(ax:499) ~[RuneMate.jar:?]
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456) ~[RuneMate.jar:?]
    at java.security.AccessController.doPrivileged(AccessController.java:399) ~[?:?]
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455) ~[RuneMate.jar:?]
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) ~[RuneMate.jar:?]
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) ~[RuneMate.jar:?]
    at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:185) ~[RuneMate.jar:?]
    at java.lang.Thread.run(Thread.java:840) ~[?:?]


Here is the script:

Code:
package com.kek.scripts.agil;
import com.runemate.game.api.script.framework.LoopingBot;
public class agil extends LoopingBot  {
@java.lang.Override
    public void onLoop() {
    }

}
 
Bot Author
Joined
Jan 29, 2016
Messages
1,280
There isn't anything wrong with the Java class, show us your manifest.

Also, make sure your path to the class files are correct.
 
Joined
Feb 14, 2024
Messages
8
There isn't anything wrong with the Java class, show us your manifest.

Also, make sure your path to the class files are correct.
It's just the default one from the tutorial basically. Maybe that's the issue, but I just realized another detail. This error only happens if i run the script again without refreshing the scripts list. In other words, if I stop the bot, refresh the scripts list, then run the script again, the error doesn't occur. But if I do not refresh the script list, I get this error. With or without recompiling the script.

Here is the manifest
Code:
<manifest>
    <main-class>com.kek.scripts.agil.agil</main-class>
    <name>Agility</name>
    <description>This is a test.</description>
    <version>0.0.2</version>
    <compatibility>
        <game>OSRS</game>
    </compatibility>
    <categories>
        <category>COOKING</category>
    </categories>
</manifest>
 
Bot Author
Joined
Jan 29, 2016
Messages
1,280
I don't think the error is actually related to your code at all, the error indicates it's an unhandled JavaFX issue which is RM related due to you not having a custom UI.

I'd ignore this issue for now and just reload the bots when you're using it as of when.
 
Joined
Feb 14, 2024
Messages
8
I don't think the error is actually related to your code at all, the error indicates it's an unhandled JavaFX issue which is RM related due to you not having a custom UI.

I'd ignore this issue for now and just reload the bots when you're using it as of when.

Ah thank you so then I should create a custom UI! Thats probably it but i cant confirm yet
 
Top