Skip to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

(2.2.12) Interfaces.containingText() throws NullPointerException

Featured Replies

[ERROR][bot #1][08/14 01:02:24 PM]: Error in script executor!
java.lang.NullPointerException
    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)
    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)
    at osscript.base.ActionBot.searchInterfacesForText(ActionBot.java:3518)
    at osscript.entry.MakeCannonballs.OnTick(MakeCannonballs.java:43)
    at osscript.base.Action.Tick(Action.java:193)
    at osscript.base.Action.Tick(Action.java:181)
    at osscript.base.ActionBot.onLoop(ActionBot.java:1184)
    at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(ScriptExecutor.java:78)
    at java.lang.Thread.run(Unknown Source)
 

P.S. It is working okay in 2.2.10 now.


P.S. And this is in Drill Demon solver:

 

[ERROR][bot #1][08/14 01:08:13 PM]: Error on random solver onLoop() : Drill Demon+
java.lang.NullPointerException
    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)
    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)
    at org.osbot.rs07.api.Dialogues.isPendingContinuation(Dialogues.java:39)
    at org.osbot.rs07.randoms.DrillDemon.onLoop(DrillDemon.java:88)
    at org.osbot.rs07.script.RandomBehaviourHook.onLoop(RandomBehaviourHook.java:100)
    at org.osbot.rs07.event.RandomExecutor.run(RandomExecutor.java:316)
    at java.lang.Thread.run(Unknown Source)
[ERROR][bot #1][08/14 01:08:13 PM]: Error on random solver onLoop() : Drill Demon+
java.lang.NullPointerException
    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)
    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)
    at org.osbot.rs07.api.Dialogues.isPendingContinuation(Dialogues.java:39)
    at org.osbot.rs07.randoms.DrillDemon.onLoop(DrillDemon.java:88)
    at org.osbot.rs07.script.RandomBehaviourHook.onLoop(RandomBehaviourHook.java:100)
    at org.osbot.rs07.event.RandomExecutor.run(RandomExecutor.java:316)
    at java.lang.Thread.run(Unknown Source)
[ERROR][bot #1][08/14 01:08:13 PM]: Error on random solver onLoop() : Drill Demon+
java.lang.NullPointerException
    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)
    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)
    at org.osbot.rs07.api.Dialogues.isPendingContinuation(Dialogues.java:39)
    at org.osbot.rs07.randoms.DrillDemon.onLoop(DrillDemon.java:88)
    at org.osbot.rs07.script.RandomBehaviourHook.onLoop(RandomBehaviourHook.java:100)
    at org.osbot.rs07.event.RandomExecutor.run(RandomExecutor.java:316)
    at java.lang.Thread.run(Unknown Source)
[ERROR][bot #1][08/14 01:08:13 PM]: Error on random solver onLoop() : Drill Demon+
java.lang.NullPointerException
    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)
    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)
    at org.osbot.rs07.api.Dialogues.isPendingContinuation(Dialogues.java:39)
    at org.osbot.rs07.randoms.DrillDemon.onLoop(DrillDemon.java:88)
    at org.osbot.rs07.script.RandomBehaviourHook.onLoop(RandomBehaviourHook.java:100)
    at org.osbot.rs07.event.RandomExecutor.run(RandomExecutor.java:316)
    at java.lang.Thread.run(Unknown Source)
[ERROR][bot #1][08/14 01:08:13 PM]: Error on random solver onLoop() : Drill Demon+
java.lang.NullPointerException
    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)
    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)
    at org.osbot.rs07.api.Dialogues.isPendingContinuation(Dialogues.java:39)
    at org.osbot.rs07.randoms.DrillDemon.onLoop(DrillDemon.java:88)
    at org.osbot.rs07.script.RandomBehaviourHook.onLoop(RandomBehaviourHook.java:100)
    at org.osbot.rs07.event.RandomExecutor.run(RandomExecutor.java:316)
    at java.lang.Thread.run(Unknown Source)
[ERROR][bot #1][08/14 01:08:13 PM]: Error on random solver onLoop() : Drill Demon+
java.lang.NullPointerException
    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)
    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)
    at org.osbot.rs07.api.Dialogues.isPendingContinuation(Dialogues.java:39)
    at org.osbot.rs07.randoms.DrillDemon.onLoop(DrillDemon.java:88)
    at org.osbot.rs07.script.RandomBehaviourHook.onLoop(RandomBehaviourHook.java:100)
    at org.osbot.rs07.event.RandomExecutor.run(RandomExecutor.java:316)
    at java.lang.Thread.run(Unknown Source)
[ERROR][bot #1][08/14 01:08:13 PM]: Error on random solver onLoop() : Drill Demon+
java.lang.NullPointerException
    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)
    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)
    at org.osbot.rs07.api.Dialogues.isPendingContinuation(Dialogues.java:39)
    at org.osbot.rs07.randoms.DrillDemon.onLoop(DrillDemon.java:88)
    at org.osbot.rs07.script.RandomBehaviourHook.onLoop(RandomBehaviourHook.java:100)
    at org.osbot.rs07.event.RandomExecutor.run(RandomExecutor.java:316)
    at java.lang.Thread.run(Unknown Source)
