Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse SmartHome » Eclipse Kura(Need help regarding eclipse iot greenhouse project)
Eclipse Kura [message #1778412] Thu, 14 December 2017 04:16 Go to next message
Devang Gujarathi is currently offline Devang GujarathiFriend
Messages: 2
Registered: November 2017
Junior Member
I want to implement to other project which is similar to iot greenhouse project, I followed all steps also I deployed .dp file in kura. Bundle gets active in kura but doesn't included in service section. Output of kura.log is

2017-12-13 10:31:27,611 [qtp18004409-357] INFO o.e.k.w.s.s.FileServlet - Copying uploaded package file to file: /tmp/publish.dp
2017-12-13 10:31:27,622 [qtp18004409-357] INFO o.e.k.w.s.s.FileServlet - Installing package...
2017-12-13 10:31:27,624 [DeploymentAgent] INFO o.e.k.d.a.i.DeploymentAgent - About to install package at URL file:/tmp/publish.dp
2017-12-13 10:31:32,675 [DeploymentAgent] INFO o.e.k.c.c.ConfigurationServiceImpl - Registering metatype pid: org.eclipse.iot.greenhouse.publisher.GreenhousePublisher ...
2017-12-13 10:31:32,760 [DeploymentAgent] INFO o.e.k.c.c.ConfigurationServiceImpl - Seeding updated configuration for pid: org.eclipse.iot.greenhouse.publisher.GreenhousePublisher
2017-12-13 10:31:32,927 [DeploymentAgent] INFO o.e.k.d.a.i.DeploymentAgent - Posting INSTALLED event for package at URL file:/tmp/publish.dp: successful

OUTPUT of kura-console.log is

!ENTRY org.eclipse.equinox.ds 4 0 2017-12-13 10:31:34.083
!MESSAGE [SCR] Exception while activating instance org.eclipse.iot.greenhouse.sensors.raspberrypi.Pi4JGreenhouseSensorService@1f45fd5 of component org.eclipse.iot.greenhouse.sensors.raspberrypi.GreenhouseSensorsRaspiService
!STACK 0
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:235)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationEvent(SCRManager.java:363)
at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationEvent(SCRManager.java:303)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:91)
at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
Caused by: java.lang.UnsatisfiedLinkError: com.pi4j.wiringpi.Gpio.wiringPiSetup()I
at com.pi4j.wiringpi.Gpio.wiringPiSetup(Native Method)
at com.pi4j.io.gpio.RaspiGpioProvider.<init>(RaspiGpioProvider.java:47)
at com.pi4j.io.gpio.GpioFactory.getDefaultProvider(GpioFactory.java:102)
at com.pi4j.io.gpio.impl.GpioControllerImpl.<init>(GpioControllerImpl.java:67)
at com.pi4j.io.gpio.GpioFactory.getInstance(GpioFactory.java:85)
at org.eclipse.iot.greenhouse.sensors.raspberrypi.Pi4JGreenhouseSensorService.activate(Pi4JGreenhouseSensorService.java:43)
... 15 more
Root exception:
java.lang.UnsatisfiedLinkError: com.pi4j.wiringpi.Gpio.wiringPiSetup()I
at com.pi4j.wiringpi.Gpio.wiringPiSetup(Native Method)
at com.pi4j.io.gpio.RaspiGpioProvider.<init>(RaspiGpioProvider.java:47)
at com.pi4j.io.gpio.GpioFactory.getDefaultProvider(GpioFactory.java:102)
at com.pi4j.io.gpio.impl.GpioControllerImpl.<init>(GpioControllerImpl.java:67)
at com.pi4j.io.gpio.GpioFactory.getInstance(GpioFactory.java:85)
at org.eclipse.iot.greenhouse.sensors.raspberrypi.Pi4JGreenhouseSensorService.activate(Pi4JGreenhouseSensorService.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:235)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationEvent(SCRManager.java:363)
at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationEvent(SCRManager.java:303)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:91)
at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
Re: Eclipse Kura [message #1778441 is a reply to message #1778412] Thu, 14 December 2017 09:50 Go to previous message
Kai Kreuzer is currently offline Kai KreuzerFriend
Messages: 673
Registered: December 2011
Senior Member
I do not understand how this is related to Eclipse SmartHome. Did you mean to post this in the Kura forum instead?
Previous Topic:Multiple AND or OR operators in rules when using rule REST API
Next Topic:ComboBox for selecting a channel value
Goto Forum:
  


Current Time: Sat Dec 07 03:23:29 GMT 2024

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

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

Back to the top