Archived
This forum has been archived. Please start a new discussion on GitHub.
java.lang.NullPointerException
in Help Center
Hi
I'm using Ice 3.0.1 on a Windows (Server and Client)
My remote method is:
I try to invoke this method like:
I get following Exception:
myServicePrx is not null and listener is not null.
Server/Client are both on the localhost
Thanks in advance
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
0
Comments
-
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.0