Jump 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.

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

Featured Replies

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

My users are still reporting this issue on a large variety of my scripts.

Any possible @Solution yet?

Fixed that for you.

 

OT: Getting the same error on a private script with widgets#get()

I have had this issue happen several times to me i believe i reported it but got no reply

I need steps to reproduce this bug

 

Mangis it randomly happens so it's hard for these people to tell you how.

  • Developer

What steps ? hmm

You basicly just do:

RS2Widget ff = getWidgets().get(parent,child);

This throws the error randomly, also happends while banking sometimes.

probs because the api is using RS2Widgets.

 

Khaleesi

 

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

  • Author

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)
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

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.