You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Volkan Yazici (Jira)" <ji...@apache.org> on 2021/12/10 15:37:00 UTC
[jira] [Commented] (LOG4J2-3204) SpringLookup not found while Interpolator initializing
[ https://issues.apache.org/jira/browse/LOG4J2-3204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17457215#comment-17457215 ]
Volkan Yazici commented on LOG4J2-3204:
---------------------------------------
[~Francis_FY], mind submitting a fix for this (preferably, along with a test) targeting the {{release-2.x}} branch, please?
> SpringLookup not found while Interpolator initializing
> ------------------------------------------------------
>
> Key: LOG4J2-3204
> URL: https://issues.apache.org/jira/browse/LOG4J2-3204
> Project: Log4j 2
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.14.1
> Reporter: francis
> Priority: Critical
>
> Class SpringLookup has been moved to package 「org.apache.logging.log4j.spring.boot」in version 2.14, but the constructor of class org.apache.logging.log4j.core.lookup.Interpolator is still trying to load org.apache.logging.log4j.spring.cloud.config.client.SpringLookup. So SpringLookup will never work properly.
>
> Here is the issue code:
>
> {code:java}
> try {
> strLookupMap.put(LOOKUP_KEY_SPRING, Loader.newCheckedInstanceOf("org.apache.logging.log4j.spring.cloud.config.client.SpringLookup", StrLookup.class));
> } catch (final Exception ignored) {
> handleError(LOOKUP_KEY_SPRING, ignored);
> }{code}
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)