Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kura-dev] Technical support for IoT/Kura

Dear Benjamin,

I fixed this error already, 

Thank you
Hoang

On Sun, Nov 2, 2014 at 5:27 PM, Benjamin Cabé <benjamin@xxxxxxxxxxx> wrote:
Is there a chance you have an empty space at the beginning of the file, before the "<?xml….."? It certainly looks like it in what you copy/pasted here, and that’s also what the error log you posted earlier seems to indicate… 
I think this is an issue with the documentation website, actually, I will submit pull requests to make sure the code can be copied in Eclipse without any issue.

Benjamin.


Le 2 nov. 2014 à 11:11, Nguyen <sj@xxxxxxxxx> a écrit :

Hi Benjamin, here is component.xml file

 <?xml version="1.0" encoding="UTF-8"?>
  <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0"
      activate="activate"
      configuration-policy="require"
      deactivate="deactivate"
      enabled="true"
      immediate="true"
      modified="updated"
      name="org.eclipse.kura.example.configurable.ConfigurableExample">

      <implementation class="org.eclipse.kura.example.configurable.ConfigurableExample"/>
      <service>
          <provide interface="org.eclipse.kura.example.configurable.ConfigurableExample"/>
      </service>
      <property name="service.pid" type="String" value="org.eclipse.kura.example.configurable.ConfigurableExample"/>
  </scr:component>


On Sun, Nov 2, 2014 at 5:06 PM, Benjamin Cabé <benjamin@xxxxxxxxxxx> wrote:
Hoang,

The XML file that I think *may* be corrupted is the « component.xml » file you created during the step « Create Component Class ». 
If you right-click on the file in the package explorer view, you can select « Open With > Text editor » to see the raw contents of the file. If you can post it here, it will help diagnose whether it is corrupted indeed.


Benjamin –


Le 2 nov. 2014 à 10:52, Nguyen <sj@xxxxxxxxx> a écrit :

Dear Benjamin

Thank you for your reply, thank you also for your instruction videos about M2M :)

The xml file is in the following link, because I'm newbie for KURA, so just follow the link 


Pls open this link and scroll down to the "Create the Default Configuration" and check the xml file ConfigurableExample.xml, I just remove "*" because eclipse not accept this

I start using the KURA from scracth that follow strictly the guidelines from this link


Using KURA Equinox 3.8.1 as Target Platform, running on CentOS 6.3 64 bit

2 links are enough for me for a 1st application based on KURA,

Thank you
HOang

On Sun, Nov 2, 2014 at 4:36 PM, Benjamin Cabé <benjamin@xxxxxxxxxxx> wrote:
Hi Hoang,

Sorry I didn’t answer earlier, last week at EclipseCon Europe was very busy. But you had the right approach to post on the mailing-list ;-)
Can you share your component.xml source file? I suspect the Component Definition editor in Eclipse may have messed it up. Alternatively you can try creating a new component from scratch and see if that’s any better.

Your log files also shows an error activating the org.eclipse.kura.core.configuration bundle which should not be there. Which Kura version are you using and how did you install it (i.e. deb package from the website, or you built Kura yourself)?

Benjamin –


Le 2 nov. 2014 à 09:36, Nguyen <sj@xxxxxxxxx> a écrit :


Hi Kura Eclipse

I got this problem and sent email to get support to Benjamin but no reply

Anyone can help?

Thank you
Hoang

---------- Forwarded message ----------
From: Nguyen <sj@xxxxxxxxx>
Date: Thu, Oct 30, 2014 at 6:35 PM
Subject: Technical support for IoT/Kura
To: benjamin@xxxxxxxxxxx


Hi Benjamin

I'm newbie for M2M development on Kura, 

I followed the guidelines at this links and get this problem, could you help me to fix it


1. In the step of  Create Component Class, I can not tick in "This component is immediately activated."

<image.png>

And once I finished, I got the error as the attached file, as following

ESSION 2013-10-30 16:12:08.821 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_71
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -dev file:/opt/eclipse/workspaces/.metadata/.plugins/org.eclipse.pde.core/Kura_Emulator_Linux/dev.properties -os linux -ws gtk -arch x86_64 -consoleLog -console

