The Registry isn't running. Either start the rmiregistry tool, or change getRegistry()
to createRegistry().
It's curious, as some JVM must have been listening on port 1099, but not with a Registry running in it. Normally no Registry causes a java.rmi.ConnectException.