[ERROR][bot #1][08/14 01:08:13 PM]: Error on random solver onLoop() : Drill Demon+
java.lang.NullPointerException
    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)
    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)
    at org.osbot.rs07.api.Dialogues.isPendingContinuation(Dialogues.java:39)
    at org.osbot.rs07.randoms.DrillDemon.onLoop(DrillDemon.java:88)
    at org.osbot.rs07.script.RandomBehaviourHook.onLoop(RandomBehaviourHook.java:100)
    at org.osbot.rs07.event.RandomExecutor.run(RandomExecutor.java:316)
    at java.lang.Thread.run(Unknown Source)
[ERROR][bot #1][08/14 01:08:13 PM]: Error on random solver onLoop() : Drill Demon+
java.lang.NullPointerException
    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)
    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)
    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)
    at org.osbot.rs07.api.Dialogues.isPendingContinuation(Dialogues.java:39)
    at org.osbot.rs07.randoms.DrillDemon.onLoop(DrillDemon.java:88)
    at org.osbot.rs07.script.RandomBehaviourHook.onLoop(RandomBehaviourHook.java:100)
    at org.osbot.rs07.event.RandomExecutor.run(RandomExecutor.java:316)
    at java.lang.Thread.run(Unknown Source)
[iNFO][bot #1][08/14 01:08:13 PM]: Random solver Drill Demon+ has paused!
[iNFO][bot #1][08/14 01:08:13 PM]: Script TrainBlastCannon has paused!
 

[ERROR][bot #1][08/14 01:02:24 PM]: Error in script executor!

java.lang.NullPointerException

    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)

    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)

    at osscript.base.ActionBot.searchInterfacesForText(ActionBot.java:3518)

    at osscript.entry.MakeCannonballs.OnTick(MakeCannonballs.java:43)

    at osscript.base.Action.Tick(Action.java:193)

    at osscript.base.Action.Tick(Action.java:181)

    at osscript.base.ActionBot.onLoop(ActionBot.java:1184)

    at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(ScriptExecutor.java:78)

    at java.lang.Thread.run(Unknown Source)

 

P.S. It is working okay in 2.2.10 now.

P.S. And this is in Drill Demon solver:

 

[ERROR][bot #1][08/14 01:08:13 PM]: Error on random solver onLoop() : Drill Demon+

java.lang.NullPointerException

    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)

    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)

    at org.osbot.rs07.api.Dialogues.isPendingContinuation(Dialogues.java:39)

    at org.osbot.rs07.randoms.DrillDemon.onLoop(DrillDemon.java:88)

    at org.osbot.rs07.script.RandomBehaviourHook.onLoop(RandomBehaviourHook.java:100)

    at org.osbot.rs07.event.RandomExecutor.run(RandomExecutor.java:316)

    at java.lang.Thread.run(Unknown Source)

[ERROR][bot #1][08/14 01:08:13 PM]: Error on random solver onLoop() : Drill Demon+

java.lang.NullPointerException

    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)

    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)

    at org.osbot.rs07.api.Dialogues.isPendingContinuation(Dialogues.java:39)

    at org.osbot.rs07.randoms.DrillDemon.onLoop(DrillDemon.java:88)

    at org.osbot.rs07.script.RandomBehaviourHook.onLoop(RandomBehaviourHook.java:100)

    at org.osbot.rs07.event.RandomExecutor.run(RandomExecutor.java:316)

    at java.lang.Thread.run(Unknown Source)

[ERROR][bot #1][08/14 01:08:13 PM]: Error on random solver onLoop() : Drill Demon+

java.lang.NullPointerException

    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)

    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)

    at org.osbot.rs07.api.Dialogues.isPendingContinuation(Dialogues.java:39)

    at org.osbot.rs07.randoms.DrillDemon.onLoop(DrillDemon.java:88)

    at org.osbot.rs07.script.RandomBehaviourHook.onLoop(RandomBehaviourHook.java:100)

    at org.osbot.rs07.event.RandomExecutor.run(RandomExecutor.java:316)

    at java.lang.Thread.run(Unknown Source)

[ERROR][bot #1][08/14 01:08:13 PM]: Error on random solver onLoop() : Drill Demon+

java.lang.NullPointerException

    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)

    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)

    at org.osbot.rs07.api.Dialogues.isPendingContinuation(Dialogues.java:39)

    at org.osbot.rs07.randoms.DrillDemon.onLoop(DrillDemon.java:88)

    at org.osbot.rs07.script.RandomBehaviourHook.onLoop(RandomBehaviourHook.java:100)

    at org.osbot.rs07.event.RandomExecutor.run(RandomExecutor.java:316)

    at java.lang.Thread.run(Unknown Source)

