Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] r-osgi - Multiplexer must not be constructed from NULL primary endpoint

On 10/18/2010 03:28 PM, Martin Petzold wrote:
>  Yes, "org.apache.zookeeper_3.3.0" and
> "org.eclipse.ecf.provider.zookeeper" are ACTIVE.
> 
> Is there something wrong the way i registere the service?
> I have exactly the same bundles included as the
> "org.eclipse.ecf.internal.examples.remoteservices.hello.host.HelloHostApplication"
> example.
> 
> By the way system is Windows Vista if it would be any Socket problem. I
> have also tried to use different ports:
> 
> public static final String CONTAINER_ID = "r-osgi://" +
> Activator.getHost() + ":" + Activator.getPort();
>     public static int getPort() {
>         try {
>             ServerSocket server = new ServerSocket(0);
>             int port = server.getLocalPort();
>             server.close();
>             return port;
>         } catch (IOException e) {
>             e.printStackTrace();
>         }
>         return 0;
>     }

Hi Martin,

r-OSGi picks a port automatically anyway irregardless of what the
consumers sets the containerid to [0].

Btw. you don't have to create the container manually anymore. The
example is outdated in this regard. It will be created by the
distribution provider lazily.

If you want to select the r-OSGi instead of the generic provider, just
set
-Dorg.eclipse.ecf.osgi.services.distribution.defaultConfigType=ecf.r_osgi.peer
(and subscribe to [1]).

Markus
[0] https://bugs.eclipse.org/267521
[1] https://bugs.eclipse.org/326132


Back to the top