Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 11-03-2004
feb feb is offline
Registered User
 
 
Join Date: Nov 2004
Posts: 5
Bug about Module

I have follow Ice-1.5.1.pdf , and try the hello app written in java ,from page 58 . The example is running well. When I change Printer.ice to :

module M1 {
interface Printer
{
string printString(string s) ;
};
} ;

then try java -cp ./classes:$ICEJ_HOME/lib/Ice.jar M1.Client , I get :

Exception in thread "main" java.lang.Error: Feb Invalid proxy
at M1.Client.main(Client.java:18)
, (comment " Feb Invalid proxy " is changed by me)

then I follow the program by System.out.println("**")

at last find in PrinterPrxHelper.java:

public final class PrinterPrxHelper extends Ice.ObjectPrxHelperBase implements PrinterPrx
{
...
if(b.ice_isA("::M1::Printer")) --> if(b.ice_isA("::Printer"))
}

"::M1::Printer" must be "::Printer" ,

then
java -cp ./classes:$ICEJ_HOME/lib/Ice.jar M1.Client

run ok .

Do you think it is a bug or I use module incorrectly ?
__________________
FEB Son Of Mz
Husband Of Medea
Reply With Quote
  #2 (permalink)  
Old 11-03-2004
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,780
::M1::Printer is correct, not ::Printer. Does your server use the same Slice definitions as the client, i.e., does it implement ::M1::Printer or simply ::Printer? If the latter, then this is the reason for the failure. Both the client and the server mus use the same Slice code.
Reply With Quote
  #3 (permalink)  
Old 11-03-2004
feb feb is offline
Registered User
 
 
Join Date: Nov 2004
Posts: 5
Yes I find the problem is my mistick .

I used the client written by java implement module M1 , to call server written by c++ without module M1.

So concluded the principle , the client / server must use the same .ice defination .

Thanks a lot , and be guilt to bother you.
__________________
FEB Son Of Mz
Husband Of Medea
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
Compile error using VERSION in module ctennis Bug Reports 1 03-29-2006 02:49 PM
Question about module OrNot Help Center 2 09-19-2005 05:57 AM
Python and partial Ice module inclusion (Glacier2 specifically) ckohnert Help Center 4 08-18-2005 03:08 PM
Throwing exception from another module beardo Help Center 3 06-01-2005 12:21 PM
Ice module name ganzuoni Comments 2 06-25-2003 09:12 AM


All times are GMT -4. The time now is 12:40 PM.


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.