No announcement yet.
  • Filter
  • Time
Clear All
new posts

    Migrating from log4j1 to log4j2

    Hi, I am migrating my Project from log4j1 to log4j2. Log4j1 is having a vulnerability so we need to get rid of that. can you please help on this. I am using "v121p_2021-10-20"

    Getting below error :

    HTTP Status 500 – Internal Server Error

    Type Exception Report

    Message org.apache.log4j.MDC.clear()V

    Description The server encountered an unexpected condition that prevented it from fulfilling the request.


    java.lang.NoSuchMethodError: org.apache.log4j.MDC.clear()V com.isomorphic.log.Log4jLogger.clearMDC( com.isomorphic.log.Logger.clearMDC( com.isomorphic.base.InitListener.requestInitialized( org.apache.catalina.valves.ErrorReportValve.invoke( org.apache.catalina.valves.AbstractAccessLogValve.invoke( org.apache.catalina.connector.CoyoteAdapter.service( org.apache.coyote.http11.Http11Processor.service( org.apache.coyote.AbstractProcessorLight.process( org.apache.coyote.AbstractProtocol$ConnectionHandler.process($SocketProcessor.doRun( java.util.concurrent.ThreadPoolExecutor.runWorker( java.util.concurrent.ThreadPoolExecutor$ org.apache.tomcat.util.threads.TaskThread$
    Note The full stack trace of the root cause is available in the server logs.
    Apache Tomcat/8.5.68

    The widely-reported Log4j 1.0 vulnerability has no impact for SmartClient applications, so there is nothing to fix.

    However, if you have no choice, the simplest thing is to upgrade to 13.1. If you don't do this, you should be using the latest 12.1 during the process, not one 3.5 years (!!) out of date on patches.

    Background (from 13.1 docs):