[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ecf-dev] ZooDiscovery problem (with Linux)

Hi folks,

1) If I use ZooDiscovery under Linux, then InetAddress.getLocalHost().getHostAddress() gives me the localhost IP address (127.0.0.1 or 127.0.1.1) and not my eth0 address as under Windows. Should this be chosen (zoodiscovery checks internaly ), if I would like to have my host to be the centralized server?

IContainer container = ContainerFactory.getDefault().createContainer("ecf.discovery.zoodiscovery");
ID target = container.getConnectNamespace().createInstance(
new String[] {"zoodiscovery.flavor.centralized=" + InetAddress.getLocalHost().getHostAddress()});
container.connect(target, null);


2) Server (centralized set to own IP) under Windows and Client (centralized set to Server IP) under Linux, what's this about? Does it have to do with 1)?

org.eclipse.ecf.core.identity.IDCreateException: Namespace ecf.namespace.zoodiscovery not found
at org.eclipse.ecf.core.identity.IDFactory.logAndThrow(IDFactory.java:186)
at org.eclipse.ecf.core.identity.IDFactory.createID(IDFactory.java:210)
at org.eclipse.ecf.discovery.identity.ServiceIDFactory.createServiceTypeID(ServiceIDFactory.java:64)
at org.eclipse.ecf.provider.zookeeper.core.DiscoverdService.<init>(DiscoverdService.java:58)
at org.eclipse.ecf.provider.zookeeper.node.internal.NodeReader.processResult(NodeReader.java:100)
at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:527)
[02.02.2011 17:48:43][org.apache.zookeeper.ClientCnxn] ERROR: Caught unexpected throwable
org.eclipse.ecf.core.identity.IDCreateException: Namespace ecf.namespace.zoodiscovery not found
at org.eclipse.ecf.core.identity.IDFactory.logAndThrow(IDFactory.java:186)
at org.eclipse.ecf.core.identity.IDFactory.createID(IDFactory.java:210)
at org.eclipse.ecf.discovery.identity.ServiceIDFactory.createServiceTypeID(ServiceIDFactory.java:64)
at org.eclipse.ecf.provider.zookeeper.core.DiscoverdService.<init>(DiscoverdService.java:58)
at org.eclipse.ecf.provider.zookeeper.node.internal.NodeReader.processResult(NodeReader.java:100)
at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:527)
[02.02.2011 17:52:06][org.apache.zookeeper.server.NIOServerCnxn] WARN : EndOfStreamException: Unable to read additional data from client sessionid 0x12de7458e170003, likely client has closed socket


Thanks!

Martin