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.

OSBot throwing errors

Featured Replies

So i keep getting these errors when running scripts with a GUI, i am on java 8.  it does not reference the script itself so I am not sure if it is an error on my part or a client issue.  Any ideas?

 

[ERROR][11/29 06:20:10 PM]: Uncaught exception!
java.lang.NullPointerException
	at javax.swing.ImageIcon.<init>(Unknown Source)
	at org.osbot.NA.iIiIIiiIIiiI(ts:233)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
[ERROR][11/29 06:25:57 PM]: Uncaught exception!
java.lang.ExceptionInInitializerError
	at org.pushingpixels.substance.internal.contrib.jgoodies.looks.common.ShadowPopup.<clinit>(ShadowPopup.java:67)
	at org.pushingpixels.substance.internal.contrib.jgoodies.looks.Options.isPopupDropShadowActive(Options.java:94)
	at org.pushingpixels.substance.internal.contrib.jgoodies.looks.common.ShadowPopupFactory.getPopup(ShadowPopupFactory.java:174)
	at javax.swing.plaf.PopupMenuUI.getPopup(Unknown Source)
	at javax.swing.JPopupMenu.showPopup(Unknown Source)
	at javax.swing.JPopupMenu.setVisible(Unknown Source)
	at javax.swing.JPopupMenu.show(Unknown Source)
	at org.pushingpixels.substance.internal.utils.combo.SubstanceComboPopup.show(SubstanceComboPopup.java:187)
	at javax.swing.plaf.basic.BasicComboPopup.togglePopup(Unknown Source)
	at javax.swing.plaf.basic.BasicComboPopup$Handler.mousePressed(Unknown Source)
	at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

 

The first one you can ignore, shouldn't prevent any functionality. The second one will prevent dropdowns from opening in your gui. I have to delete the OSBot folder and let the client recreate it to get rid of it. 

  • Author
1 hour ago, Camaro said:

The first one you can ignore, shouldn't prevent any functionality. The second one will prevent dropdowns from opening in your gui. I have to delete the OSBot folder and let the client recreate it to get rid of it. 

yeah its weird, is there something in the our script code that is causing it?  @Patrick

  • Author
14 minutes ago, Malcolm said:

@Novak

Try to wrap your GUI code with invokeLater()


        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
 
            }
        });

 

already is

 

public void start() {
        EventQueue.invokeLater(new Runnable() {
                public void run() {
                        try {
                                Gui frame = new Gui(afp);
                                frame.setVisible(true);
                        } catch (Exception e) {
                                e.printStackTrace();
                        }
                }
        });
	}

 

  • 1 month later...
  • 3 weeks later...

@Patrick have not seen the first two recently, but this one occasionally appears when starting a script

[ERROR][02/15 08:57:57 PM]: Uncaught exception!
java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
    at java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:2062)
    at java.awt.Component.getLocationOnScreen(Component.java:2036)
    at org.pushingpixels.substance.internal.widget.animation.effects.GhostPaintingUtils.paintGhostImages(GhostPaintingUtils.java:191)
    at org.pushingpixels.substance.internal.ui.SubstancePanelUI.update(SubstancePanelUI.java:83)
    at javax.swing.JComponent.paintComponent(JComponent.java:780)

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.