Giter VIP home page Giter VIP logo

Comments (4)

cdealti avatar cdealti commented on June 20, 2024

I don't see the need to fix this. Just stop monit and control Kura as desired.

from kura.

hndave avatar hndave commented on June 20, 2024

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.

dwoodard1 avatar dwoodard1 commented on June 20, 2024

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.

hndave avatar hndave commented on June 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.