But maybe when you start with one Data Interface that extends Remote, then another interface that extends this interface by adding a few more methods. Then the Data Remote implements the second interface. Thinking that we can cast or return an object of this second interface that we are going wrong.
I have only one remote interface
The NullPointerException is raised on the internals of RMI getting to the TreeSet of airports