cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

getting this error in logs Status logger error unable to locate configured logger context factory though i am able to connect with databricks db and retrive the data for mulesoft integration

Deexith
New Contributor

ERROR StatusLogger Unable to locate configured LoggerContextFactory org.mule.runtime.module.launcher.log4j2.MuleLog4jContextFactory

ERROR StatusLogger Unable to load class org.apache.logging.log4j.core.config.xml.XmlConfigurationFactory

java.lang.ClassCastException: class org.apache.logging.log4j.core.config.xml.XmlConfigurationFactory

at java.lang.Class.asSubclass(Class.java:3404)

at com.databricks.client.jdbc42.internal.apache.logging.log4j.core.config.ConfigurationFactory.addFactory(ConfigurationFactory.java:227)

at com.databricks.client.jdbc42.internal.apache.logging.log4j.core.config.ConfigurationFactory.getInstance(ConfigurationFactory.java:169)

at com.databricks.client.jdbc42.internal.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:695)

at com.databricks.client.jdbc42.internal.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:716)

at com.databricks.client.jdbc42.internal.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:270)

at com.databricks.client.jdbc42.internal.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155)

at com.databricks.client.jdbc42.internal.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47)

at com.databricks.client.jdbc42.internal.apache.logging.log4j.LogManager.getContext(LogManager.java:196)

at com.databricks.client.jdbc42.internal.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:137)

at com.databricks.client.jdbc42.internal.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:55)

at com.databricks.client.jdbc42.internal.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:47)

at com.databricks.client.jdbc42.internal.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:33)

at com.databricks.client.jdbc42.internal.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363)

at com.databricks.client.jdbc42.internal.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)

at com.databricks.client.jdbc42.internal.apache.arrow.memory.util.AssertionUtil.<clinit>(AssertionUtil.java:26)

at com.databricks.client.jdbc42.internal.apache.arrow.memory.BaseAllocator.<clinit>(BaseAllocator.java:48)

at com.databricks.client.spark.arrow.ArrowBuffer.<init>(Unknown Source)

at com.databricks.client.spark.jdbc.SparkJDBC42Driver.createArrowBuffer(Unknown Source)

at com.databricks.client.hivecommon.api.HS2Client.makeRowsetBuffer(Unknown Source)

at com.databricks.client.hivecommon.dataengine.BackgroundFetcher.<init>(Unknown Source)

at com.databricks.client.hivecommon.dataengine.HiveJDBCResultSet.moveToNextRow(Unknown Source)

at com.databricks.client.jdbc.common.BaseForwardResultSet.next(Unknown Source)

at org.mule.db.commons.shaded.internal.result.resultset.ResultSetIterator.hasNext(ResultSetIterator.java:49)

at org.mule.db.commons.shaded.internal.operation.DmlOperations$1.getPage(DmlOperations.java:153)

at org.mule.db.commons.shaded.internal.operation.DmlOperations$1.getPage(DmlOperations.java:141)

at org.mule.runtime.module.extension.internal.runtime.streaming.PagingProviderWrapper.getPage(PagingProviderWrapper.java:79)

at org.mule.runtime.module.extension.internal.runtime.streaming.PagingProviderProducer.withConnection(PagingProviderProducer.java:157)

at org.mule.runtime.module.extension.internal.runtime.streaming.PagingProviderProducer.withConnection(PagingProviderProducer.java:150)

at org.mule.runtime.module.extension.internal.runtime.streaming.PagingProviderProducer.lambda$performWithConnection$1(PagingProviderProducer.java:123)

at net.jodah.failsafe.Functions.lambda$promiseOfStage$8(Functions.java:193)

at net.jodah.failsafe.internal.executor.RetryPolicyExecutor$1.call(RetryPolicyExecutor.java:101)

at net.jodah.failsafe.internal.executor.RetryPolicyExecutor.lambda$supplyAsync$1(RetryPolicyExecutor.java:133)

at net.jodah.failsafe.Functions.lambda$null$1(Functions.java:69)

at org.mule.runtime.core.internal.util.rx.ConditionalExecutorServiceDecorator.synchronousSchedule(ConditionalExecutorServiceDecorator.java:181)

at org.mule.runtime.core.internal.util.rx.ConditionalExecutorServiceDecorator.schedule(ConditionalExecutorServiceDecorator.java:167)

at net.jodah.failsafe.Functions.lambda$makeAsync$2(Functions.java:79)

at net.jodah.failsafe.AsyncExecution.executeAsync(AsyncExecution.java:174)

at net.jodah.failsafe.FailsafeExecutor.callAsync(FailsafeExecutor.java:346)

at net.jodah.failsafe.FailsafeExecutor.getStageAsync(FailsafeExecutor.java:178)

at org.mule.runtime.core.internal.retry.policies.SimpleRetryPolicy.applyPolicy(SimpleRetryPolicy.java:90)

at org.mule.runtime.core.api.retry.policy.RetryPolicyTemplate.applyPolicy(RetryPolicyTemplate.java:143)

at org.mule.runtime.module.extension.internal.runtime.streaming.PagingProviderProducer.performWithConnection(PagingProviderProducer.java:122)

at org.mule.runtime.module.extension.internal.runtime.streaming.PagingProviderProducer.produce(PagingProviderProducer.java:100)

at org.mule.runtime.module.extension.internal.runtime.streaming.PagingProviderProducer.produce(PagingProviderProducer.java:54)

at org.mule.runtime.core.api.streaming.iterator.ListConsumer.loadNextPage(ListConsumer.java:81)

