Comments (4)
I don't see the need to fix this. Just stop monit and control Kura as desired.
from kura.
Hello
Has anybody faced this issue with the PositionService. Most likely I am not doing something right, but can't pin point what it is.
Here is my situation.
- I have successfully added a USB GPS sensor to Raspberry Pi. I can see the GPS coordinates in the Kura Status page.- I modified the heater.xml to include a reference to the PositionService and added the bind/unbind methods in the heater.java implementation class.- Now when i am trying to deploy the heater.dp package, i am seeing the following errors. - I can see the PositionService running, the .dp package is not able to resolve it at runtime.
Error while deploying heater.dp
!MESSAGE [SCR] Exception occurred while getting method 'setCloudService' of class org.eclipse.kura.demo.heater.Heater Details: Problematic reference = Reference[name = CloudService, interface = org.eclipse.kura.cloud.CloudService, policy = static, cardinality = 1..1, target = null, bind = setCloudService, unbind = unsetCloudService] of service component = org.eclipse.kura.demo.heater.Heater component implementation class = org.eclipse.kura.demo.heater.Heater located in bundle with symbolic name = org.eclipse.kura.demo.heater bundle location = osgi-dp:org.eclipse.kura.demo.heater!STACK 0java.lang.NoClassDefFoundError: org/eclipse/kura/position/PositionService at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2688) at java.lang.Class.getDeclaredMethod(Class.java:2115) at org.eclipse.equinox.internal.ds.model.ComponentReference.getMethod(ComponentReference.java:104) at org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:331) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:432) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bind(ServiceComponentProp.java:218)
My Heater.xml file additions :
<reference name="CloudService" policy="static" bind="setCloudService" unbind="unsetCloudService" cardinality="1..1" interface="org.eclipse.kura.cloud.CloudService"/> <reference name="PositionService" bind="setPositionService" unbind="unsetPositionService" policy="static" cardinality="1..1" interface="org.eclipse.kura.position.PositionService" />
MANIFEST.MF file
Manifest-Version: 1.0Bundle-ManifestVersion: 2Bundle-Name: org.eclipse.kura.demo.heaterBundle-SymbolicName: org.eclipse.kura.demo.heater;singleton:=trueBundle-Version: 1.0.2.qualifierBundle-Vendor: EUROTECHBundle-RequiredExecutionEnvironment: JavaSE-1.6Service-Component: OSGI-INF/*.xmlBundle-ActivationPolicy: lazyImport-Package: org.eclipse.kura.cloud; version="[1.0,2.0)", org.eclipse.kura.configuration; version="[1.0,2.0)", org.eclipse.kura.message; version="[1.0,2.0)", org.osgi.service.component;version="1.2.0", org.slf4j;version="1.6.4"Require-Bundle: org.eclipse.kura.api
Any help will be greatly appreciated.
ThanksHitesh Dave
From: dwoodard1 [email protected]
To: eclipse/kura [email protected]
Sent: Thursday, January 7, 2016 8:33 AM
Subject: Re: [kura] Stopping Kura with Monit (#83)
Closed #83.—
Reply to this email directly or view it on GitHub.
from kura.
Hello,
Could you please open a new Issue? This issue is closed and not related to your question.
For reference, it appears you are not importing org.eclipse.kura.position in your MANIFEST.MF. Doing so should resolve your issue.
Thanks,
--Dave
from kura.
Thanks for your quick response. I compared the manifest files of the emulator and figured out the missing entries under imported packages.
Thanks again.
Hitesh
Sent from Yahoo Mail on Android
On Mon, Jan 18, 2016 at 9:08 AM, [email protected] wrote:
Hello,
Could you please open a new Issue? This issue is closed and not related to your question.
For reference, it appears you are not importing org.eclipse.kura.position in your MANIFEST.MF. Doing so should resolve your issue.
Thanks,
--Dave
—
Reply to this email directly or view it on GitHub.
from kura.
Related Issues (20)
- Expired certificate for Eclipse Marketplace (ssl-eclipse-marketplace) HOT 1
- Unable to install packages from Eclipse Marketplace
- Question: Eclipse Kura Component is now listed as deprecated ? HOT 4
- Kura Configuration: device.custom-name & Device Custom-Name wrongly saved via Kapua Configuration HOT 9
- Hosted p2 repo containing Kura's target definition HOT 2
- Question: What is the best way to update a device running Kura maintaining components and configurations? HOT 2
- Free subscription via CloudConnectionManager HOT 2
- OSGi Metatype annotations missing from the target definition HOT 2
- Raspberry Pi Installation Documentation Error - Kura package name(s) changed? HOT 1
- install modbus package from eclipse market failed HOT 1
- installed modbus driver successfully but cannot select the modbus option when create a new driver HOT 2
- In kura 5.3.1 I have duplicate keystores HOT 10
- Bump Bouncy Castle to 1.74 HOT 2
- how config kura project in eclipse in order to run or debug HOT 3
- Ability to add / remove single channels from an asset programmatically HOT 5
- Custom cloud connector for AMQP / RabbitMQ HOT 5
- Kura Build 5.4.0 RELEASE build fails with JAVA 17
- Cannot access Web UI on VPS HOT 7
- Kura build failing in JAVA17 HOT 1
- Warning Instead Error When Creating a Driver Without Factory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kura.