Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Helloworld(Nt able to run Hello world example bundle in target device)
Helloworld [message #1775679] Fri, 03 November 2017 09:36 Go to next message
khaleel shaik is currently offline khaleel shaikFriend
Messages: 19
Registered: November 2017
Junior Member
Hi


Im able to build helloworld bundle and deploy it in target in which kura 2.1.0 is running .In target helloworld bundle is installed but when i tried to make it start it throws below error
Quote:

gogo: BundleException: The bundle "org.eclipse.kura.example.hello_1.0.0.201711031141 [79]" could not be resolved. Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.8


Target device java version is "1.8.0_151"

can any one help me out.

Regards
khaleel
Re: Helloworld [message #1775715 is a reply to message #1775679] Fri, 03 November 2017 20:17 Go to previous messageGo to next message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hello,

In the helloworld bundle, please update the MANIFEST.MF file and either remove the line "Bundle-RequiredExecutionEnvironment: JavaSE-1.8" or update the line to match the Java version you are running on the target device.

Thanks,
--Dave
Re: Helloworld [message #1775850 is a reply to message #1775715] Tue, 07 November 2017 09:12 Go to previous messageGo to next message
khaleel shaik is currently offline khaleel shaikFriend
Messages: 19
Registered: November 2017
Junior Member
Thanks for reply

I have deleted "Bundle-RequiredExecutionEnvironment: JavaSE-1.8" from MANIFEST.MF file and then i got the below error
Quote:

osgi>
!ENTRY 1 0 2017-11-07 09:03:29.276
!MESSAGE [IAgent][RemoteBundleAdminImpl@1f6428a] [startBundle] Bundle cannot be started: Error[code=-6000;message=Failed to start bundle: The bundle "org.eclipse.kura.example.hello_osgi_1.0.0.201711071225 [79]" could not be resolved. Reason: Missing Constraint: Import-Package: org.osgi.service.component; version="1.2.2";details=null]
!STACK 0
org.osgi.framework.BundleException: The bundle "org.eclipse.kura.example.hello_osgi_1.0.0.201711071225 [79]" could not be resolved. Reason: Missing Constraint: Import-Package: org.osgi.service.component; version="1.2.2"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1332)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
at org.tigris.mtoolkit.iagent.internal.rpc.RemoteBundleAdminImpl.startBundle(RemoteBundleAdminImpl.java:230)
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.tigris.mtoolkit.iagent.internal.pmp.InvocationThread.run(InvocationThread.java:54)
at org.tigris.mtoolkit.iagent.internal.utils.ThreadPool$Worker.run(ThreadPool.java:179)
at java.lang.Thread.run(Thread.java:748)


This is my manifest file
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Hello Example
Bundle-SymbolicName: org.eclipse.kura.example.hello_osgi
Bundle-Version: 1.0.0.qualifier
Service-Component: OSGI-INF/*.xml,
 component.xml
Import-Package: org.eclipse.osgi.framework.console;version="1.0.0",
 org.osgi.framework;version="1.3.0",
 org.osgi.service.component;version="1.2.2",
 org.osgi.service.component.annotations;version="1.2.0";resolution:=optional,
 org.osgi.util.tracker;version="1.3.1",
 org.slf4j;version="1.7.21"


when I change org.osgi.service.component;version="1.2.2" to 1.2.0 then no error is getting.
Is it ok to change it manually ?
Re: Helloworld [message #1775900 is a reply to message #1775850] Wed, 08 November 2017 00:57 Go to previous messageGo to next message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Yes, that is fine. But it sounds like the target platform you are using to create the hello world application is different than the Kura version running on your Raspberry Pi. You should make sure you are using the user workspace that matches the Kura version on your Pi.
Re: Helloworld [message #1776006 is a reply to message #1775900] Thu, 09 November 2017 07:34 Go to previous messageGo to next message
khaleel shaik is currently offline khaleel shaikFriend
Messages: 19
Registered: November 2017
Junior Member
Yes thats the issue version mismatch.I have changed my target version now im able to deploy and run the bundle in target.
Thanks for support
Facing issue to deploy .dp file to kura [message #1776427 is a reply to message #1775900] Thu, 16 November 2017 11:29 Go to previous message
Devang Gujarathi is currently offline Devang GujarathiFriend
Messages: 2
Registered: November 2017
Junior Member
I am implementing simple block reactive and want deploy package in kura. But every time I am uploading .dp file kura stops working or file not install. Also I followed all steps to configure eclipse and kura. Like importing zip for block reactive , installed mtoolkit. In kura I did all network setup but still facing issue.

THIS IS THE OUTPUT OF /var/log/kura-console.log

!MESSAGE Bundle 'com.bitreactive.blocks.osgi.runtime/2.6.1 already present in other deployment packages!

!ENTRY 1 0 2017-11-16 03:43:10.582 !MESSAGE [IAgent][DeploymentEventListener@49dc62] [handleComplete] Deployment package event is not successful

!ENTRY org.apache.felix.deploymentadmin 4 0 2017-11-16 03:48:25.393 !MESSAGE Bundle 'com.bitreactive.blocks.osgi.runtime/2.6.1 already present in other deployment packages!

!ENTRY 1 0 2017-11-16 03:48:25.402 !MESSAGE [IAgent][DeploymentEventListener@49dc62] [handleComplete] Deployment package event is not successful

THIS IS THE OUTPUT OF 'ss' command

id State Bundle
0 ACTIVE org.eclipse.osgi_3.8.1.v20120830-144521 Fragments=74
1 ACTIVE com.bitreactive.library.coap_1.5.0
2 INSTALLED jdk.dio_1.0.5
3 ACTIVE org.eclipse.kura.emulator.clock_1.0.1
4 ACTIVE com.bitreactive.library.buffering_3.11.2
5 ACTIVE org.eclipse.kura.camel.xml_1.0.0
6 ACTIVE com.google.protobuf_2.6.0
7 ACTIVE org.eclipse.kura.core.net_1.0.10
8 ACTIVE org.eclipse.kura.example.camel.publisher_1.0.0
9 ACTIVE com.bitreactive.library.polling_1.1.2
10 ACTIVE org.eclipse.kura.example.camel.quickstart_1.1.0
11 ACTIVE org.eclipse.equinox.util_1.0.400.v20120522-2049
12 ACTIVE org.eclipse.osgi.util_3.2.300.v20120522-1822
13 ACTIVE com.bitreactive.library.geofence_1.5.0
14 ACTIVE org.apache.felix.dependencymanager_3.0.0
15 ACTIVE org.eclipse.soda.dk.comm_1.2.3
16 ACTIVE com.bitreactive.library.rpi.peripherals_1.15.0
17 ACTIVE org.eclipse.jetty.http_8.1.3.v20120522
18 ACTIVE org.apache.felix.gogo.command_0.8.0.v201108120515
19 ACTIVE californium-osgi_1.0.0.SNAPSHOT
20 ACTIVE com.bitreactive.library.osgi.service_1.0.0
21 ACTIVE org.eclipse.kura.emulator_1.0.8
22 ACTIVE com.google.gson_2.2.4
23 ACTIVE org.apache.camel.camel-kura_2.17.2
24 ACTIVE org.hsqldb.hsqldb_2.3.0
25 ACTIVE com.bitreactive.library.keyteq.sms_1.1.0
26 ACTIVE com.bitreactive.library.chirp_2.0.0
27 ACTIVE org.eclipse.kura.deployment.agent_1.0.7
28 ACTIVE org.eclipse.equinox.common_3.6.100.v20120522-1841
29 ACTIVE org.eclipse.jetty.continuation_8.1.3.v20120522
30 ACTIVE org.eclipse.jetty.server_8.1.3.v20120522
31 ACTIVE org.eclipse.jetty.util_8.1.3.v20120522
32 ACTIVE org.eclipse.kura.core.configuration_1.0.9
33 ACTIVE com.bitreactive.library.properties_1.2.0
34 ACTIVE org.apache.camel.camel-core_2.17.2
Fragments=54
35 ACTIVE org.eclipse.equinox.event_1.2.200.v20120522-2049

ID State Component Name Located in bundle
1 Active org.eclipse.kura.clock.ClockService org.eclipse.kura.emulator.clock(bid=3)
2 Active org.eclipse.kura.camel.xml.XmlRouterComponent org.eclipse.kura.camel.xml(bid=5)
3 Active org.eclipse.kura.example.camel.publisher.ExamplePublisher org.eclipse.kura.example.camel.publisher(bid=8)
4 Active org.eclipse.kura.example.camel.quickstart.GatewayRouterJava org.eclipse.kura.example.camel.quickstart(bid=10)
5 Unsatisfied org.eclipse.kura.example.camel.quickstart.GatewayRouterXml org.eclipse.kura.example.camel.quickstart(bid=10)
6 Active org.eclipse.kura.emulator.Emulator org.eclipse.kura.emulator(bid=21)
7 Active org.eclipse.kura.deployment.agent org.eclipse.kura.deployment.agent(bid=27)
8 Active org.eclipse.kura.core.configuration.CloudConfigurationHandler org.eclipse.kura.core.configuration(bid=32)
9 Active org.eclipse.kura.configuration.ConfigurationService org.eclipse.kura.core.configuration(bid=32)
10 Active org.eclipse.equinox.event org.eclipse.equinox.event(bid=35)
11 Active org.eclipse.kura.web.Console org.eclipse.kura.web(bid=37)
12 Active org.eclipse.kura.status.CloudConnectionStatusService org.eclipse.kura.core.status(bid=41)
13 Active org.eclipse.kura.core.comm.CommConnectionFactory org.eclipse.kura.core.comm(bid=47)
14 Unsatisfied org.eclipse.kura.example.ble.tisensortag.BluetoothLe org.eclipse.kura.example.ble.tisensortag(bid=73)
15 Unsatisfied org.eclipse.kura.example.publisher.ExamplePublisher org.eclipse.kura.example.publisher(bid=75)
16 Active org.eclipse.kura.certificate.CertificatesService org.eclipse.kura.core.certificates(bid=77)
17 Active org.eclipse.kura.position.PositionService org.eclipse.kura.emulator.position(bid=78)
18 Active org.eclipse.kura.example.camel.aggregation.GatewayRouter org.eclipse.kura.example.camel.aggregation(bid=84)
19 Unsatisfied org.eclipse.kura.camel.KuraCloudComponentResolver org.eclipse.kura.camel(bid=86)
20 Active org.eclipse.kura.watchdog.WatchdogService org.eclipse.kura.emulator.watchdog(bid=87)
21 Unsatisfied org.eclipse.kura.demo.heater.Heater org.eclipse.kura.demo.heater(bid=97)
22 Unsatisfied org.eclipse.kura.data.DataService org.eclipse.kura.core(bid=98)
23 Active org.eclipse.kura.db.DbService org.eclipse.kura.core(bid=98)
24 Unsatisfied org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport org.eclipse.kura.core(bid=98)
25 Active org.eclipse.kura.ssl.SslManagerService org.eclipse.kura.core(bid=98)
26 Active org.eclipse.kura.system.SystemService org.eclipse.kura.core(bid=98)
27 Active org.eclipse.kura.system.SystemAdminService org.eclipse.kura.core(bid=98)
28 Active org.eclipse.kura.crypto.CryptoService org.eclipse.kura.core.crypto(bid=102)
29 Unsatisfied demo1.demo1.Component demo1(bid=110)
30 Unsatisfied org.eclipse.kura.cloud.CloudService org.eclipse.kura.core.cloud(bid=111)
31 Unsatisfied org.eclipse.kura.cloud.CloudCallService org.eclipse.kura.core.cloud(bid=111)
32 Active org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory org.eclipse.kura.core.cloud(bid=111)
33 Unsatisfied org.eclipse.kura.cloud.app.command.CommandCloudApp org.eclipse.kura.core.cloud(bid=111)
34 Unsatisfied org.eclipse.kura.camel.cloud.factory.CamelFactory org.eclipse.kura.camel.cloud.factory(bid=116)
35 Active org.eclipse.kura.camel.cloud.factory.CamelCloudServiceFactory org.eclipse.kura.camel.cloud.factory(bid=116)
36 Active org.eclipse.kura.net.NetworkService org.eclipse.kura.emulator.net(bid=120)
37 Active org.eclipse.kura.gpio.GPIOService org.eclipse.kura.emulator.gpio(bid=125)
38 Active org.eclipse.kura.example.beacon.BeaconExample org.eclipse.kura.example.beacon(bid=128)
39 Active org.eclipse.kura.usb.UsbService org.eclipse.kura.emulator.usb(bid=131)
40 Active org.eclipse.kura.bluetooth.BluetoothService org.eclipse.kura.linux.bluetooth(bid=137)
Previous Topic:TCP/IP
Next Topic:Kura Pi 2 Raspberry memory
Goto Forum:
  


Current Time: Thu Apr 25 07:00:12 GMT 2024

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

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

Back to the top