[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ecf-dev] New topic in forum Eclipse Communications Framework (ECF), called How to setup o.e.ecf.examples.raspberrypi.* on the pi, by Christoph Keimel

Title: Eclipse Community Forums
Subject: How to setup o.e.ecf.examples.raspberrypi.* on the pi Author: Christoph Keimel Date: Thu, 13 November 2014 22:13
Hello

I am trying to run the example org.eclipse.ecf.examples.raspberrypi.management on a raspberry pi following this tutorial. After starting the programm the error: "Cannot assign requested address" is thrown repeatedly.

I'm using the ip address of my pi (192.168.1.121) as the host name and I have checked that the port 3288 is not used before. After the startup I can see the port 3288 listening, but I can't find the pi in the Service Discovery view.

In the OSGi log I can see ch.ethz.iks.slp trying to connect to 127.0.1.1. Any pointers on why this might fail and what I can do about it are greatly appriciated!

Versions:
- Equinox Target Components 3.10.0
- ECF OSGi Remote Services SDK 3.9.0
with dependencies
working in Luna RC1

pi@pi01 ~/ecf_raspi_sample $ sudo ./rpimgmthost.sh 192.168.1.121
Hostname: 192.168.1.121
Port: 3288
javaprops=-Decf.generic.server.hostname=192.168.1.121 -Decf.generic.server.port=3288 -Dch.ethz.iks.slp.debug=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true
equinox=plugins/org.eclipse.osgi_3.10.1.v20140909-1633.jar
Debug options:
    file:/home/pi/ecf_raspi_sample/.options not found
Time to load bundles: 5643
20:45:46.796 DEBUG ch.ethz.iks.slp - jSLP OSGi started.
20:45:46.807 DEBUG ch.ethz.iks.slp - ServiceEvent REGISTERED [S:{ch.ethz.iks.slp.Advertiser}={service.id=68, service.bundleid=25, service.scope=bundle}]
20:45:46.831 DEBUG ch.ethz.iks.slp - ServiceEvent REGISTERED [S:{ch.ethz.iks.slp.Locator}={service.id=69, service.bundleid=25, service.scope=bundle}]
20:45:46.852 DEBUG ch.ethz.iks.slp - BundleEvent STARTED
20:45:48.505 DEBUG ch.ethz.iks.slp - jSLP is running on the following interfaces: [127.0.1.1]
20:45:48.519 DEBUG ch.ethz.iks.slp - jSLP is using port: 427
20:45:49.220 WARN  ch.ethz.iks.slp - Error connecting to: 127.0.1.1
java.net.BindException: Cannot assign requested address
        at java.net.PlainDatagramSocketImpl.bind0(Native Method) ~[na:1.8.0]
        at java.net.AbstractPlainDatagramSocketImpl.bind(AbstractPlainDatagramSocketImpl.java:93) ~[na:1.8.0]
        at java.net.DatagramSocket.bind(DatagramSocket.java:371) ~[na:1.8.0]
        at java.net.DatagramSocket.<init>(DatagramSocket.java:222) ~[na:1.8.0]
        at java.net.DatagramSocket.<init>(DatagramSocket.java:279) ~[na:1.8.0]
        at ch.ethz.iks.slp.impl.SLPCore.daLookup(SLPCore.java:611) ~[na:na]
        at ch.ethz.iks.slp.impl.SLPCore.init(SLPCore.java:321) ~[na:na]
        at ch.ethz.iks.slp.impl.Activator$2.getService(Activator.java:51) ~[na:na]
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0]
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:496) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:619) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:414) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.eclipse.ecf.internal.provider.jslp.Activator.getLocator(Activator.java:64) ~[na:na]
        at org.eclipse.ecf.internal.provider.jslp.JSLPDiscoveryJob.run(JSLPDiscoveryJob.java:43) ~[na:na]
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) ~[na:na]
20:45:49.433 ERROR ch.ethz.iks.slp - Exception in initial DA lookup
ch.ethz.iks.slp.ServiceLocationException: Cannot assign requested address
        at ch.ethz.iks.slp.impl.SLPCore.daLookup(SLPCore.java:645) ~[na:na]
        at ch.ethz.iks.slp.impl.SLPCore.init(SLPCore.java:321) ~[na:na]
        at ch.ethz.iks.slp.impl.Activator$2.getService(Activator.java:51) ~[na:na]
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0]
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:496) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:619) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:414) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261) ~[org.eclipse.osgi_3.10.1.v20140909-1633.jar:na]
        at org.eclipse.ecf.internal.provider.jslp.Activator.getLocator(Activator.java:64) ~[na:na]
        at org.eclipse.ecf.internal.provider.jslp.JSLPDiscoveryJob.run(JSLPDiscoveryJob.java:43) ~[na:na]
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) ~[na:na]
20:45:49.449 DEBUG ch.ethz.iks.slp - DAS FOR SCOPE default: null


Thanks!
Christoph
[ Reply ][ Quote ][ View Topic/Message ][ Unsubscribe from this forum ]