-
Bug
-
Resolution: Duplicate
-
Neutral
-
None
-
6.2.17
-
None
-
None
InĀ
info.magnolia.commands.CommandsManager
We encounter the following code:
/** * @deprecated since 5.4.5. This should not be public but only protected. Use {@link super#reload()} instead. */ @Deprecated @Override public synchronized void reload() { DeprecationUtil.isDeprecated("Use reload() instead"); super.reload(); }
Which is as far as I can see always triggered. Here the stacktrace from Deprecationutil:
2022-03-15T16:21:50,646 WARN info.magnolia.cms.util.WorkspaceObservingManager : A deprecated class or method was used: Use reload() instead. Check the following trace: info.magnolia.commands.CommandsManager.reload(CommandsManager.java:269), info.magnolia.cms.util.WorkspaceObservingManager.start(WorkspaceObservingManager.java:91), the full stacktrace will be logged in debug mode in the info.magnolia.cms.util.DeprecationUtil category. 2022-03-15T16:21:50,646 WARN info.magnolia.cms.util.DeprecationUtil : A deprecated class or method was used: Use reload() instead. Check the following trace: info.magnolia.commands.CommandsManager.reload(CommandsManager.java:269), info.magnolia.cms.util.WorkspaceObservingManager.start(WorkspaceObservingManager.java:91), the full stacktrace will be logged in debug mode in the info.magnolia.cms.util.DeprecationUtil category. 2022-03-15T16:21:50,646 DEBUG info.magnolia.cms.util.DeprecationUtil : A deprecated class or method was used: Use reload() instead. Check the following trace: info.magnolia.commands.CommandsManager.reload(CommandsManager.java:269), info.magnolia.cms.util.WorkspaceObservingManager.start(WorkspaceObservingManager.java:91), the full stacktrace will be logged in debug mode in the info.magnolia.cms.util.DeprecationUtil category. java.lang.Throwable: null at info.magnolia.cms.util.DeprecationUtil.internal_isDeprecated(DeprecationUtil.java:60) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.cms.util.DeprecationUtil.isDeprecated(DeprecationUtil.java:53) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.commands.CommandsManager.reload(CommandsManager.java:269) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.cms.util.WorkspaceObservingManager.start(WorkspaceObservingManager.java:91) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.commands.CommandsManager$1.onModuleStartupCompleted(CommandsManager.java:103) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.module.ModulesStartedEvent.dispatch(ModulesStartedEvent.java:46) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.module.ModulesStartedEvent.dispatch(ModulesStartedEvent.java:42) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.event.SimpleEventBus.fireEvent(SimpleEventBus.java:75) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.module.ModuleManagerImpl.startModules(ModuleManagerImpl.java:352) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.module.ui.ModuleManagerNullUI.onStartup(ModuleManagerNullUI.java:74) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:146) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.init.MagnoliaServletContextListener$1.doExec(MagnoliaServletContextListener.java:259) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:407) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:404) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:378) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.init.MagnoliaServletContextListener.startServer(MagnoliaServletContextListener.java:256) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.init.MagnoliaServletContextListener.contextInitialized(MagnoliaServletContextListener.java:182) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.init.MagnoliaServletContextListener.contextInitialized(MagnoliaServletContextListener.java:128) ~[magnolia-core-6.2.16.jar:?]
Acceptance criteria
- duplicates
-
MAGNOLIA-8337 CommandsManager spams startup logs with deprecation warnings
- Closed