View Single Post
  #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