Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Bundle errors after Kura upgrading
Bundle errors after Kura upgrading [message #1715704] Wed, 25 November 2015 10:57 Go to next message
Marco Balzarin is currently offline Marco BalzarinFriend
Messages: 22
Registered: May 2015
Junior Member
Hi,

We have developed a bunlde using the version 3.1.0-SNAPSHOT of ESF. The bunlde runs normally without any problem.

We have now upgraded ESF to the newest version 3.1.2. When we try to run the bundle, we obtain the following exception:

Quote:

2015-11-25 WARN ComponentUtil:81 - Error loading OCD for pid com.xxx.Yyy
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:504)
at java.lang.Integer.parseInt(Integer.java:527)
at org.eclipse.kura.core.configuration.util.serializers.XmlJavaMetadataMapper.parseAD(XmlJavaMetadataMapper.java:385)
at org.eclipse.kura.core.configuration.util.serializers.XmlJavaMetadataMapper.parseOCD(XmlJavaMetadataMapper.java:291)
at org.eclipse.kura.core.configuration.util.serializers.XmlJavaMetadataMapper.unmarshal(XmlJavaMetadataMapper.java:148)
at org.eclipse.kura.core.configuration.util.XmlUtil.unmarshal(XmlUtil.java:154)
at org.eclipse.kura.core.configuration.util.XmlUtil.unmarshal(XmlUtil.java:106)
at org.eclipse.kura.core.configuration.util.ComponentUtil.readObjectClassDefinition(ComponentUtil.java:213)
at org.eclipse.kura.core.configuration.util.ComponentUtil.getObjectClassDefinition(ComponentUtil.java:74)
at org.eclipse.kura.core.configuration.ComponentMetaTypeBundleTracker.processBundleMetaType(ComponentMetaTypeBundleTracker.java:110)
at org.eclipse.kura.core.configuration.ComponentMetaTypeBundleTracker.addingBundle(ComponentMetaTypeBundleTracker.java:87)
at org.eclipse.kura.core.configuration.ComponentMetaTypeBundleTracker.addingBundle(ComponentMetaTypeBundleTracker.java:1)
at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:467)
at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:1)
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:443)
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$9.run(Framework.java:1508)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1506)
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.start(AbstractBundle.java:300)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:292)
at org.eclipse.equinox.console.commands.EquinoxCommandProvider.start(EquinoxCommandProvider.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.felix.gogo.runtime.Reflective.method(Reflective.java:136)
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:469)
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:395)
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
at org.apache.felix.gogo.shell.Console.run(Console.java:62)
at org.apache.felix.gogo.shell.Shell.console(Shell.java:203)
at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.felix.gogo.runtime.Reflective.method(Reflective.java:136)
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:469)
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:395)
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
at org.eclipse.equinox.console.telnet.TelnetConnection.run(TelnetConnection.java:94)


The bundle has not been modified since its last run on the previous version of ESF. Infact, we tried to downgrade the framework again to the 3.1.0-SNAPSHOT and the bundle started to work again.

How we can solve this?

Thanks,
Marco
Re: Bundle errors after Kura upgrading [message #1715705 is a reply to message #1715704] Wed, 25 November 2015 11:13 Go to previous message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi Marco,
this is Kura forum and not meant to provide support for commercial software. Please contact the official support for that.

Otherwise, could you post the metatype file that is giving error?

Thanks,
Matteo
Previous Topic:eclipse Kura installation
Next Topic:Error Export OSGi Bundle
Goto Forum:
  


Current Time: Sat Apr 20 02:40:44 GMT 2024

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

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

Back to the top