Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-27-2006
David David is offline
Registered User
 
 
Join Date: Jun 2006
Location: Zürich
Posts: 9
java.lang.NullPointerException

Hi

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

My remote method is:
Code:
public MyObjectPrx createMyObject(ListenerPrx listener)
I try to invoke this method like:
Code:
MyObjectPrx myObjectPrx = myServicePrx.createMyObject(listener)
I get following Exception:
Code:
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
__________________
David Lüthi
Schmid Telecom
Project ICS
Reply With Quote
  #2 (permalink)  
Old 09-27-2006
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IceV3.11 java client and vc7.0Server : java.lang.NullPointerException? zhoubin Help Center 2 11-24-2006 04:03 AM
NullPointerException nightnday Help Center 8 02-21-2006 04:10 PM
java.lang.StackOverflowError brian Help Center 1 03-12-2004 08:21 AM
java.lang.StackOverflowErrors brian Help Center 1 10-28-2003 05:42 PM


All times are GMT -4. The time now is 12:49 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.