November 30, 20205 yr 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)
November 30, 20205 yr 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.
November 30, 20205 yr 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
December 4, 20205 yr 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(); } } }); }
February 16, 20215 yr @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)