[ERROR][bot #1][08/14 01:08:13 PM]: Error on random solver onLoop() : Drill Demon+

java.lang.NullPointerException

    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)

    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)

    at org.osbot.rs07.api.Dialogues.isPendingContinuation(Dialogues.java:39)

    at org.osbot.rs07.randoms.DrillDemon.onLoop(DrillDemon.java:88)

    at org.osbot.rs07.script.RandomBehaviourHook.onLoop(RandomBehaviourHook.java:100)

    at org.osbot.rs07.event.RandomExecutor.run(RandomExecutor.java:316)

    at java.lang.Thread.run(Unknown Source)

[ERROR][bot #1][08/14 01:08:13 PM]: Error on random solver onLoop() : Drill Demon+

java.lang.NullPointerException

    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)

    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)

    at org.osbot.rs07.api.Dialogues.isPendingContinuation(Dialogues.java:39)

    at org.osbot.rs07.randoms.DrillDemon.onLoop(DrillDemon.java:88)

    at org.osbot.rs07.script.RandomBehaviourHook.onLoop(RandomBehaviourHook.java:100)

    at org.osbot.rs07.event.RandomExecutor.run(RandomExecutor.java:316)

    at java.lang.Thread.run(Unknown Source)

[ERROR][bot #1][08/14 01:08:13 PM]: Error on random solver onLoop() : Drill Demon+

java.lang.NullPointerException

    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)

    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)

    at org.osbot.rs07.api.Dialogues.isPendingContinuation(Dialogues.java:39)

    at org.osbot.rs07.randoms.DrillDemon.onLoop(DrillDemon.java:88)

    at org.osbot.rs07.script.RandomBehaviourHook.onLoop(RandomBehaviourHook.java:100)

    at org.osbot.rs07.event.RandomExecutor.run(RandomExecutor.java:316)

    at java.lang.Thread.run(Unknown Source)

[ERROR][bot #1][08/14 01:08:13 PM]: Error on random solver onLoop() : Drill Demon+

java.lang.NullPointerException

    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)

    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)

    at org.osbot.rs07.api.Dialogues.isPendingContinuation(Dialogues.java:39)

    at org.osbot.rs07.randoms.DrillDemon.onLoop(DrillDemon.java:88)

    at org.osbot.rs07.script.RandomBehaviourHook.onLoop(RandomBehaviourHook.java:100)

    at org.osbot.rs07.event.RandomExecutor.run(RandomExecutor.java:316)

    at java.lang.Thread.run(Unknown Source)

[ERROR][bot #1][08/14 01:08:13 PM]: Error on random solver onLoop() : Drill Demon+

java.lang.NullPointerException

    at org.osbot.rs07.api.ui.RS2Interface.getAll(RS2Interface.java:167)

    at org.osbot.rs07.api.filter.FilterAPI.filter(FilterAPI.java:21)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:175)

    at org.osbot.rs07.api.Interfaces.containingText(Interfaces.java:160)

    at org.osbot.rs07.api.Dialogues.isPendingContinuation(Dialogues.java:39)

    at org.osbot.rs07.randoms.DrillDemon.onLoop(DrillDemon.java:88)

    at org.osbot.rs07.script.RandomBehaviourHook.onLoop(RandomBehaviourHook.java:100)

    at org.osbot.rs07.event.RandomExecutor.run(RandomExecutor.java:316)

    at java.lang.Thread.run(Unknown Source)

[iNFO][bot #1][08/14 01:08:13 PM]: Random solver Drill Demon+ has paused!

[iNFO][bot #1][08/14 01:08:13 PM]: Script TrainBlastCannon has paused!

 

 

I tested Interfaces.containingText(#) on the latest client in API dev repo and it doesn't throw an error for me.

I also checked the history of the Interfaces class and it didn't get modified in the last 3 versions.

  • Author

Testing this case - switched to 2.2.10 - seems working good.

On 2.2.12 it starts throw exception not immediately, but after some time (for example, it broke during Drill Demon solver, after restart Drill Demon was passed).

Also, there is chance that it is account-related. So, on account A it starts to throw, on account B - not.

Dont sure where, but some bug exists.

[ERROR][bot #1][08/14 06:41:26 PM]: Error starting bot #1

em

at da.v(da.java:101)

at client.init(client.java:633)

at org.osbot.rs07.Bot.initialize(Bot.java:722)

at org.osbot.H.run(hp:146)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

 

  • Author

It could be called slightly before an interface is loaded, not sure until I look at it.

 

It gets broken not at start, but later, and gets broken entire interface system. So, various randoms get broken, containingText() broken.

Running now 2.2.10, because this bug freezes my scripts.

Running more than 2 days 2.2.10. This bug occurs only in 2.2.12, not in 2.2.10. Devs, check it please.

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.