Home Help Center

why is my Ice.Application.communicator() is null?

Just I installed the Ice 3.4.1 and eclipse plug-in (v, wrote the following code:

public int run(String[] arg0) {
Communicator communicator = communicator();
Ice.ObjectPrx obj = communicator().stringToProxy("hello:tcp -h -p 10000");
HelloPrx hello = HelloPrxHelper.uncheckedCast(obj);
return 0;

But I find my communicator is always null. Why? How do I solve this problem?


  • SystemSystem Member
    It's my mistake.

    Server server = new Server();
    int status = server.run(args);

    shuold be that:

    Server server = new Server();
    int status = server.main("server",args);
Sign In or Register to comment.