You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Raymond Augé (Jira)" <ji...@apache.org> on 2019/12/06 15:41:00 UTC
[jira] [Created] (FELIX-6207) Exception from Activator on startup:
Start order issue
Raymond Augé created FELIX-6207:
-----------------------------------
Summary: Exception from Activator on startup: Start order issue
Key: FELIX-6207
URL: https://issues.apache.org/jira/browse/FELIX-6207
Project: Felix
Issue Type: Bug
Components: Configurator
Affects Versions: configurator-1.0.10
Reporter: Raymond Augé
There is a start order issue with the Configurator which results in an exception in the activator on start:
{code}
! Failed to start bundle org.apache.felix.configurator-1.0.10, exception activator error org.apache.johnzon.core.JsonProviderImpl not found from: javax.json.spi.JsonProvider:doLoadProvider#118
org.osgi.framework.BundleException: Exception in org.apache.felix.configurator.impl.Activator.start() of bundle org.apache.felix.configurator.
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:863)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:791)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1015)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:365)
at org.eclipse.osgi.container.Module.doStart(Module.java:603)
at org.eclipse.osgi.container.Module.start(Module.java:467)
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:439)
at aQute.launcher.Launcher.start(Launcher.java:632)
at aQute.launcher.Launcher.startBundles(Launcher.java:612)
at aQute.launcher.Launcher.activate(Launcher.java:516)
at aQute.launcher.Launcher.launch(Launcher.java:361)
at aQute.launcher.Launcher.run(Launcher.java:170)
at aQute.launcher.Launcher.main(Launcher.java:148)
at aQute.launcher.pre.EmbeddedLauncher.executeWithRunPath(EmbeddedLauncher.java:154)
at aQute.launcher.pre.EmbeddedLauncher.findAndExecute(EmbeddedLauncher.java:119)
at aQute.launcher.pre.EmbeddedLauncher.main(EmbeddedLauncher.java:48)
Caused by: javax.json.JsonException: org.apache.johnzon.core.JsonProviderImpl not found
at javax.json.spi.JsonProvider.doLoadProvider(JsonProvider.java:118)
at javax.json.spi.JsonProvider.provider(JsonProvider.java:89)
at javax.json.Json.createReader(Json.java:83)
at org.apache.felix.configurator.impl.json.JSONUtil.parseJSON(JSONUtil.java:329)
at org.apache.felix.configurator.impl.json.JSONUtil.readJSON(JSONUtil.java:161)
at org.apache.felix.configurator.impl.json.JSONUtil.readJSON(JSONUtil.java:122)
at org.apache.felix.configurator.impl.json.JSONUtil.readConfigurationsFromBundle(JSONUtil.java:86)
at org.apache.felix.configurator.impl.Configurator.processAddBundle(Configurator.java:315)
at org.apache.felix.configurator.impl.Configurator.start(Configurator.java:288)
at org.apache.felix.configurator.impl.ServicesListener.notifyChange(ServicesListener.java:117)
at org.apache.felix.configurator.impl.ServicesListener$1.addingService(ServicesListener.java:73)
at org.apache.felix.configurator.impl.ServicesListener$1.addingService(ServicesListener.java:65)
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:943)
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:321)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:264)
at org.apache.felix.configurator.impl.ServicesListener.<init>(ServicesListener.java:93)
at org.apache.felix.configurator.impl.Activator.start(Activator.java:36)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:842)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:834)
... 15 more
Caused by: java.lang.ClassNotFoundException: org.apache.johnzon.core.JsonProviderImpl
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at org.eclipse.osgi.internal.framework.ContextFinder.loadClass(ContextFinder.java:139)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at javax.json.spi.JsonProvider.doLoadProvider(JsonProvider.java:116)
... 38 more
{code}
The issue comes from mis-handling the scenario where the JSON provider is not correctly setup.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)