You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/05/16 12:54:01 UTC

[jira] [Commented] (KARAF-6285) Elasticsearch feature throws ClassCastException: org.ops4j.pax.logging.log4jv2.Log4jv2LoggerContext cannot be cast to org.apache.logging.log4j.core.LoggerContext

    [ https://issues.apache.org/jira/browse/KARAF-6285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16841296#comment-16841296 ] 

ASF GitHub Bot commented on KARAF-6285:
---------------------------------------

jbonofre commented on pull request #86: [KARAF-6285] Fix ClassCastException while inserting data in Elasticsearch
URL: https://github.com/apache/karaf-decanter/pull/86
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Elasticsearch feature throws ClassCastException: org.ops4j.pax.logging.log4jv2.Log4jv2LoggerContext cannot be cast to org.apache.logging.log4j.core.LoggerContext
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-6285
>                 URL: https://issues.apache.org/jira/browse/KARAF-6285
>             Project: Karaf
>          Issue Type: Bug
>          Components: decanter
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: decanter-2.3.0
>
>
> When inserting data, a {{ClassCastException}} is throwed by elasticsearch bundle:
> {code}
> java.lang.ClassCastException: org.ops4j.pax.logging.log4jv2.Log4jv2LoggerContext cannot be cast to org.apache.logging.log4j.core.LoggerContext
>         at org.apache.logging.log4j.core.LoggerContext.getContext(LoggerContext.java:190) ~[7:org.ops4j.pax.logging.pax-logging-log4j2:1.10.1]
>         at org.apache.logging.log4j.core.config.Configurator.setLevel(Configurator.java:291) ~[7:org.ops4j.pax.logging.pax-logging-log4j2:1.10.1]
>         at org.elasticsearch.common.logging.Loggers.setLevel(Loggers.java:116) ~[116:org.apache.karaf.decanter.elasticsearch-6.x:2.3.0.SNAPSHOT]
>         at org.elasticsearch.common.logging.Loggers.setLevel(Loggers.java:111) ~[116:org.apache.karaf.decanter.elasticsearch-6.x:2.3.0.SNAPSHOT]
>         at org.elasticsearch.index.SearchSlowLog.setLevel(SearchSlowLog.java:121) ~[116:org.apache.karaf.decanter.elasticsearch-6.x:2.3.0.SNAPSHOT]
>         at org.elasticsearch.index.SearchSlowLog.<init>(SearchSlowLog.java:116) ~[116:org.apache.karaf.decanter.elasticsearch-6.x:2.3.0.SNAPSHOT]
>         at org.elasticsearch.index.IndexModule.<init>(IndexModule.java:138) ~[116:org.apache.karaf.decanter.elasticsearch-6.x:2.3.0.SNAPSHOT]
>         at org.elasticsearch.indices.IndicesService.createIndexService(IndicesService.java:511) ~[116:org.apache.karaf.decanter.elasticsearch-6.x:2.3.0.SNAPSHOT]
>         at org.elasticsearch.indices.IndicesService.createIndex(IndicesService.java:473) ~[116:org.apache.karaf.decanter.elasticsearch-6.x:2.3.0.SNAPSHOT]
>         at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$IndexCreationTask.execute(MetaDataCreateIndexService.java:447) ~[116:org.apache.karaf.decanter.elasticsearch-6.x:2.3.0.SNAPSHOT]
>         at org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:47) ~[116:org.apache.karaf.decanter.elasticsearch-6.x:2.3.0.SNAPSHOT]
>         at org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:643) ~[116:org.apache.karaf.decanter.elasticsearch-6.x:2.3.0.SNAPSHOT]
>         at org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:272) ~[116:org.apache.karaf.decanter.elasticsearch-6.x:2.3.0.SNAPSHOT]
>         at org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:202) [116:org.apache.karaf.decanter.elasticsearch-6.x:2.3.0.SNAPSHOT]
>         at org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:137) [116:org.apache.karaf.decanter.elasticsearch-6.x:2.3.0.SNAPSHOT]
>         at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:150) [116:org.apache.karaf.decanter.elasticsearch-6.x:2.3.0.SNAPSHOT]
>         at org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:188) [116:org.apache.karaf.decanter.elasticsearch-6.x:2.3.0.SNAPSHOT]
>         at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:660) [116:org.apache.karaf.decanter.elasticsearch-6.x:2.3.0.SNAPSHOT]
>         at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:244) [116:org.apache.karaf.decanter.elasticsearch-6.x:2.3.0.SNAPSHOT]
>         at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:207) [116:org.apache.karaf.decanter.elasticsearch-6.x:2.3.0.SNAPSHOT]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
>         at java.lang.Thread.run(Thread.java:748) [?:?]
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)