title: Java RMI hierarchical interfaces
body: <p>i'm trying to write a rmi application.</p>
  
  <p>I have the following structure:
  <img src="https://i.imgur.com/ZUZSNwB.png" alt="class structure"></p>
  
  <p>Every method in RemoteLobby throws a RemoteException. Methods in ILobby don't.</p>
  
  <p>I get the following error when compiling:</p>
  
  <blockquote>
    <p>java.rmi.server.ExportException: remote object implements illegal remote interface; nested exception is: </p>
  </blockquote>
  
  <p>Is it possible to have a interface between the class and the remote interface?</p>
  
  <ul>
  <li>Ahsous</li>
  </ul>