Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 04-14-2008
bxhsix bxhsix is offline
Registered User
 
Name: Dong Wang
Organization: Harbin Institute of Technology
Project: Data transportation
 
Join Date: Mar 2008
Posts: 19
Question Why does idempotent cause marshalexception

hello, in the beginning I used java as client and C++ as server and they worked well. But when I made an operation idempotent in the ice file, the problem arised. Whenever the client calls the idempotent operation of the server, the server will throw exception as follows:
...warning: dispatch exception: Object.cpp:292: Ice::MarshalException:
protocol error: error during marshaling or unmarshaling:
unexpected operation mode. expected = ::Ice::Idempotent received = ::Ice::Normal
...
If I remove the keyword idempotent in the ice file and re-slice2cpp, the server works well again. What's the problem?
Thanks a lot!
Reply With Quote
  #2 (permalink)  
Old 04-14-2008
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,542
Hi,

Which Ice version do you use? This exception indicates that the Java client still sends the operation with the "normal" operation mode (instead of the expected "idempotent"). Did you recompile the Slice file with slice2java and Java client?

Cheers,
Benoit.
Reply With Quote
  #3 (permalink)  
Old 04-14-2008
bxhsix bxhsix is offline
Registered User
 
Name: Dong Wang
Organization: Harbin Institute of Technology
Project: Data transportation
 
Join Date: Mar 2008
Posts: 19
Thanks Benoit!
The problem has been solved! I did recompile the Slice file with slice2java and Java client, but maybe I didn't refresh the developing environment!
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


All times are GMT -4. The time now is 11:31 AM.


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