at org.mule.runtime.module.extension.internal.runtime.operation.OperationMessageProcessorBuilder.lambda$transformPagingDelegate$0(OperationMessageProcessorBuilder.java:93)

at org.mule.runtime.core.api.util.func.CheckedBiFunction.apply(CheckedBiFunction.java:19)

at org.mule.runtime.module.extension.internal.runtime.operation.DefaultExecutionMediator$TransformingExecutionCallbackDecorator.complete(DefaultExecutionMediator.java:337)

at org.mule.runtime.module.extension.internal.runtime.execution.CompletableMethodOperationExecutor.doExecute(CompletableMethodOperationExecutor.java:26)

at org.mule.runtime.module.extension.internal.runtime.execution.AbstractCompletableMethodOperationExecutor.execute(AbstractCompletableMethodOperationExecutor.java:61)

at org.mule.runtime.module.extension.internal.runtime.operation.DefaultExecutionMediator.executeCommand(DefaultExecutionMediator.java:237)

at org.mule.runtime.module.extension.internal.runtime.operation.DefaultExecutionMediator.lambda$executeWithInterceptors$6(DefaultExecutionMediator.java:219)

at org.mule.runtime.module.extension.internal.runtime.operation.DefaultExecutionMediator.lambda$executeWithRetry$2(DefaultExecutionMediator.java:197)

at net.jodah.failsafe.Functions.lambda$promiseOfStage$8(Functions.java:193)

at net.jodah.failsafe.internal.executor.RetryPolicyExecutor$1.call(RetryPolicyExecutor.java:101)

at net.jodah.failsafe.internal.executor.RetryPolicyExecutor.lambda$supplyAsync$1(RetryPolicyExecutor.java:133)

at net.jodah.failsafe.Functions.lambda$null$1(Functions.java:69)

at org.mule.runtime.core.internal.util.rx.ConditionalExecutorServiceDecorator.synchronousSchedule(ConditionalExecutorServiceDecorator.java:181)

at org.mule.runtime.core.internal.util.rx.ConditionalExecutorServiceDecorator.schedule(ConditionalExecutorServiceDecorator.java:167)

at net.jodah.failsafe.Functions.lambda$makeAsync$2(Functions.java:79)

at net.jodah.failsafe.AsyncExecution.executeAsync(AsyncExecution.java:174)

at net.jodah.failsafe.FailsafeExecutor.callAsync(FailsafeExecutor.java:346)

at net.jodah.failsafe.FailsafeExecutor.getStageAsync(FailsafeExecutor.java:178)

at org.mule.runtime.core.internal.retry.policies.SimpleRetryPolicy.applyPolicy(SimpleRetryPolicy.java:90)

at org.mule.runtime.core.api.retry.policy.RetryPolicyTemplate.applyPolicy(RetryPolicyTemplate.java:143)

at org.mule.runtime.module.extension.internal.runtime.operation.DefaultExecutionMediator.executeWithRetry(DefaultExecutionMediator.java:195)

at org.mule.runtime.module.extension.internal.runtime.operation.DefaultExecutionMediator.executeWithInterceptors(DefaultExecutionMediator.java:219)

at org.mule.runtime.module.extension.internal.runtime.operation.DefaultExecutionMediator.lambda$execute$1(DefaultExecutionMediator.java:130)

at org.mule.runtime.core.internal.execution.ExecuteCallbackInterceptor.execute(ExecuteCallbackInterceptor.java:15)

at org.mule.runtime.core.internal.execution.BeginAndResolveTransactionInterceptor.execute(BeginAndResolveTransactionInterceptor.java:76)

at org.mule.runtime.core.internal.execution.SuspendXaTransactionInterceptor.execute(SuspendXaTransactionInterceptor.java:46)

at org.mule.runtime.core.internal.execution.ValidateTransactionalStateInterceptor.execute(ValidateTransactionalStateInterceptor.java:43)

at org.mule.runtime.core.internal.execution.IsolateCurrentTransactionInterceptor.execute(IsolateCurrentTransactionInterceptor.java:37)

at org.mule.runtime.core.api.execution.TransactionalExecutionTemplate.execute(TransactionalExecutionTemplate.java:139)

at org.mule.runtime.module.extension.internal.runtime.operation.DefaultExecutionMediator.withExecutionTemplate(DefaultExecutionMediator.java:313)

at

3 REPLIES 3

Anonymous
Not applicable

@Uppala Deexith​ :

This error message suggests that there is an issue with the logging configuration in your application. It looks like your application is attempting to use Log4j2 for logging, but it cannot locate the LoggerContextFactory. This could be caused by a missing or misconfigured log4j2.xml file, or by an issue with the Log4j2 library itself.

Here are some steps that you could try to resolve this issue:

  1. Check that the log4j2.xml file is present in the correct location and that it is properly configured. This file should contain the configuration information for the Log4j2 library.
  2. Ensure that the Log4j2 library is included in your application's classpath. You can check this by looking at the dependencies in your build file or by checking the classpath at runtime.
  3. Check that the Log4j2 library is compatible with the version of Java that you are running. You can check the compatibility matrix on the Log4j2 website.
  4. Try updating the Log4j2 library to a newer version. This may help to resolve any issues that you are experiencing with the library.
  5. Check for any conflicting logging libraries in your application's classpath. If there are other logging libraries present, they may be causing conflicts with Log4j2.

Anonymous
Not applicable

Hi @Uppala Deexith​ 

Thank you for posting your question in our community! We are happy to assist you.

To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?

This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance! 

DataBricks1565
New Contributor II

Hi @Uppala Deexith​ 

Any update on how you fixed this issue would greatly appreciated.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.