ConfigurableExample service isn't showed in Kura Web UI [message #1716588] |
Sat, 05 December 2015 15:36 |
|
Hello,
I followed the hello example from the Kura documentation and it seems to work fine.
I followed the configurable example but I'm in troubles.
The configurable example service isn't showed in the Kura services Web UI.
The strange thing is that I can see the bundle in the Active state (from Device -> Bundles menu) but I can't see in the console the message printed by the logger instance as provided by the class implementation.
So ... the bundle is active but the active() method isn't executed ?
I'm using the emulator.
The active() method of hello example works fine.
I can't see any error.
What's the problem ?
Thanks,
Paolo.
|
|
|
|
Re: ConfigurableExample service isn't showed in Kura Web UI [message #1716733 is a reply to message #1716707] |
Mon, 07 December 2015 20:42 |
|
Hi Dave,
thanks for your reply. I noticed the following ...
If the configuration policy of the ConfigurableExample is set to "require" as documentation describes, this is the output of "ls" command.
As you can see the service is in the list with Unsatisfied state.
ID State Component Name Located in bundle
1 Unsatisfied org.eclipse.kura.example.configurable org.eclipse.kura.example.configurable(bid=1)
2 Active org.eclipse.kura.deployment.agent org.eclipse.kura.deployment.agent(bid=2)
3 Active org.eclipse.kura.data.DataService org.eclipse.kura.core(bid=4)
4 Active org.eclipse.kura.db.DbService org.eclipse.kura.core(bid=4)
5 Active org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport org.eclipse.kura.core(bid=4)
6 Active org.eclipse.kura.ssl.SslManagerService org.eclipse.kura.core(bid=4)
7 Active org.eclipse.kura.system.SystemService org.eclipse.kura.core(bid=4)
8 Active org.eclipse.kura.system.SystemAdminService org.eclipse.kura.core(bid=4)
9 Active org.eclipse.kura.emulator.Emulator org.eclipse.kura.emulator(bid=9)
10 Active org.eclipse.kura.watchdog.WatchdogService org.eclipse.kura.emulator(bid=9)
11 Active org.eclipse.kura.position.PositionService org.eclipse.kura.emulator(bid=9)
12 Active org.eclipse.kura.clock.ClockService org.eclipse.kura.emulator(bid=9)
13 Active org.eclipse.kura.net.NetworkService org.eclipse.kura.emulator(bid=9)
14 Active org.eclipse.kura.usb.UsbService org.eclipse.kura.emulator(bid=9)
15 Active org.eclipse.kura.cloud.CloudService org.eclipse.kura.core.cloud(bid=11)
16 Active org.eclipse.kura.cloud.CloudCallService org.eclipse.kura.core.cloud(bid=11)
17 Active org.eclipse.kura.cloud.app.command.CommandCloudApp org.eclipse.kura.core.cloud(bid=11)
18 Active org.eclipse.kura.web.Console org.eclipse.kura.web(bid=14)
19 Active org.eclipse.kura.configuration.ConfigurationService org.eclipse.kura.core.configuration(bid=15)
20 Active org.eclipse.kura.status.CloudConnectionStatusService org.eclipse.kura.linux.status(bid=23)
21 Active org.eclipse.kura.certificate.CertificatesService org.eclipse.kura.core.certificates(bid=36)
22 Active org.eclipse.equinox.event org.eclipse.equinox.event(bid=38)
23 Active org.eclipse.kura.crypto.CryptoService org.eclipse.kura.core.crypto(bid=49)
24 Active org.eclipse.kura.gpio.GPIOService org.eclipse.kura.emulator.gpio(bid=50)
25 Active org.eclipse.kura.core.comm.CommConnectionFactory org.eclipse.kura.core.comm(bid=51)
26 Active org.eclipse.kura.example.hello_osgi org.eclipse.kura.example.hello_osgi(bid=53)
27 Active org.eclipse.kura.demo.heater.Heater org.eclipse.kura.demo.heater(bid=54)
If I leave empty the configuration policy in the component.xml, the ConfigurableExample is activated as you can see (Active state) :
All Components:
ID State Component Name Located in bundle
1 Active org.eclipse.kura.example.configurable org.eclipse.kura.example.configurable(bid=1)
2 Active org.eclipse.kura.deployment.agent org.eclipse.kura.deployment.agent(bid=2)
3 Active org.eclipse.kura.data.DataService org.eclipse.kura.core(bid=4)
4 Active org.eclipse.kura.db.DbService org.eclipse.kura.core(bid=4)
5 Active org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport org.eclipse.kura.core(bid=4)
6 Active org.eclipse.kura.ssl.SslManagerService org.eclipse.kura.core(bid=4)
7 Active org.eclipse.kura.system.SystemService org.eclipse.kura.core(bid=4)
8 Active org.eclipse.kura.system.SystemAdminService org.eclipse.kura.core(bid=4)
9 Active org.eclipse.kura.emulator.Emulator org.eclipse.kura.emulator(bid=9)
10 Active org.eclipse.kura.watchdog.WatchdogService org.eclipse.kura.emulator(bid=9)
11 Active org.eclipse.kura.position.PositionService org.eclipse.kura.emulator(bid=9)
12 Active org.eclipse.kura.clock.ClockService org.eclipse.kura.emulator(bid=9)
13 Active org.eclipse.kura.net.NetworkService org.eclipse.kura.emulator(bid=9)
14 Active org.eclipse.kura.usb.UsbService org.eclipse.kura.emulator(bid=9)
15 Active org.eclipse.kura.cloud.CloudService org.eclipse.kura.core.cloud(bid=11)
16 Active org.eclipse.kura.cloud.CloudCallService org.eclipse.kura.core.cloud(bid=11)
17 Active org.eclipse.kura.cloud.app.command.CommandCloudApp org.eclipse.kura.core.cloud(bid=11)
18 Active org.eclipse.kura.web.Console org.eclipse.kura.web(bid=14)
19 Active org.eclipse.kura.configuration.ConfigurationService org.eclipse.kura.core.configuration(bid=15)
20 Active org.eclipse.kura.status.CloudConnectionStatusService org.eclipse.kura.linux.status(bid=23)
21 Active org.eclipse.kura.certificate.CertificatesService org.eclipse.kura.core.certificates(bid=36)
22 Active org.eclipse.equinox.event org.eclipse.equinox.event(bid=38)
23 Active org.eclipse.kura.crypto.CryptoService org.eclipse.kura.core.crypto(bid=49)
24 Active org.eclipse.kura.gpio.GPIOService org.eclipse.kura.emulator.gpio(bid=50)
25 Active org.eclipse.kura.core.comm.CommConnectionFactory org.eclipse.kura.core.comm(bid=51)
26 Active org.eclipse.kura.example.hello_osgi org.eclipse.kura.example.hello_osgi(bid=53)
27 Active org.eclipse.kura.demo.heater.Heater org.eclipse.kura.demo.heater(bid=54)
However in both cases it doesn't appear in the Kura Web UI.
Any idea ?
Thanks,
Paolo.
|
|
|
|
|
|
|
|
|
Re: ConfigurableExample service isn't showed in Kura Web UI [message #1717013 is a reply to message #1716733] |
Wed, 09 December 2015 15:23 |
|
Paolo Patierno wrote on Mon, 07 December 2015 21:42Hi Dave,
thanks for your reply. I noticed the following ...
If the configuration policy of the ConfigurableExample is set to "require" as documentation describes, this is the output of "ls" command.
As you can see the service is in the list with Unsatisfied state.
ID State Component Name Located in bundle
1 Unsatisfied org.eclipse.kura.example.configurable org.eclipse.kura.example.configurable(bid=1)
typing comp 1 (or whichever is the ID of the bogus component) may give you more hints on what's actually wrong.
I would suggest you do as Dave said and provide us with a link to a git repo with the full code, as that may help tremendously narrow down the problem.
My blog: http://blog.benjamin-cabe.com
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.11840 seconds