Archived

This forum has been archived. Please start a new discussion on GitHub.

update ice from 3.3.1 to 3.5.1

when i use 3.3.1, i can start the icegridnode and disable、stop the icebox service
then debug the icebox service use

public class Main
{

/**
* @param args
*/
public static void main(String[] args)
{
args = new String[1];
final File configDirectory = new File("D:\\icegrid\\db\\node\\servers");
final StringBuffer sb = new StringBuffer("--Ice.Config=");
for(File file : configDirectory.listFiles())
{
if(file.getName().startsWith("IceBox_"))
{
sb.append(file.getAbsolutePath()).append("\\config\\config").append(",");
}
}
args[0] = sb.substring(0 , sb.length() - 1);
Server server = new Server();
server.main("Application", args);

}

}

depend Icebox/Server.java and Icebox/ServiceManagerI.java

but when i update to 3.5.1
i can start the icegridnode and the icebox service work
but when i debug run the java project


use the code connect the server:

_communicator = Ice.Util.initialize(id);
_communicator.setDefaultLocator(_locatorPrx = Ice.LocatorPrxHelper.checkedCast(_communicator.stringToProxy("MyIceGrid/Locator:tcp -h 127.0.0.1 -p 4061")));
final slice.TestOperPrx testOperPrx = slice.TestOperPrxHelper
.uncheckedCast(_communicator.stringToProxy("Test"));

testOperPrx.printString();

the ice run time throw Ice.NoEndpointException
proxy = "Test -t -e 1.1"

Comments

  • We're investing similar issues after a user response: [ome-users] OMERO 4.4.9 won't start after upgrade from 4.4.5. Could this be related to the IP6 changes?

    Cheers,
    ~Josh
  • benoit
    benoit Rennes, France
    Hi,

    This is most likely related to the new 1.1 encoding version introduced with Ice 3.5.

    Stringified proxies from Ice 3.5 will by default use the 1.1 encoding. If this encoding isn't supported by IceGrid or the server you might get this Ice::NoEndpointException exception. You can try setting Ice.Default.EncodingVersion=1.0 in your client to use the 1.0 encoding by default for stringified proxies.

    See New in Ice 3.5: Encoding Version 1.1 for additional information.

    Cheers,
    Benoit.