Resolved Bunch of errors when running scripts

Discussion in 'Developer Support' started by qverkk, Apr 9, 2016.

Tags:
  1. The error:
    Code (Text):
    1. java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    2.         java.rmi.RemoteException: Unable to find class object for Client; nested exception is:
    3.         java.lang.ClassNotFoundException: Client
    4.         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:353)
    5.         at sun.rmi.transport.Transport$1.run(Transport.java:177)
    6.         at sun.rmi.transport.Transport$1.run(Transport.java:174)
    7.         at java.security.AccessController.doPrivileged(Native Method)
    8.         at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
    9.         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
    10.         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
    11.         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
    12.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    13.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    14.         at java.lang.Thread.run(Thread.java:722)
    15.         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276)
    16.         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253)
    17.         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162)
    18.         at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:227)
    19.         at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:179)
    20.         at com.sun.proxy.$Proxy8.int32(Unknown Source)
    21.         at nul.iiIiiIiIiiii.new(qwb:159)
    22.         at com.runemate.game.api.hybrid.local.hud.Menu.getItems(xac:212)
    23.         at bots.TestWalk.WalkingEvent.execute(WalkingEvent.java:34)
    24.         at com.runemate.game.api.script.framework.task.TaskScript.onLoop(lrb:237)
    25.         at com.runemate.game.api.script.framework.LoopingScript.run(brb:234)
    26.         at com.runemate.game.api.script.framework.AbstractScript.start(exb:174)
    27.         at nul.iIiiiIiiIiiI.run(aic:232)
    28. Caused by: java.rmi.RemoteException: Unable to find class object for Client; nested exception is:
    29.         java.lang.ClassNotFoundException: Client
    30.         at nul.IiiiiiiiII.new(Unknown Source)
    31.         at nul.IiiiiiiiII.new(Unknown Source)
    32.         at nul.IiiiiiiiII.new(Unknown Source)
    33.         at nul.IiiiiiiiII.int32(Unknown Source)
    34.         at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
    35.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    36.         at java.lang.reflect.Method.invoke(Method.java:601)
    37.         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
    38.         at sun.rmi.transport.Transport$1.run(Transport.java:177)
    39.         at sun.rmi.transport.Transport$1.run(Transport.java:174)
    40.         at java.security.AccessController.doPrivileged(Native Method)
    41.         at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
    42.         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
    43.         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
    44.         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
    45.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    46.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    47.         at java.lang.Thread.run(Thread.java:722)
    48. Caused by: java.lang.ClassNotFoundException: Client
    49.         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    50.         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    51.         at java.security.AccessController.doPrivileged(Native Method)
    52.         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    53.         at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    54.         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    55.         at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    56.         at app.u.loadClass(u.java:79)
    57.         at java.lang.ClassLoader.findSystemClass(ClassLoader.java:1050)
    58.         at app.m.loadClass(m.java:30)
    59.         at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    60.         at java.lang.Class.forName0(Native Method)
    61.         at java.lang.Class.forName(Class.java:264)
    62.         ... 18 more
    The task:

    Code (Text):
    1. public class WalkingEvent extends Task {
    2.     @Override
    3.     public void execute() {
    4.         /*GroundItem feathers = GroundItems.newQuery().names("Egg").results().nearest();
    5.         if(Players.getLocal() != null && !Players.getLocal().isMoving()) {
    6.             if (feathers != null) {
    7.                 System.out.println("Try to take bones");
    8.                 feathers.interact("Take");
    9.             }
    10.         }*/
    11.  
    12.         System.out.println(Menu.getItems());
    13.     }
    14.  
    15.     @Override
    16.     public boolean validate() {
    17.         //GroundItem feathers = GroundItems.newQuery().names("Egg").results().nearest();
    18.         return Players.getLocal() != null;
    19.     }
    20.     public static boolean completeWalking(Locatable location) {
    21.         WebPath q = Traversal.getDefaultWeb().getPathBuilder().buildTo(location);
    22.         if (q != null) {
    23.             q.step();
    24.         } else {
    25.             RegionPath q2 = RegionPath.buildTo(location);
    26.             if (q2 != null) {
    27.                 q2.step();
    28.             } else {
    29.                 BresenhamPath q3 = BresenhamPath.buildTo(location);
    30.                 if (q3 != null) {
    31.                     q3.step();
    32.                 }
    33.             }
    34.         }
    35.         return false;
    36.     }
    37. }
    This was interacting with Tree:

    Code (Text):
    1. [Caution] You haven't submitted any event listeners to the dispatcher.
    2. java.lang.NullPointerException
    3.         at nul.IiiiiiiiII.do(Unknown Source)
    4.         at nul.IiiiiiiiII.special_uids(Unknown Source)
    5.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    6.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    7.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    8.         at java.lang.reflect.Method.invoke(Method.java:601)
    9.         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
    10.         at sun.rmi.transport.Transport$1.run(Transport.java:177)
    11.         at sun.rmi.transport.Transport$1.run(Transport.java:174)
    12.         at java.security.AccessController.doPrivileged(Native Method)
    13.         at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
    14.         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
    15.         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
    16.         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
    17.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    18.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    19.         at java.lang.Thread.run(Thread.java:722)
    20.         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276)
    21.         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253)
    22.         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162)
    23.         at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:227)
    24.         at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:179)
    25.         at com.sun.proxy.$Proxy8.special_uids(Unknown Source)
    26.         at nul.IiiiIIiIIIii.new(epb:12)
    27.         at nul.IiiiIIiIIIii.new(epb:15)
    28.         at com.runemate.game.api.hybrid.region.GameObjects.getLoaded(obc:4)
    29.         at com.runemate.game.api.hybrid.region.GameObjects.getLoaded(obc:198)
    30.         at com.runemate.game.api.hybrid.queries.GameObjectQueryBuilder.initialDataSet(ryb:237)
    31.         at com.runemate.game.api.hybrid.queries.QueryBuilder.results(bob:248)
    32.         at bots.TestWalk.WalkingEvent.execute(WalkingEvent.java:36)
    33.         at com.runemate.game.api.script.framework.task.TaskScript.onLoop(lrb:237)
    34.         at com.runemate.game.api.script.framework.LoopingScript.run(brb:234)
    35.         at com.runemate.game.api.script.framework.AbstractScript.start(exb:174)
    36.         at nul.iIiiiIiiIiiI.run(aic:232)
    Code for interacting:

    Code (Text):
    1. @Override
    2.     public void execute() {
    3.         /*GroundItem feathers = GroundItems.newQuery().names("Egg").results().nearest();
    4.         if(Players.getLocal() != null && !Players.getLocal().isMoving()) {
    5.             if (feathers != null) {
    6.                 System.out.println("Try to take bones");
    7.                 feathers.interact("Take");
    8.             }
    9.         }*/
    10.         GameObject y = GameObjects.newQuery().names("Tree").results().nearest();
    11.         if(y != null){
    12.             if(y.interact("Chop down", "Tree")){
    13.                 Execution.delayUntil(() -> Players.getLocal().getAnimationId() != -1, 5000);
    14.             }
    15.         }
    16.     }
    17.  
    18.     @Override
    19.     public boolean validate() {
    20.         //GroundItem feathers = GroundItems.newQuery().names("Egg").results().nearest();
    21.         return Players.getLocal() != null;
    22.     }
    Trying to kill a chicken:
    Code (Text):
    1. [Caution] You haven't submitted any event listeners to the dispatcher.
    2. java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    3.         java.rmi.RemoteException: Unable to find class object for Client; nested exception is:
    4.         java.lang.ClassNotFoundException: Client
    5.         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:353)
    6.         at sun.rmi.transport.Transport$1.run(Transport.java:177)
    7.         at sun.rmi.transport.Transport$1.run(Transport.java:174)
    8.         at java.security.AccessController.doPrivileged(Native Method)
    9.         at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
    10.         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
    11.         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
    12.         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
    13.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    14.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    15.         at java.lang.Thread.run(Thread.java:722)
    16.         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276)
    17.         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253)
    18.         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162)
    19.         at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:227)
    20.         at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:179)
    21.         at com.sun.proxy.$Proxy8.int32(Unknown Source)
    22.         at nul.iiIiiIiIiiii.new(qwb:159)
    23.         at com.runemate.game.api.hybrid.local.hud.Menu.getItems(xac:212)
    24.         at com.runemate.game.api.hybrid.local.hud.Menu.getItem(xac:49)
    25.         at com.runemate.game.api.hybrid.local.hud.Menu.click(xac:211)
    26.         at nul.IiiiIIiIIiii.interact(nwb:138)
    27.         at com.runemate.game.api.hybrid.entities.details.Interactable.interact(tg:47)
    28.         at com.runemate.game.api.hybrid.entities.details.Interactable.interact(tg:199)
    29.         at bots.TestWalk.WalkingEvent.execute(WalkingEvent.java:40)
    30.         at com.runemate.game.api.script.framework.task.TaskScript.onLoop(lrb:237)
    31.         at com.runemate.game.api.script.framework.LoopingScript.run(brb:234)
    32.         at com.runemate.game.api.script.framework.AbstractScript.start(exb:174)
    33.         at nul.iIiiiIiiIiiI.run(aic:232)
    34. Caused by: java.rmi.RemoteException: Unable to find class object for Client; nested exception is:
    35.         java.lang.ClassNotFoundException: Client
    36.         at nul.IiiiiiiiII.new(Unknown Source)
    37.         at nul.IiiiiiiiII.new(Unknown Source)
    38.         at nul.IiiiiiiiII.new(Unknown Source)
    39.         at nul.IiiiiiiiII.int32(Unknown Source)
    40.         at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
    41.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    42.         at java.lang.reflect.Method.invoke(Method.java:601)
    43.         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
    44.         at sun.rmi.transport.Transport$1.run(Transport.java:177)
    45.         at sun.rmi.transport.Transport$1.run(Transport.java:174)
    46.         at java.security.AccessController.doPrivileged(Native Method)
    47.         at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
    48.         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
    49.         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
    50.         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
    51.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    52.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    53.         at java.lang.Thread.run(Thread.java:722)
    54. Caused by: java.lang.ClassNotFoundException: Client
    55.         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    56.         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    57.         at java.security.AccessController.doPrivileged(Native Method)
    58.         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    59.         at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    60.         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    61.         at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    62.         at app.u.loadClass(u.java:79)
    63.         at java.lang.ClassLoader.findSystemClass(ClassLoader.java:1050)
    64.         at app.m.loadClass(m.java:30)
    65.         at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    66.         at java.lang.Class.forName0(Native Method)
    67.         at java.lang.Class.forName(Class.java:264)
    68.         ... 18 more
    Code for killing:

    Code (Text):
    1. public class WalkingEvent extends Task {
    2.     @Override
    3.     public void execute() {
    4.         /*GroundItem feathers = GroundItems.newQuery().names("Egg").results().nearest();
    5.         if(Players.getLocal() != null && !Players.getLocal().isMoving()) {
    6.             if (feathers != null) {
    7.                 System.out.println("Try to take bones");
    8.                 feathers.interact("Take");
    9.             }
    10.         }*/
    11.         Npc chick = Npcs.newQuery().names("Chicken").results().nearest();
    12.         if(chick != null){
    13.             chick.interact("Attack");
    14.         }
    15.     }
    16.  
    17.     @Override
    18.     public boolean validate() {
    19.         //GroundItem feathers = GroundItems.newQuery().names("Egg").results().nearest();
    20.         return Players.getLocal() != null;
    21.     }
    22.     public static boolean completeWalking(Locatable location) {
    23.         WebPath q = Traversal.getDefaultWeb().getPathBuilder().buildTo(location);
    24.         if (q != null) {
    25.             q.step();
    26.         } else {
    27.             RegionPath q2 = RegionPath.buildTo(location);
    28.             if (q2 != null) {
    29.                 q2.step();
    30.             } else {
    31.                 BresenhamPath q3 = BresenhamPath.buildTo(location);
    32.                 if (q3 != null) {
    33.                     q3.step();
    34.                 }
    35.             }
    36.         }
    37.         return false;
    38.     }
    39. }
    System: Windows 10

    I get much more errors while trying to interact with npcs, ground items. Only 1 thing works. And that is walking, but sometimes it gets errors too.

     
    #1 qverkk, Apr 9, 2016
    Last edited: Apr 9, 2016
  2. Best Answer:
    Post #7 by Cloud, Apr 11, 2016
  3. @Cloud Could be a gamepack specific issue with MenuItems? This line is a bit interesting though
    Code (Text):
    1. java.lang.ClassNotFoundException: Client
     
  4. @qverkk are you sure you're compiling your code with Spectre and not v1?
     
  5. While Savior was helping me, we've noticed that this error only comes up when using OSRS, for RS3 it works just fine. @Cloud @Arbiter
     
  6. Code (Text):
    1.  
    2. java.lang.NullPointerException
    3.         at nul.IiiiiiiiII.do(Unknown Source)
    4.         at nul.IiiiiiiiII.special_uids(Unknown Source)
    5.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    6.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    7.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    8.         at java.lang.reflect.Method.invoke(Method.java:601)
    9.         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
    10.         at sun.rmi.transport.Transport$1.run(Transport.java:177)
    11.         at sun.rmi.transport.Transport$1.run(Transport.java:174)
    12.         at java.security.AccessController.doPrivileged(Native Method)
    13.         at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
    14.         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
    15.         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
    16.         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
    17.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    18.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    19.         at java.lang.Thread.run(Thread.java:722)
    20.         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276)
    21.         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253)
    22.         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162)
    23.         at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:227)
    24.         at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:179)
    25.         at com.sun.proxy.$Proxy8.special_uids(Unknown Source)
    26.         at nul.IiiiIIiIIIii.new(epb:12)
    27.         at nul.IiiiIIiIIIii.new(epb:15)
    28.         at com.runemate.game.api.hybrid.region.GameObjects.getLoaded(obc:4)
    29.         at com.runemate.game.api.hybrid.region.GameObjects.getLoaded(obc:198)
    30.         at com.runemate.game.api.hybrid.queries.GameObjectQueryBuilder.initialDataSet(ryb:237)
    31.         at com.runemate.game.api.hybrid.queries.QueryBuilder.results(bob:248)
    32.         at bots.TestWalk.WalkingEvent.execute(WalkingEvent.java:36)
    33.         at com.runemate.game.api.script.framework.task.TaskScript.onLoop(lrb:237)
    34.         at com.runemate.game.api.script.framework.LoopingScript.run(brb:234)
    35.         at com.runemate.game.api.script.framework.AbstractScript.start(exb:174)
    36.         at nul.iIiiiIiiIiiI.run(aic:232)
    That exception has been fixed for the next release. Please look at the guide on how to file a proper bug report so I can properly investigate the other exceptions you posted.
     

Share This Page

Loading...