title: JAVA: RMI method error: java.lang.NoSuchMethodError
body: <p>I'm getting this error while executing the method chat in RMI:</p>
  
  <pre><code>    ...
      case talk:
      if(param!=null)
      {
         System.out.println("What do you want to say to "+param+"?");
         String msg=br.readLine();
         String room=myPG.getCurrentRoom();
         utils.chat(room,param,msg);
      }
      else
         System.out.println("Wrong usage: e.g. talk Ciccio");
      break;
      ...
  </code></pre>
  
  <p>The implementation of RMI method is very simple... but the error comes before entering into the method:</p>
  
  <pre><code>public void chat(String room,String name,String msg) throws RemoteException
      {
          System.out.println(room+name+msg);
      }
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoSuchMethodError: pgUtils.PGUtilsInterface.chat(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
  </code></pre>
  
  <p>EDIT: the remote object utils works fine with all the other remote methods that i use in my application, so... don't know what's happening.</p>