Mendix 9.16.1 : Getting CRITICAL error  NoClassDefFoundError occurred for class Could not initialize class org.apache.logging.log4j.util.PropertiesUtil. :

0
dps-mendix | CRITICAL - ActionManager: Error in execution of monitored action '{"name":"Simulation.SUB_ExecuteSimulation","type":"Microflow"}' (execution id: e88c01cf-0212-4d4f-8b34-5165d55dbf19, execution type: CUSTOM). dps-mendix |  NoClassDefFoundError occurred for class 'Could not initialize class org.apache.logging.log4j.util.PropertiesUtil'. Please make sure the userlib folder of dps-mendix |  your project includes the correct library which contains this class. dps-mendix | CRITICAL - ActionManager: java.lang.NoClassDefFoundError: Could not initialize class org.apache.logging.log4j.util.PropertiesUtil dps-mendix |     at org.apache.logging.log4j.status.StatusLogger.<clinit>(StatusLogger.java:78) dps-mendix |     at org.apache.logging.log4j.LogManager.<clinit>(LogManager.java:61) dps-mendix |     at org.apache.poi.util.IOUtils.<clinit>(IOUtils.java:43) dps-mendix |     at com.mendix.http.ReusableStream$.$anonfun$apply$2(ReusableHttpResponse.scala:27) dps-mendix |     at scala.util.Using$.resource(Using.scala:261) dps-mendix |     at com.mendix.http.ReusableStream$.$anonfun$apply$1(ReusableHttpResponse.scala:26) dps-mendix |     at scala.util.Using$.resource(Using.scala:261) dps-mendix |     at com.mendix.http.ReusableStream$.apply(ReusableHttpResponse.scala:25) dps-mendix |     at com.mendix.http.HttpResponseImpl.$anonfun$toReusableHttpResponse$1(HttpResponseImpl.scala:49) dps-mendix |     at scala.Option.map(Option.scala:242) dps-mendix |     at com.mendix.http.HttpResponseImpl.toReusableHttpResponse(HttpResponseImpl.scala:49) dps-mendix | Exception in thread "TaskQueueDispatcher-Simulation.Simulation_Queue-1" java.lang.NoClassDefFoundError: Could not initialize class org.apache.logging.log4j.util.PropertiesUtil dps-mendix |     at org.apache.logging.log4j.status.StatusLogger.<clinit>(StatusLogger.java:78) dps-mendix |     at org.apache.logging.log4j.LogManager.<clinit>(LogManager.java:61) dps-mendix |     at org.apache.poi.util.IOUtils.<clinit>(IOUtils.java:43) dps-mendix |     at com.mendix.http.ReusableStream$.$anonfun$apply$2(ReusableHttpResponse.scala:27) dps-mendix |     at scala.util.Using$.resource(Using.scala:261) dps-mendix |     at com.mendix.http.ReusableStream$.$anonfun$apply$1(ReusableHttpResponse.scala:26) dps-mendix |     at scala.util.Using$.resource(Using.scala:261)    at com.mendix.integration.actions.microflow.LatestHttpResponse$.apply(LatestHttpResponse.scala:15) dps-mendix |     at com.mendix.integration.actions.microflow.RestCallAction.setLatestHttpResponse(RestCallAction.scala:108) dps-mendix |     at com.mendix.integration.actions.microflow.RestCallAction.handleResponse(RestCallAction.scala:98) dps-mendix |     at com.mendix.integration.actions.microflow.RestCallAction.$anonfun$execute$4(RestCallAction.scala:74) dps-mendix |
asked
1 answers
0

The error message suggests you are either missing or have an older version of log4j in your userlib.

Take a look in your userlib, and if you have several versions of log4j in there, remove the ones with the lowest version numbers.

If you are missing log4j in your userlib then you may need to reinstall any third party modules you have in your application from the Mendix Marketplace and this will hopefully restore the missing file.

Hope this helps.

answered