Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 84AF7109F0 for ; Mon, 31 Mar 2014 13:17:19 +0000 (UTC) Received: (qmail 32287 invoked by uid 500); 31 Mar 2014 13:17:19 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 32230 invoked by uid 500); 31 Mar 2014 13:17:17 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 31872 invoked by uid 99); 31 Mar 2014 13:17:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2014 13:17:15 +0000 Date: Mon, 31 Mar 2014 13:17:15 +0000 (UTC) From: "filippo balicchia (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KARAF-1993) Improve EIK karafDataprovider MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-1993?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] filippo balicchia updated KARAF-1993: ------------------------------------- Attachment: KARAF-1993.patch.txt In this patch I've fixed=20 * karafDataProvider using using jmx Querying * upgrade to aries jmx to 1.1.0 * Fix a couple npe > 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=20 > Reporter: filippo balicchia > Assignee: Jean-Baptiste Onofr=C3=A9 > Priority: Minor > Fix For: eik-2.3.1, eik-3.0.0 > > Attachments: KARAF-1993.patch.txt > > > When EIK launch Karaf in log file I found > {noformat} > java.lang.reflect.UndeclaredThrowableException > =09at $Proxy1.listServices(Unknown Source) > =09at org.apache.karaf.eik.workbench.internal.KarafRuntimeDataProvider.lo= adServiceData(KarafRuntimeDataProvider.java:263) > =09at org.apache.karaf.eik.workbench.internal.KarafRuntimeDataProvider.ac= cess$2(KarafRuntimeDataProvider.java:251) > =09at org.apache.karaf.eik.workbench.internal.KarafRuntimeDataProvider$1.= run(KarafRuntimeDataProvider.java:125) > =09at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) > Caused by: javax.management.InstanceNotFoundException: osgi.core:type=3Ds= erviceState,version=3D1.5 > =09at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(Defa= ultMBeanServerInterceptor.java:1094) > =09at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getClassLoade= rFor(DefaultMBeanServerInterceptor.java:1438) > java.lang.reflect.UndeclaredThrowableException > =09at $Proxy0.listBundles(Unknown Source) > =09at org.apache.karaf.eik.workbench.internal.KarafRuntimeDataProvider.lo= adBundleData(KarafRuntimeDataProvider.java:218) > =09at org.apache.karaf.eik.workbench.internal.KarafRuntimeDataProvider.ac= cess$1(KarafRuntimeDataProvider.java:206) > =09at org.apache.karaf.eik.workbench.internal.KarafRuntimeDataProvider$1.= run(KarafRuntimeDataProvider.java:116) > =09at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) > Caused by: javax.management.InstanceNotFoundException: osgi.core:type=3Db= undleState,version=3D1.5 > =09at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(Defa= ultMBeanServerInterceptor.java:1094) > =09at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getClassLoade= rFor(DefaultMBeanServerInterceptor.java:1438) > =09at com.sun.jmx.mbeanserver.JmxMBeanServer.getClassLoaderFor(JmxMBeanSe= rver.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=20 -- This message was sent by Atlassian JIRA (v6.2#6252)