[
https://issues.apache.org/jira/browse/FELIX-6392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17299590#comment-17299590
]
Rakesh Kumar commented on FELIX-6392:
-------------------------------------
some exceptions in logs.
{code:java}
2021-03-11 19:36:02.657 [FelixLogListener] ERROR
com.adeptj.modules.commons.logging.osgi.Logger - FrameworkEvent ERROR
org.apache.felix.log.LogException: org.osgi.framework.ServiceException: Service
factory exception: org/osgi/service/metatype/MetaTypeProvider
at
org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:354)
at
org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:249)
at
org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:362)
at org.apache.felix.framework.Felix.getService(Felix.java:3984)
at
org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:450)
at
org.apache.felix.cm.impl.helper.BaseTracker.getRealService(BaseTracker.java:207)
at
org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:102)
at
org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)
at
org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1129)
at
org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1085)
at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:122)
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:84)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.apache.felix.log.LogException: java.lang.NoClassDefFoundError:
org/osgi/service/metatype/MetaTypeProvider
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.defineClass(BundleWiringImpl.java:2332)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.defineClassParallel(BundleWiringImpl.java:2150)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2084)
at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1550)
at
org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1970)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at
org.apache.felix.webconsole.plugins.memoryusage.internal.Activator$3.createObject(Activator.java:72)
at
org.apache.felix.webconsole.plugins.memoryusage.internal.Activator$AbstractServiceFactory.getService(Activator.java:121)
at
org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:349)
... 12 common frames omitted
Caused by: java.lang.ClassNotFoundException:
org.osgi.service.metatype.MetaTypeProvider not found by
org.apache.felix.webconsole.plugins.memoryusage [83]
at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1585)
at
org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1970)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 24 common frames omitted
2021-03-11 19:36:02.657 [FelixDispatchQueue] ERROR
com.adeptj.runtime.osgi.FrameworkLifecycleListener - Service factory exception:
org/osgi/service/metatype/MetaTypeProvider
org.osgi.framework.ServiceException: Service factory exception:
org/osgi/service/metatype/MetaTypeProvider
at
org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:354)
at
org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:249)
at
org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:362)
at org.apache.felix.framework.Felix.getService(Felix.java:3984)
at
org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:450)
at
org.apache.felix.cm.impl.helper.BaseTracker.getRealService(BaseTracker.java:207)
at
org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:102)
at
org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)
at
org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1129)
at
org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1085)
at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:122)
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:84)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.NoClassDefFoundError:
org/osgi/service/metatype/MetaTypeProvider
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.defineClass(BundleWiringImpl.java:2332)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.defineClassParallel(BundleWiringImpl.java:2150)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2084)
at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1550)
at
org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1970)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at
org.apache.felix.webconsole.plugins.memoryusage.internal.Activator$3.createObject(Activator.java:72)
at
org.apache.felix.webconsole.plugins.memoryusage.internal.Activator$AbstractServiceFactory.getService(Activator.java:121)
at
org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:349)
... 12 common frames omitted
Caused by: java.lang.ClassNotFoundException:
org.osgi.service.metatype.MetaTypeProvider not found by
org.apache.felix.webconsole.plugins.memoryusage [83]
at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1585)
at
org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1970)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 24 common frames omitted {code}
> Webconsole configadmin javascript error: Uncaught TypeError: parsers is
> undefined
> ---------------------------------------------------------------------------------
>
> Key: FELIX-6392
> URL: https://issues.apache.org/jira/browse/FELIX-6392
> Project: Felix
> Issue Type: Bug
> Components: Web Console
> Reporter: Jorrit Nutma
> Priority: Major
> Fix For: webconsole-4.6.2
>
> Attachments: Screenshot_20210303_170011.png,
> image-2021-03-11-19-37-00-425.png
>
>
> We've been using the Felix Webconsole a lot, in particular because it
> provides a nice UI for Felix Configadmin. Now we're upgrading our software
> and running into a problem that occurs in (although it might not originate
> from) the webconsole.
>
> We started out with the example workspace of bndtools
> ([https://github.com/bndtools/workspace]). Added a very simple API project
> and an implementation project. In the implementation project we define a
> declarative service component using the OSGi 7.0 annotations.
>
> But when going to the Configuration page
> ([http://localhost:8080/system/console/configMgr]), the configuration list
> stays empty and the webbrowser console shows a Javascript error:
> {noformat}
> jquery-3.5.1.js:2 Uncaught TypeError: Cannot read property '1' of undefined
> at getCachedSortType (jquery.tablesorter-2.0.3.js:2)
> at multisort (jquery.tablesorter-2.0.3.js:2)
> at HTMLTableElement.<anonymous> (jquery.tablesorter-2.0.3.js:2)
> at HTMLTableElement.dispatch (jquery-3.5.1.js:2)
> at HTMLTableElement.v.handle (jquery-3.5.1.js:2)
> at Object.trigger (jquery-3.5.1.js:2)
> at HTMLTableElement.<anonymous> (jquery-3.5.1.js:2)
> at Function.each (jquery-3.5.1.js:2)
> at s.fn.init.each (jquery-3.5.1.js:2)
> at s.fn.init.trigger (jquery-3.5.1.js:2){noformat}
> The weird thing is... even if I downgrade the webconsole bundles to the
> versions that I have been using without problems for years, I get the same
> error. It also appears with the latest versions of the webconsole and
> configadmin from [https://repo.maven.apache.org/maven2/] The cause of the
> problem somehow doesn't seem to be in the web console implementation itself.
>
> Here follows the content of my bndrun file:
>
> {noformat}
> -runfw: org.eclipse.osgi;version=3.13
> -runprovidedcapabilities: ${native_capability}
> -resolve.effective: active
> -runproperties: \
> org.osgi.service.http.port=8080
> -runbundles: \
> org.apache.commons.io;version='[2.6.0,2.6.1)',\
> org.apache.felix.http.jetty;version='[4.0.6,4.0.7)',\
> org.apache.felix.http.servlet-api;version='[1.1.2,1.1.3)',\
> org.apache.felix.scr;version='[2.1.10,2.1.11)',\
> org.example.api;version=snapshot,\
> org.example.impl;version=snapshot,\
> org.apache.commons.commons-fileupload;version='[1.4.0,1.4.1)',\
> org.apache.felix.inventory;version='[1.0.4,1.0.5)',\
> org.osgi.util.function;version='[1.1.0,1.1.1)',\
> org.apache.felix.configadmin;version='[1.9.8,1.9.9)',\
> org.apache.felix.webconsole;version='[4.3.4,4.3.5)',\
> org.apache.felix.webconsole.plugins.ds;version='[2.0.8,2.0.9)'
> -runrequires: \
> bnd.identity;version='latest';id='org.example.impl',\
> bnd.identity;id='org.apache.felix.http.jetty',\
> bnd.identity;id='org.apache.felix.configadmin',\
> bnd.identity;id='org.apache.felix.webconsole',\
> bnd.identity;id='org.apache.felix.webconsole.plugins.ds'
> -runee: JavaSE-11
> -resolve: manual
> {noformat}
> And I've also tried it with the latest bundles from
> [https://repo.maven.apache.org/maven2/]
>
> {noformat}
> bnd.identity;version='4.6.0';id='org.apache.felix.webconsole',\
> bnd.identity;version='2.0.8';id='org.apache.felix.webconsole.plugins.ds',\
> bnd.identity;version='1.9.20';id='org.apache.felix.configadmin'
> {noformat}
> The javascript error occurs both in Firefox and Chromium and it looks to be
> the same error as reported https://issues.apache.org/jira/browse/FELIX-2715
> We would really appreciate some help with this. Can you replicate the issue
> and do you have a clue what it causes? And how it can be fixed?
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)