I can reproduce the problem on Windows and in Docker. Regards
Richard Am Mi., 2. Nov. 2022 um 15:50 Uhr schrieb A. Rothman <[email protected] >: > https://issues.apache.org/jira/browse/KARAF-6210 > > Reported before covid was a thing :-) > On 11/2/22 12:02, Richard Hierlmeier wrote: > > Initially I thought that the exception have no impact on the Karaf > instance. However I found out, that most of the commands are not available > in the shell: > > I have to refresh > bundle mvn:org.apache.karaf.config/org.apache.karaf.config.core/4.3.8 to > get the commands back. > > Probably the problem arises when in etc/org.apache.karaf.features.cfg the > property autoRefresh is set to false. > > > Richard > > > Am Mi., 2. Nov. 2022 um 10:17 Uhr schrieb Richard Hierlmeier < > [email protected]>: > >> Hi JB, >> >> the trace is logged at startup of Karaf. No command is executed. >> >> I cannot found find any hint in the logs that a bundle is refreshed. >> >> How can I find out what bundle or features causes the refresh? >> >> Is there a possibility to prevent the refresh? >> >> Richard >> >> >> >> Am Fr., 28. Okt. 2022 um 15:06 Uhr schrieb Jean-Baptiste Onofré < >> [email protected]>: >> >>> Hi Richard, >>> >>> do you have this trace when you execute some commands ? >>> Regarding the trace, I bet it happens when you install a feature, >>> probably causing a refresh. The refresh can cause a new wiring. >>> >>> Regards >>> JB >>> >>> On Fri, Oct 28, 2022 at 1:34 PM Richard Hierlmeier >>> <[email protected]> wrote: >>> > >>> > >>> > Today I upgraded a system from Karafa 4.3.7 to Karaf 4.3.8. The system >>> is up and running. >>> > >>> > However I have strange exception in the karaf.log: >>> > >>> > ... >>> > 2022.10.28 13:15:52,158 [features-3-thread-1] [INFO] >>> [org.apache.karaf.features.internal.service.FeaturesServiceImpl] >>> org.apache.sshd.osgi/2.9.1 [] [] >>> > 2022.10.28 13:15:52,159 [features-3-thread-1] [INFO] >>> [org.apache.karaf.features.internal.service.FeaturesServiceImpl] >>> org.apache.sshd.scp/2.9.1 [] [] >>> > 2022.10.28 13:15:52,160 [features-3-thread-1] [INFO] >>> [org.apache.karaf.features.internal.service.FeaturesServiceImpl] >>> org.apache.sshd.sftp/2.9.1 [] [] >>> > 2022.10.28 13:15:52,161 [features-3-thread-1] [INFO] >>> [org.apache.karaf.features.internal.service.FeaturesServiceImpl] >>> org.jline/3.21.0 [] [] >>> > 2022.10.28 13:15:52,162 [features-3-thread-1] [INFO] >>> [org.apache.karaf.features.internal.service.FeaturesServiceImpl] >>> org.apache.karaf.shell.core/4.3.8 [] []2022.10.28 13:15:52,186 >>> [features-3-thread-1] [INFO] >>> [org.apache.karaf.shell.impl.action.osgi.CommandExtension] Inspection of >>> class org.apache.karaf.config.command.CancelCommand failed. [] [ >>> java.lang.NoClassDefFoundError: org/apache/karaf/shell/api/action/Action >>> > at java.lang.ClassLoader.defineClass1(Native Method) >>> > at java.lang.ClassLoader.defineClass(ClassLoader.java:756) >>> > at >>> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.defineClass(BundleWiringImpl.java:2312) >>> > at >>> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.defineClassParallel(BundleWiringImpl.java:2130) >>> > at >>> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2064) >>> > at >>> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1533) >>> > at >>> org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:78) >>> > at >>> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1950) >>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:351) >>> > at java.lang.ClassLoader.defineClass1(Native Method) >>> > at java.lang.ClassLoader.defineClass(ClassLoader.java:756) >>> > at >>> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.defineClass(BundleWiringImpl.java:2312) >>> > at >>> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.defineClassParallel(BundleWiringImpl.java:2130) >>> > at >>> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2064) >>> > at >>> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1533) >>> > at >>> org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:78) >>> > at >>> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1950) >>> > >>> > Similar exceptions are logged for many other commands. >>> > >>> > >>> > Regards >>> > >>> > Richard >>> >>
