Jump to content

Failed to wrap: class client.Jj (RS2Widget wrapper)


Khaleesi

Recommended Posts

Bug reported by one of my users.

 

Mirror client version:

Version 2.1

 

Console output / terminal output

Check below

 

Crash report if a crash occurred

No crash.

 

Script that you ran

Khal AIO crafter

 

Hooks that failed

class client.Jj?

 

JVM/Browser bit version (32 / 64)

No idea, was posted by a user, I could get the info if required.

 

 

Error log:

ERROR][Bot #1][02/21 08:23:58 PM]: Failed to wrap : class client.Jj
java.lang.RuntimeException: Could not initiate wrapper : RS2Widget
at org.osbot.core.api.Wrapper.wrap(zf:60)
at org.osbot.rs07.api.Widgets.getWidgets(jm:51)
at org.osbot.rs07.api.Widgets.get(jm:201)
at org.khal.khalcrafter.controller.BattleStavesCrafting.makeStaffs(BattleStavesCrafting.java:65)
at org.khal.khalcrafter.controller.BattleStavesCrafting.run(BattleStavesCrafting.java:27)
at org.khal.khalcrafter.KhalAIOCrafter.onLoop(KhalAIOCrafter.java:99)
at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(ig:99)
at java.lang.Thread.run(Unknown Source)
[ERROR][Bot #1][02/21 08:24:24 PM]: Failed to wrap : class client.Jj
java.lang.RuntimeException: Could not initiate wrapper : RS2Widget
at org.osbot.core.api.Wrapper.wrap(zf:60)
at org.osbot.rs07.api.Widgets.getWidgets(jm:51)
at org.osbot.rs07.api.Widgets.get(jm:201)
at org.khal.khalcrafter.controller.BattleStavesCrafting.makeStaffs(BattleStavesCrafting.java:65)
at org.khal.khalcrafter.controller.BattleStavesCrafting.run(BattleStavesCrafting.java:27)
at org.khal.khalcrafter.KhalAIOCrafter.onLoop(KhalAIOCrafter.java:99)
at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(ig:99)
at java.lang.Thread.run(Unknown Source) 

 

Code used:

RS2Widget child = script.widgets.get(309, 4)  //<-- Error line 

 

If you need anything else, let me know!

Khaleesi

  • Like 4
Link to comment
Share on other sites

Will be adding additional debug info on the next build regarding this issue.

 

Not sure if this is the new debug, but this was a recent error ^^

[ERROR][Bot #1][03/13 12:57:26 PM]: Failed to wrap : class client.vjZg
java.lang.RuntimeException: Could not initiate wrapper : RS2Widget
at org.osbot.core.api.Wrapper.wrap(yl:8)
at org.osbot.rs07.api.Widgets.getWidgets(im:84)
at org.osbot.rs07.api.Widgets.isVisible(im:106)
at org.osbot.rs07.api.Bank.isOpen(oj:471)
at org.osbot.rs07.api.Bank$2.condition(oj:343)
at org.osbot.rs07.utility.ConditionalSleep.sleep(kd:95)
at org.osbot.rs07.api.Bank.open(oj:320)
at org.khal.runecrafter.f.c.con.K(g:277)
at org.khal.runecrafter.f.c.con.c(g:253)
at org.khal.runecrafter.f.c.con.G(g:109)
at org.khal.runecrafter.f.c.con.A(g:32)
at org.khal.runecrafter.KhalRunecrafter.onLoop(tb:18)
at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(yg:194)
at java.lang.Thread.run(Unknown Source)
Link to comment
Share on other sites

java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedConstructorAccessor17.newInstance(Unknown Source
)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.osbot.core.api.Wrapper.wrap(yl:151)
        at org.osbot.rs07.api.Widgets.getWidgets(im:84)
        at org.osbot.rs07.api.Widgets.isVisible(im:106)
        at org.osbot.rs07.api.Bank.isOpen(oj:471)
        at perfect.scripting.script.module.PresetBank$2.condition(PresetBank.jav
a:178)
        at org.osbot.rs07.utility.ConditionalSleep.sleep(kd:95)
        at perfect.scripting.script.module.PresetBank.openBank(PresetBank.java:1
84)
        at perfect.scripting.script.module.PresetBank.openBank(PresetBank.java:3
32)
        at com.PerfectFisher.onLoop(PerfectFisher.java:169)
        at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(yg:194)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Union object is null or owned by someone
else
        at client.nat.stream.Stream.m22(Native Method)
        at client.vjZg.getDisplayedTime(Unknown Source)
        at org.osbot.rs07.api.ui.RS2Widget.<init>(jp:219)
        ... 15 more

Is that part of the new debug for widgets? The conditionalsleep only contains the osbot api method 'getBank().isOpen()'

Edited by Czar
  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...