Home Help Center



I'm using Ice 3.0.1 on a Windows (Server and Client)

My remote method is:
public MyObjectPrx createMyObject(ListenerPrx listener)

I try to invoke this method like:
MyObjectPrx myObjectPrx = myServicePrx.createMyObject(listener)

I get following Exception:
Exception in thread "main" java.lang.NullPointerException
	at ice.package._MyServiceDelM.createMyObject(Unknown Source)
	at ice.package.MyServicePrxHelper.createMyObject(Unknown Source)
	at ice.package.MyServicePrxHelper.createMyObject(Unknown Source)
	at my.package.MyObj.<init>(MyObj.java:45)

myServicePrx is not null and listener is not null.

Server/Client are both on the localhost

Thanks in advance


  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    I'm afraid without additional information, it's impossible to say what the problem is. Note that "listener" can be null (null-proxies are permissible). The easiest way to find out what's going on would be if you send us a small example that demonstrates the problem. It would also be helpful to see the stack trace with debug information.
Sign In or Register to comment.