Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse SmartHome » Upnp Discovery issue(usage of the UpnpDiscoveryParticipant)
Upnp Discovery issue [message #1744444] Tue, 27 September 2016 06:28 Go to next message
Eclipse UserFriend
Hi everybody,
I'm implementing a binding, which should use the Upnp as discovery mechanism. Therefore I read the tutorial at:
https://www.eclipse.org/smarthome/documentation/development/bindings/discovery-services.html#upnp-discovery
and implemented it according to that. Additional I activated my binding in the run configuration properties. Also I created a BindingNameDiscovery.xml in the OSGI-INF folder and edit it like the one in the hue binding. In the Manifest.MF, in the Dependencies section, in Required plug-ins, I added org.eclipse.smarthome.config.discovery and org.jupnp. If I now start the the eclipse runtime over run configuration, I don't see that my Upnp code will be executed. I can verify that my binding is started, because I see the output of my Handler.initialize() function.

I had also a closer look at the UpnpIOServiceImpl, so I should probably see something like Starting UPnP IO service... in the output?

I also activated the hue binding, but also here, there is no Upnp output.

Did i miss some configuration?

Thanks for your help.
Re: Upnp Discovery issue [message #1744492 is a reply to message #1744444] Tue, 27 September 2016 12:31 Go to previous messageGo to next message
Eclipse UserFriend
UpnpIOServiceImpl doesn't have to do something with UPnP discovery. Therefore you won't need to start it. Did you not only add the plugins into required plugins but als made sure, that they are started by default?
Re: Upnp Discovery issue [message #1744496 is a reply to message #1744444] Tue, 27 September 2016 12:50 Go to previous messageGo to next message
Eclipse UserFriend
Hi Andre,
thanks for response. Yes I checked that the that these plugins will be started by default (which is configured with "true").
I tried to solve my problem with mDNS, which works perfectly as described in the documentation. So theoretical my problem is solved, but I'm just curious why the Upnp stuff did not work.
Re: Upnp Discovery issue [message #1744546 is a reply to message #1744444] Wed, 28 September 2016 06:08 Go to previous messageGo to next message
Eclipse UserFriend
After I startup today, i got the following output on the console.
Do you know how to solve it?

org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.io.transport.upnp [7]
  Unresolved requirement: Import-Package: org.jupnp
    -> Export-Package: org.jupnp; bundle-symbolic-name="org.jupnp"; bundle-version="2.2.0"; version="0.0.0"
       org.jupnp [161]
         Unresolved requirement: Import-Package: org.apache.http.client
           -> Export-Package: org.apache.http.client; bundle-symbolic-name="org.apache.httpcomponents.httpclient"; bundle-version="4.3.6.v201411290715"; version="4.3.6"; uses:="org.apache.http.protocol,  org.apache.http.params,  org.apache.http.conn.routing,  org.apache.http.conn,  org.apache.http.cookie,  org.apache.http.client.methods,  org.apache.http,  org.apache.http.auth"
              org.apache.httpcomponents.httpclient [77]
                Unresolved requirement: Import-Package: net.sf.ehcache; resolution:="optional"
                Unresolved requirement: Import-Package: net.spy.memcached; resolution:="optional"
                Unresolved requirement: Import-Package: org.apache.http; version="4.3.3"

	at org.eclipse.osgi.container.Module.start(Module.java:434)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Re: Upnp Discovery issue [message #1745116 is a reply to message #1744546] Wed, 05 October 2016 10:50 Go to previous message
Eclipse UserFriend
I guess you need to add org.apache.http to your runtime.
Previous Topic:Limit to single instance of a Thing in binding
Next Topic:Duplicate channels on Thing
Goto Forum:
  


Current Time: Wed Feb 19 05:51:20 GMT 2025

Powered by FUDForum. Page generated in 0.03952 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top