View Issue Details

IDProjectCategoryView StatusLast Update
0005282SymmetricDSBugpublic2022-04-29 18:10
Reporterchenson Assigned To 
Prioritynormal 
Status newResolutionopen 
Product Version3.13.4 
Summary0005282: Log4j2Helper produces error when slf4j bridge is used instead of log4j2
Description2022-04-29 08:09:28.909 ERROR [-] [qtp833272193-37] [c] class org.apache.logging.slf4j.SLF4JLoggerContext cannot be cast to class org.apache.logging.log4j.core.LoggerContext (org.apache.logging.slf4j.SLF4JLoggerContext and org.apache.logging.log4j.core.LoggerContext are in unnamed module of loader 'app')
java.lang.ClassCastException: class org.apache.logging.slf4j.SLF4JLoggerContext cannot be cast to class org.apache.logging.log4j.core.LoggerContext (org.apache.logging.slf4j.SLF4JLoggerContext and org.apache.logging.log4j.core.LoggerContext are in unnamed module of loader 'app')
    at org.jumpmind.util.Log4j2Helper.getLogFileLayout(Log4j2Helper.java:164)
    at org.jumpmind.util.Log4j2Helper.getLogFile(Log4j2Helper.java:141)
    at org.jumpmind.symmetric.util.LogSummaryAppenderUtils.getLogFile(LogSummaryAppenderUtils.java:147)
    at com.jumpmind.symmetric.console.impl.bE.<init>(LoggingPanel.java:88)
    at com.jumpmind.symmetric.console.impl.ad.initMenu(ManageScreen.java:91)
    at com.jumpmind.symmetric.console.ui.common.d.<init>(AbstractMenuScreen.java:95)
    at com.jumpmind.symmetric.console.impl.ad.<init>(ManageScreen.java:31)
    at com.jumpmind.symmetric.console.ui.c.initializeTabs(MainWindow.java:746)
    at com.jumpmind.symmetric.console.ui.c.a(MainWindow.java:629)
    at com.jumpmind.symmetric.console.ui.c.a(MainWindow.java:450)
    at com.jumpmind.symmetric.console.ui.c.<init>(MainWindow.java:388)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
TagsNo tags attached.

Activities

elong

2022-04-29 17:23

developer   ~0002078

Can you provide steps to reproduce the error? We are already using the SLF4J bridge, so the issue summary and description is missing something.

chenson

2022-04-29 18:10

administrator   ~0002079

This is also an issue

Caused by: java.lang.NoClassDefFoundError: org/slf4j/bridge/SLF4JBridgeHandler
    at org.jumpmind.symmetric.util.LogSummaryAppenderUtils.<clinit>(LogSummaryAppenderUtils.java:49)
    at org.jumpmind.symmetric.ClientSymmetricEngine.init(ClientSymmetricEngine.java:198)
    at org.jumpmind.symmetric.web.ServerSymmetricEngine.init(ServerSymmetricEngine.java:80)
    at org.jumpmind.symmetric.ClientSymmetricEngine.<init>(ClientSymmetricEngine.java:119)
    at org.jumpmind.symmetric.web.ServerSymmetricEngine.<init>(ServerSymmetricEngine.java:65)
    at org.jumpmind.pos.app.SymmetricDSConfig.symmetricEngine(SymmetricDSConfig.java:50)
    at org.jumpmind.pos.app.SymmetricDSConfig$$EnhancerBySpringCGLIB$$139c3325.CGLIB$symmetricEngine$1(<generated>)
    at org.jumpmind.pos.app.SymmetricDSConfig$$EnhancerBySpringCGLIB$$139c3325$$FastClassBySpringCGLIB$$35307ceb.invoke(<generated>)
    at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
    at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
    at org.jumpmind.pos.app.SymmetricDSConfig$$EnhancerBySpringCGLIB$$139c3325.symmetricEngine(<generated>)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
    ... 46 common frames omitted

Issue History

Date Modified Username Field Change
2022-04-29 12:25 chenson New Issue
2022-04-29 12:25 chenson Summary Log4jHelper produces error when slf4j bridge is used instead of log4j2 => Log4j2Helper produces error when slf4j bridge is used instead of log4j2
2022-04-29 17:23 elong Note Added: 0002078
2022-04-29 18:10 chenson Note Added: 0002079