filippo balicchia created KARAF-1993:
----------------------------------------
Summary: Improve EIK karafDataprovider
Key: KARAF-1993
URL: https://issues.apache.org/jira/browse/KARAF-1993
Project: Karaf
Issue Type: Improvement
Components: eik-core
Environment: * karaf version 2.3.x or 2.2.x is irrelevant.
* jdk 7 I don't try with jdk 6 but I think is the same
Reporter: filippo balicchia
Priority: Minor
Fix For: eik-3.0.0
When EIK launch Karaf in log file I found
{noformat}
java.lang.reflect.UndeclaredThrowableException
at $Proxy1.listServices(Unknown Source)
at
org.apache.karaf.eik.workbench.internal.KarafRuntimeDataProvider.loadServiceData(KarafRuntimeDataProvider.java:263)
at
org.apache.karaf.eik.workbench.internal.KarafRuntimeDataProvider.access$2(KarafRuntimeDataProvider.java:251)
at
org.apache.karaf.eik.workbench.internal.KarafRuntimeDataProvider$1.run(KarafRuntimeDataProvider.java:125)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: javax.management.InstanceNotFoundException:
osgi.core:type=serviceState,version=1.5
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1094)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getClassLoaderFor(DefaultMBeanServerInterceptor.java:1438)
java.lang.reflect.UndeclaredThrowableException
at $Proxy0.listBundles(Unknown Source)
at
org.apache.karaf.eik.workbench.internal.KarafRuntimeDataProvider.loadBundleData(KarafRuntimeDataProvider.java:218)
at
org.apache.karaf.eik.workbench.internal.KarafRuntimeDataProvider.access$1(KarafRuntimeDataProvider.java:206)
at
org.apache.karaf.eik.workbench.internal.KarafRuntimeDataProvider$1.run(KarafRuntimeDataProvider.java:116)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: javax.management.InstanceNotFoundException:
osgi.core:type=bundleState,version=1.5
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1094)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getClassLoaderFor(DefaultMBeanServerInterceptor.java:1438)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.getClassLoaderFor(JmxMBeanServer.java:1276)
{noformat}
This error seems to appear only at startup because The specified MBean in that
moment (startup) does not exist in the repository.
Eik after 25 second try to reload data without problem.
The improvement that i think to be done, in IMHO, are
* Improve Job that load service and bundle Data
* Improve exception handling
* Make configurable polling frequency
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira