1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bug Error after stopping and restarting empty test script?

Discussion in 'Developer Support' started by 420aimbotting, Feb 25, 2024.

  1. 420aimbotting

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

    Code (Text):
    1. 11:55:35 [TRACE] [            RuneMate] Initializing JavaFX Platform
    2. 11:55:35 [INFO ] [            RuneMate] Deleted 0 files over a week old
    3. 11:55:35 [DEBUG] [            RuneMate] RuneMate Version: 3.14.15
    4. 11:55:35 [DEBUG] [            RuneMate] Operating System: Windows 10 amd64
    5. 11:55:35 [INFO ] [            RuneMate] JAVA ENVIRONMENT:
    6. 11:55:35 [DEBUG] [            RuneMate]     Home: C:\Users\kek\.jdks\jbr-17.0.9
    7. 11:55:35 [DEBUG] [            RuneMate]     Version: 17.0.9 x64 (JetBrains s.r.o.)
    8. 11:55:35 [DEBUG] [            RuneMate]     Max. Heap: 16352MB
    9. 11:55:37 [TRACE] [            RuneMate] Identified manifest and main class of Agility
    10. 11:55:37 [INFO ] [            RuneMate] Detected 1 manifests and 1 unique content roots
    11. 11:55:37 [INFO ] [            RuneMate] Detected 1 classes and 1 resources
    12. 11:55:37 [DEBUG] [            RuneMate] Required x86 JDK resource exists - skipping download.
    13. 11:55:37 [INFO ] [            RuneMate] Detected 1 manifests and 1 unique content roots
    14. 11:55:37 [INFO ] [            RuneMate] Detected 1 classes and 1 resources
    15. 11:55:38 [INFO ] [            RuneMate] Successfully downloaded missing resources
    16. 11:55:38 [INFO ] [            RuneMate] State of runelite_patch_state is 1
    17. 11:55:38 [DEBUG] [            RuneMate] RuneLite launcher has already been patched
    18. 11:55:45 [INFO ] [            RuneMate] Setting up new logger for agility_z
    19. 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.
    20.  
    21. Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "dtoa"
    22. 11:55:46 [DEBUG] [     SettingsManager] Found no settings.
    23. 11:55:48 [INFO ] [         AbstractBot] Stop button clicked
    24. 11:55:52 [INFO ] [            RuneMate] Setting up new logger for agility_z
    25. 11:55:53 [WARN ] [            RuneMate] An uncaught exception was thrown on thread JavaFX Application Thread
    26. java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
    27.     at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?]
    28.     at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?]
    29.     at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) ~[?:?]
    30.     at java.util.Objects.checkIndex(Objects.java:361) ~[?:?]
    31.     at java.util.ArrayList.get(ArrayList.java:427) ~[?:?]
    32.     at com.sun.javafx.collections.ObservableListWrapper.get(ObservableListWrapper.java:88) ~[RuneMate.jar:?]
    33.     at javafx.collections.FXCollections$SynchronizedList.get(FXCollections.java:1119) ~[RuneMate.jar:?]
    34.     at javafx.collections.transformation.FilteredList.get(FilteredList.java:172) ~[RuneMate.jar:?]
    35.     at javafx.scene.control.ListCell.updateItem(ListCell.java:473) ~[RuneMate.jar:?]
    36.     at javafx.scene.control.ListCell.lambda$new$2(ListCell.java:168) ~[RuneMate.jar:?]
    37.     at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88) ~[RuneMate.jar:?]
    38.     at com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:327) ~[RuneMate.jar:?]
    39.     at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:71) ~[RuneMate.jar:?]
    40.     at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:238) ~[RuneMate.jar:?]
    41.     at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482) ~[RuneMate.jar:?]
    42.     at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541) ~[RuneMate.jar:?]
    43.     at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:210) ~[RuneMate.jar:?]
    44.     at javafx.collections.transformation.FilteredList.sourceChanged(FilteredList.java:147) ~[RuneMate.jar:?]
    45.     at javafx.collections.transformation.TransformationList.lambda$getListener$0(TransformationList.java:105) ~[RuneMate.jar:?]
    46.     at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88) ~[RuneMate.jar:?]
    47.     at com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:327) ~[RuneMate.jar:?]
    48.     at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:71) ~[RuneMate.jar:?]
    49.     at javafx.collections.FXCollections$SynchronizedObservableList.lambda$new$0(FXCollections.java:1212) ~[RuneMate.jar:?]
    50.     at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88) ~[RuneMate.jar:?]
    51.     at com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:162) ~[RuneMate.jar:?]
    52.     at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:71) ~[RuneMate.jar:?]
    53.     at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:238) ~[RuneMate.jar:?]
    54.     at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482) ~[RuneMate.jar:?]
    55.     at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541) ~[RuneMate.jar:?]
    56.     at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:210) ~[RuneMate.jar:?]
    57.     at com.sun.javafx.collections.ObservableListWrapper.clear(ObservableListWrapper.java:156) ~[RuneMate.jar:?]
    58.     at javafx.collections.FXCollections$SynchronizedList.clear(FXCollections.java:1112) ~[RuneMate.jar:?]
    59.     at nul.iIiiiIiiiIIIiI.IiIiiIiiiIIiII(ax:499) ~[RuneMate.jar:?]
    60.     at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456) ~[RuneMate.jar:?]
    61.     at java.security.AccessController.doPrivileged(AccessController.java:399) ~[?:?]
    62.     at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455) ~[RuneMate.jar:?]
    63.     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) ~[RuneMate.jar:?]
    64.     at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) ~[RuneMate.jar:?]
    65.     at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:185) ~[RuneMate.jar:?]
    66.     at java.lang.Thread.run(Thread.java:840) ~[?:?]
    67. 11:55:53 [WARN ] [            RuneMate] An uncaught exception was thrown on thread JavaFX Application Thread
    68. java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
    69.     at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?]
    70.     at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?]
    71.     at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) ~[?:?]
    72.     at java.util.Objects.checkIndex(Objects.java:361) ~[?:?]
    73.     at java.util.ArrayList.get(ArrayList.java:427) ~[?:?]
    74.     at com.sun.javafx.collections.ObservableListWrapper.get(ObservableListWrapper.java:88) ~[RuneMate.jar:?]
    75.     at javafx.collections.FXCollections$SynchronizedList.get(FXCollections.java:1119) ~[RuneMate.jar:?]
    76.     at javafx.collections.transformation.FilteredList.get(FilteredList.java:172) ~[RuneMate.jar:?]
    77.     at javafx.scene.control.ListCell.updateItem(ListCell.java:473) ~[RuneMate.jar:?]
    78.     at javafx.scene.control.ListCell.lambda$new$2(ListCell.java:168) ~[RuneMate.jar:?]
    79.     at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88) ~[RuneMate.jar:?]
    80.     at com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:327) ~[RuneMate.jar:?]
    81.     at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:71) ~[RuneMate.jar:?]
    82.     at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:238) ~[RuneMate.jar:?]
    83.     at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482) ~[RuneMate.jar:?]
    84.     at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541) ~[RuneMate.jar:?]
    85.     at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:210) ~[RuneMate.jar:?]
    86.     at javafx.collections.transformation.FilteredList.sourceChanged(FilteredList.java:147) ~[RuneMate.jar:?]
    87.     at javafx.collections.transformation.TransformationList.lambda$getListener$0(TransformationList.java:105) ~[RuneMate.jar:?]
    88.     at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88) ~[RuneMate.jar:?]
    89.     at com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:327) ~[RuneMate.jar:?]
    90.     at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:71) ~[RuneMate.jar:?]
    91.     at javafx.collections.FXCollections$SynchronizedObservableList.lambda$new$0(FXCollections.java:1212) ~[RuneMate.jar:?]
    92.     at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88) ~[RuneMate.jar:?]
    93.     at com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:162) ~[RuneMate.jar:?]
    94.     at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:71) ~[RuneMate.jar:?]
    95.     at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:238) ~[RuneMate.jar:?]
    96.     at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482) ~[RuneMate.jar:?]
    97.     at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541) ~[RuneMate.jar:?]
    98.     at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:210) ~[RuneMate.jar:?]
    99.     at com.sun.javafx.collections.ObservableListWrapper.clear(ObservableListWrapper.java:156) ~[RuneMate.jar:?]
    100.     at javafx.collections.FXCollections$SynchronizedList.clear(FXCollections.java:1112) ~[RuneMate.jar:?]
    101.     at nul.iIiiiIiiiIIIiI.IiIiiIiiiIIiII(ax:499) ~[RuneMate.jar:?]
    102.     at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456) ~[RuneMate.jar:?]
    103.     at java.security.AccessController.doPrivileged(AccessController.java:399) ~[?:?]
    104.     at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455) ~[RuneMate.jar:?]
    105.     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) ~[RuneMate.jar:?]
    106.     at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) ~[RuneMate.jar:?]
    107.     at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:185) ~[RuneMate.jar:?]
    108.     at java.lang.Thread.run(Thread.java:840) ~[?:?]

    Here is the script bot:

    Code (Text):
    1. package com.kek.scripts.agil;
    2. import com.runemate.game.api.script.framework.LoopingBot;
    3. public class agil extends LoopingBot  {
    4. @java.lang.Override
    5.     public void onLoop() {
    6.     }
    7.  
    8. }
     
  2. Bing Bong

    Bing Bong Bot Author

    Joined:
    Jan 29, 2016
    Messages:
    1,083
    Likes Received:
    103
    There isn't anything wrong with the Java class, show us your manifest.

    Also, make sure your path to the class files are correct.
     
  3. 420aimbotting

    Joined:
    Feb 14, 2024
    Messages:
    8
    Likes Received:
    0
    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 bot again without refreshing the scripts bots list. In other words, if I stop the bot, refresh the scripts bots list, then run the script bot again, the error doesn't occur. But if I do not refresh the script bot list, I get this error. With or without recompiling the script bot.

    Here is the manifest
    Code (Text):
    1. <manifest>
    2.     <main-class>com.kek.scripts.agil.agil</main-class>
    3.     <name>Agility</name>
    4.     <description>This is a test.</description>
    5.     <version>0.0.2</version>
    6.     <compatibility>
    7.         <game>OSRS</game>
    8.     </compatibility>
    9.     <categories>
    10.         <category>COOKING</category>
    11.     </categories>
    12. </manifest>
     
  4. Bing Bong

    Bing Bong Bot Author

    Joined:
    Jan 29, 2016
    Messages:
    1,083
    Likes Received:
    103
    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.
     
  5. 420aimbotting

    Joined:
    Feb 14, 2024
    Messages:
    8
    Likes Received:
    0
    Ah thank you so then I should create a custom UI! Thats probably it but i cant confirm yet
     
  6. Bing Bong

    Bing Bong Bot Author

    Joined:
    Jan 29, 2016
    Messages:
    1,083
    Likes Received:
    103
    I personally wouldn't bother creating a custom UI, I'd just use DefaultUI that's built into Runemate.
     
    420aimbotting likes this.

Share This Page

Loading...