!ENTRY org.eclipse.kura.core.configuration 4 0 2013-10-30 16:12:10.455
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle "org.eclipse.kura.core.configuration_1.0.0 [4]" could not be resolved. Reason: Missing Constraint: Import-Package: org.eclipse.kura.core.util; version="[0.2.0,1.0.0)"
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.resume(AbstractBundle.java:390)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.kura.example.configurable 4 0 2013-10-30 16:12:10.474
!MESSAGE [SCR] Error occurred while opening component definition file bundleentry://10.fwk2094307850/OSGI-INF/component.xml
!STACK 0
java.io.IOException: [Line: 1, Pos: 2]  XML prolog '<?xml' is not expected at this position.
at org.eclipse.equinox.internal.util.xml.impl.XMLParserImpl.err(XMLParserImpl.java:1062)
at org.eclipse.equinox.internal.util.xml.impl.XMLParserImpl.parse_tag_special(XMLParserImpl.java:733)
at org.eclipse.equinox.internal.util.xml.impl.XMLParserImpl.parseXML(XMLParserImpl.java:1099)
at org.eclipse.equinox.internal.util.xml.XMLParser.parseXML(XMLParser.java:95)
at org.eclipse.equinox.internal.ds.model.DeclarationParser.parse(DeclarationParser.java:142)
at org.eclipse.equinox.internal.ds.ComponentStorage.parseXMLDeclaration(ComponentStorage.java:93)
at org.eclipse.equinox.internal.ds.storage.file.FileStorage.processXMLDeclarations(FileStorage.java:115)
at org.eclipse.equinox.internal.ds.storage.file.FileStorage.loadComponentDefinitions(FileStorage.java:92)
at org.eclipse.equinox.internal.ds.SCRManager.startedBundle2(SCRManager.java:602)
at org.eclipse.equinox.internal.ds.SCRManager.startedBundle(SCRManager.java:578)
at org.eclipse.equinox.internal.ds.SCRManager.bundleChanged(SCRManager.java:235)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1568)
at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1504)
at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1499)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:391)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.kura.example.configurable 4 0 2013-10-30 16:12:10.481
!MESSAGE [SCR] Error occurred while opening component definition file bundleentry://10.fwk2094307850/OSGI-INF/component.xml
!STACK 0
java.io.IOException: [Line: 1, Pos: 2]  XML prolog '<?xml' is not expected at this position.
at org.eclipse.equinox.internal.util.xml.impl.XMLParserImpl.err(XMLParserImpl.java:1062)
at org.eclipse.equinox.internal.util.xml.impl.XMLParserImpl.parse_tag_special(XMLParserImpl.java:733)
at org.eclipse.equinox.internal.util.xml.impl.XMLParserImpl.parseXML(XMLParserImpl.java:1099)
at org.eclipse.equinox.internal.util.xml.XMLParser.parseXML(XMLParser.java:95)
at org.eclipse.equinox.internal.ds.model.DeclarationParser.parse(DeclarationParser.java:142)
at org.eclipse.equinox.internal.ds.ComponentStorage.parseXMLDeclaration(ComponentStorage.java:93)
at org.eclipse.equinox.internal.ds.storage.file.FileStorage.processXMLDeclarations(FileStorage.java:115)
at org.eclipse.equinox.internal.ds.storage.file.FileStorage.loadComponentDefinitions(FileStorage.java:92)
at org.eclipse.equinox.internal.ds.SCRManager.startedBundle2(SCRManager.java:602)
at org.eclipse.equinox.internal.ds.SCRManager.startedBundle(SCRManager.java:578)
at org.eclipse.equinox.internal.ds.SCRManager.bundleChanged(SCRManager.java:235)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1568)
at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1504)
at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1499)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:391)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)



--

Thank you

Hoang 

UDC Viet Nam 

Tel: +84 462691962

Mobile: +84 916 210 236

Skype: sjudcvn

Email: sj@xxxxxxxxx

Website: www.udcvn.com







--

Thank you

Hoang 

UDC Viet Nam 

Tel: +84 462691962

Mobile: +84 916 210 236

Skype: sjudcvn

Email: sj@xxxxxxxxx

Website: www.udcvn.com







--

Thank you

Hoang 

UDC Viet Nam 

Tel: +84 462691962

Mobile: +84 916 210 236

Skype: sjudcvn

Email: sj@xxxxxxxxx

Website: www.udcvn.com




<error_log.txt>_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev


_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev



--

Thank you

Hoang 

UDC Viet Nam 

Tel: +84 462691962

Mobile: +84 916 210 236

Skype: sjudcvn

Email: sj@xxxxxxxxx

Website: www.udcvn.com




_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev


_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev



--

Thank you

Hoang 

UDC Viet Nam 

Tel: +84 462691962

Mobile: +84 916 210 236

Skype: sjudcvn

Email: sj@xxxxxxxxx

Website: www.udcvn.com




<new>_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev


_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev



--

Thank you

Hoang 

UDC Viet Nam 

Tel: +84 462691962

Mobile: +84 916 210 236

Skype: sjudcvn

Email: sj@xxxxxxxxx

Website: www.udcvn.com





Back to the top