karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olafur Egilsson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-1993) Improve EIK karafDataprovider
Date Sat, 10 May 2014 22:16:29 GMT

    [ https://issues.apache.org/jira/browse/KARAF-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13993509#comment-13993509
] 

Olafur Egilsson commented on KARAF-1993:
----------------------------------------

After applying that patch to current git master branch and compiling, EIK reports error:

!SESSION 2014-05-09 11:05:23.721 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_17
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB
Command-line arguments:  -dev file:/home/user/workspace/.metadata/.plugins/org.eclipse.pde.core/Karaf/dev.properties
-os linux -ws gtk -arch x86_64

!ENTRY slf4j.api 4 0 2014-05-09 11:05:26.712
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle "slf4j.api_1.7.5 [84]" could not be resolved.
Reason: Missing Constraint: Import-Package: org.slf4j.impl; version="1.6.0"
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1332)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)


Env:
Ubuntu 12.04/64
Eclipse for RCP and RAP Developers
Version: Juno Service Release 2
Build id: 20130225-0426


> 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
>            Assignee: Jean-Baptiste Onofré
>            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
> 	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 was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message