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

Bug UnsupportedOperationException

Discussion in 'Developer Support' started by Infinite Monkeys, Feb 17, 2017.

  1. Infinite Monkeys

    Joined:
    Jun 20, 2015
    Messages:
    160
    Likes Received:
    48
    I'm trying to write a bot, and every time I restart RuneMate then run it, it crashes with this error:

    Code (Text):
    1. java.lang.UnsupportedOperationException: Only a Thread within a bot's ThreadGroup may eavesdrop on the game client. Current Thread=Thread[pool-4-thread-1,5,[t-g]9240 - Infinite Cannoneer]
    2.     at nul.iIiIIIiiiiIi.for(pqb:138)
    3.     at com.runemate.game.api.hybrid.Environment.getGameType(emb:160)
    4.     at com.runemate.game.api.hybrid.Environment.isRS3(emb:194)
    5.     at nul.iiIIIIiIiiii.for(nab:75)
    6.     at nul.iiIIIIiIiiii.validate(nab:143)
    7.     at com.runemate.game.api.script.framework.LoopingBot.run(wxa:96)
    8.     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    9.     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    10.     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    11.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    12.     at java.lang.Thread.run(Thread.java:745)
    If I run it again afterwards, it works fine. Anyone know what's causing this?
    RuneMate Version: Latest, in development mode using IDEA.
    Affected Games: OSRS (Haven't tried RS3).
     

Share This Page

Loading...