* Is port 1097 already in use? * Is there something actively listening at localhost:1097/EmpManager? * I'm also not sure that your lookup path of //localhost:1097/EmpManager is 'correct', you might need to have a rmi: at the start of it e.g. rmi://localhost:1097/EmpManager
Originally posted by tun zaw: when i run my code, error occur in "//localhost:1097/EmpManager". EmpManager is an interface.I don't understand following error " at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)".
Error occur in line "Naming.lookup(//localhost:1097/EmpManager)".
What is i should place in "EmpManager".Interface or server class or other. EmpManager is an interface in my code.
If you look at your stack trace you can see that it's a "connection refused to localhost error". That usually occurs because your lookup path is incorrect or that the port is in use. Are you able to answer my earlier questions?