From issues-return-44432-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Sun May 19 16:10:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id EFBF1180663 for ; Sun, 19 May 2019 18:10:01 +0200 (CEST) Received: (qmail 58955 invoked by uid 500); 19 May 2019 16:10:01 -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 58941 invoked by uid 99); 19 May 2019 16:10:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 May 2019 16:10:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 74868E29D4 for ; Sun, 19 May 2019 16:10:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1C41025814 for ; Sun, 19 May 2019 16:10:00 +0000 (UTC) Date: Sun, 19 May 2019 16:10:00 +0000 (UTC) From: "Grzegorz Grzybek (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-6259) SCR feature fails to install when using Equinox framework 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-6259?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1684= 3473#comment-16843473 ]=20 Grzegorz Grzybek commented on KARAF-6259: ----------------------------------------- Ah, so R7 is great opportunity (same for pax-web 8.0.0) here. My changes in= master-improvements branch are not that breaking, I just made lot of refac= toring, moving files around while trying to keep the API as unchanged as po= ssible. I'll describe all the changes when I'm done with Log4J2. > SCR feature fails to install when using Equinox framework > --------------------------------------------------------- > > Key: KARAF-6259 > URL: https://issues.apache.org/jira/browse/KARAF-6259 > Project: Karaf > Issue Type: Bug > Components: karaf > Affects Versions: 4.2.5 > Reporter: Amichai Rothman > Assignee: Jean-Baptiste Onofr=C3=A9 > Priority: Blocker > Fix For: 4.3.0, 4.2.6 > > > When starting Karaf using Equinox framework, the SCR feature fails to ins= tall (stack trace below). Needless to say, without SCR a whole lot of other= stuff doesn't work, so Karaf with Equinox is basically broken. > Steps to recreate: > # Extract stock Karaf 4.2.5. > # In etc/config.properties change karaf.framework=3Dfelix to karaf.frame= work=3Dequinox. > # Start Karaf. > # Run 'feature:install scr' and=C2=A0it will fail with the exception bel= ow. > =C2=A0 > karaf@root()> feature:install scr=20 > org.apache.karaf.features.internal.util.MultiException: Error restarting = bundles:=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Exception in org.apache.felix.= scr.impl.Activator.start() of bundle org.apache.felix.scr.=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.karaf.features.i= nternal.service.Deployer.deploy(Deployer.java:1005)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.karaf.features.i= nternal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:10= 58)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.karaf.features.i= nternal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesS= erviceImpl.java:994)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at java.util.concurrent.Future= Task.run(FutureTask.java:266)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at java.util.concurrent.Thread= PoolExecutor.runWorker(ThreadPoolExecutor.java:1149)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at java.util.concurrent.Thread= PoolExecutor$Worker.run(ThreadPoolExecutor.java:624)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at java.lang.Thread.run(Thread= .java:748)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Suppressed: org.osgi.framework= .BundleException: Exception in org.apache.felix.scr.impl.Activator.start() = of bundle org.apache.felix.scr.=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.eclipse.osgi.internal.framework.BundleContextImpl.= startActivator(BundleContextImpl.java:836)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.eclipse.osgi.internal.framework.BundleContextImpl.= start(BundleContextImpl.java:765)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.eclipse.osgi.internal.framework.EquinoxBundle.star= tWorker0(EquinoxBundle.java:1005)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.eclipse.osgi.internal.framework.EquinoxBundle$Equi= noxModule.startWorker(EquinoxBundle.java:357)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.eclipse.osgi.container.Module.doStart(Module.java:= 589)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.eclipse.osgi.container.Module.start(Module.java:45= 7)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.eclipse.osgi.internal.framework.EquinoxBundle.star= t(EquinoxBundle.java:431)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.eclipse.osgi.internal.framework.EquinoxBundle.star= t(EquinoxBundle.java:450)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.apache.karaf.features.internal.service.BundleInsta= llSupportImpl.startBundle(BundleInstallSupportImpl.java:161)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.apache.karaf.features.internal.service.FeaturesSer= viceImpl.startBundle(FeaturesServiceImpl.java:1149)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.apache.karaf.features.internal.service.Deployer.de= ploy(Deployer.java:997)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0... 6 more=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Caused by: java.lang.AbstractM= ethodError: org.ops4j.pax.logging.log4j2.internal.PaxLoggingServiceImpl$1Ma= nagedPaxLoggingService.getLogge > r(Ljava/lang/String;Ljava/lang/Class;)Lorg/osgi/service/log/Logger;=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.apache.felix.scr.impl.logger.R7LogServiceLogger.(R7LogServiceLogger.java:35)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.apache.felix.scr.impl.logger.LogServiceSupport.get= Logger(LogServiceSupport.java:69)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.apache.felix.scr.impl.logger.LogServiceEnabledLogg= er.getLogger(LogServiceEnabledLogger.java:106)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.apache.felix.scr.impl.logger.AbstractLogger.isLogE= nabled(AbstractLogger.java:71)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.apache.felix.scr.impl.logger.AbstractLogger.log(Ab= stractLogger.java:90)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.apache.felix.scr.impl.Activator.restart(Activator.= java:137)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.apache.felix.scr.impl.config.ScrConfigurationImpl.= configure(ScrConfigurationImpl.java:217)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.apache.felix.scr.impl.config.ScrConfigurationImpl.= start(ScrConfigurationImpl.java:120)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.apache.felix.scr.impl.Activator.start(Activator.ja= va:100)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.eclipse.osgi.internal.framework.BundleContextImpl$= 3.run(BundleContextImpl.java:815)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.eclipse.osgi.internal.framework.BundleContextImpl$= 3.run(BundleContextImpl.java:1)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at java.security.AccessController.doPrivileged(Native Met= hod)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0at org.eclipse.osgi.internal.framework.BundleContextImpl.= startActivator(BundleContextImpl.java:808)=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0... 16 more=20 > Error executing command: Error restarting bundles:=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Exception in org.apache.felix.= scr.impl.Activator.start() of bundle org.apache.felix.scr. -- This message was sent by Atlassian JIRA (v7.6.3#76005)