Hi We didn't change the Pax Logging (Log4j2) version between 4.1.4 and 4.1.5.
Maybe we introduced a regression due to KARAF-5528 even if it looks unrelated. However, the issue seems to come from karaf log, not pax logging directly. The change can cause the issue is KARAF-5559. In order to avoid infinite loop, log:display & log:tail commands now tries to change the log level of sshd to error (when it's debug). When do you have this exception ? At startup or when you perform log:tail/log:display ? Regards JB On 02/28/2018 10:53 PM, afbagwe wrote: > We use a log4j2.xml file in our Karaf configuration (that we point to from > the pax logging cfg file). When we tested it with Karaf 4.1.5, we got the > following error doing log:tail > > 28-Feb-2018 13:00:12.613 [ERROR] nsole user admin | ShellUtil | > 76 - org.apache.karaf.shell.core - 4.1.5 | Exception caught while executing > command > java.lang.IllegalStateException: Unrecognized configuration > at > org.apache.karaf.log.core.internal.LogServiceImpl.getDelegate(LogServiceImpl.java:55) > [67:org.apache.karaf.log.core:4.1.5] > at > org.apache.karaf.log.core.internal.LogServiceImpl.getLevel(LogServiceImpl.java:73) > [67:org.apache.karaf.log.core:4.1.5] > at > org.apache.karaf.log.command.LogTail$LogServiceTracker.addingService(LogTail.java:94) > [67:org.apache.karaf.log.core:4.1.5] > at > org.apache.karaf.log.command.LogTail$LogServiceTracker.addingService(LogTail.java:76) > [67:org.apache.karaf.log.core:4.1.5] > at > org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) > [?:?] > at > org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870) > [?:?] > at > org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) > [?:?] > at > org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183) > [?:?] > at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318) > [?:?] > at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261) > [?:?] > at org.apache.karaf.log.command.LogTail.execute(LogTail.java:54) > [67:org.apache.karaf.log.core:4.1.5] > at > org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) > [76:org.apache.karaf.shell.core:4.1.5] > at > org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) > [76:org.apache.karaf.shell.core:4.1.5] > at > org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) > [76:org.apache.karaf.shell.core:4.1.5] > at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571) > [76:org.apache.karaf.shell.core:4.1.5] > at > org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497) > [76:org.apache.karaf.shell.core:4.1.5] > at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) > [76:org.apache.karaf.shell.core:4.1.5] > at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) > [76:org.apache.karaf.shell.core:4.1.5] > at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) > [76:org.apache.karaf.shell.core:4.1.5] > at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) > [76:org.apache.karaf.shell.core:4.1.5] > at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] > at java.util.concurrent.ThreadPoolExecutocd > r.runWorker(ThreadPoolExecutor.java:1149) [?:?] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > [?:?] > at java.lang.Thread.run(Thread.java:748) [?:?] > Error executing command: Unrecognized configuration > > We didn't change our XML except to add in the 'org.apache.sshd' logger and > it works fine in 4.1.4 > > I can't post the XML here without borking the web form. But can anyone > hazard a guess as to why this might happen? > > > > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html > -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
