From issues-return-38453-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Sun Jan 28 20:53:07 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 151FE18064F for ; Sun, 28 Jan 2018 20:53:07 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0546A160C43; Sun, 28 Jan 2018 19:53:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 265A7160C20 for ; Sun, 28 Jan 2018 20:53:06 +0100 (CET) Received: (qmail 80759 invoked by uid 500); 28 Jan 2018 19:53:05 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 80748 invoked by uid 99); 28 Jan 2018 19:53:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Jan 2018 19:53:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D5AEEC039A for ; Sun, 28 Jan 2018 19:53:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id dV4473r3aNOc for ; Sun, 28 Jan 2018 19:53:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id AAA5560D3D for ; Sun, 28 Jan 2018 19:53:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 35750E0194 for ; Sun, 28 Jan 2018 19:53:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 04389240EE for ; Sun, 28 Jan 2018 19:53:01 +0000 (UTC) Date: Sun, 28 Jan 2018 19:53:01 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-5582) Incompatible Jackson's versions in camel-jackson and decanter elasticsearch MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-5582?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1634= 2703#comment-16342703 ]=20 Jean-Baptiste Onofr=C3=A9 commented on KARAF-5582: --------------------------------------------- =C2=A0 The problem is not in Decanter: it's in the ServiceMix elasticsearch bundle= . By the way, Decanter 2.0.0 will provide features for elasticsearch 5 & 6 (u= sing jackson 2.8.9 already). > Incompatible Jackson's versions in camel-jackson and decanter elasticsear= ch > -------------------------------------------------------------------------= -- > > Key: KARAF-5582 > URL: https://issues.apache.org/jira/browse/KARAF-5582 > Project: Karaf > Issue Type: Bug > Components: decanter > Affects Versions: decanter-1.4.0 > Reporter: Vadim Ryzhov > Assignee: Jean-Baptiste Onofr=C3=A9 > Priority: Major > Fix For: decanter-2.0.0 > > Attachments: kibana-error.png > > > When install both camel-jackson 2.20.1 and decanter 1.4.0 elasticseach, i= n log appears error: > java.lang.NoSuchMethodError: com.fasterxml.jackson.dataformat.smile.Smile= Generator.getOutputContext()Lcom/fasterxml/jackson/core/json/JsonWriteConte= xt; > This config runs fine: > {code:java} > karaf@root()> bundle:list > START LEVEL 100 , List Threshold: 50 > ID | State | Lvl | Version | Name > ----+--------+-----+--------------+--------------------------------------= ----------------------------------------------- > 29 | Active | 80 | 4.1.4 | Apache Karaf :: OSGi Services :: Event > 52 | Active | 80 | 2.6.3 | Jackson-annotations > 53 | Active | 80 | 2.6.3 | Jackson-core > 54 | Active | 80 | 2.6.3 | jackson-databind > 55 | Active | 80 | 2.6.3 | Jackson-dataformat-Smile > 56 | Active | 80 | 2.6.3 | Jackson-dataformat-YAML > 57 | Active | 80 | 18.0.0 | Guava: Google Core Libraries for Java > 58 | Active | 80 | 1.0.2 | Compress-LZF > 68 | Active | 80 | 1.4.0 | Apache Karaf :: Decanter :: Elasticsearch 2.x > 74 | Active | 80 | 2.2.0.1 | Apache ServiceMix :: Bundles :: elasticsearc= h > 104 | Active | 80 | 3.10.5.Final | Netty > 115 | Active | 80 | 1.4.0 | Apache Karaf :: Decanter :: Kibana 4.x > 116 | Active | 80 | 1.4.0 | Apache Karaf :: Decanter :: API > 117 | Active | 80 | 1.4.0 | Apache Karaf :: Decanter :: Appender :: Elast= icsearch Native 2.x > 118 | Active | 80 | 1.4.0 | Apache Karaf :: Decanter :: Marshaller :: Jso= n > 119 | Active | 80 | 1.0.4 | JSR 353 (JSON Processing) Default Provider > 120 | Active | 80 | 1.4.0 | Apache Karaf :: Decanter :: Collector :: Log > 121 | Active | 80 | 1.4.0 | Apache Karaf :: Decanter :: Collector :: JMX > {code} > After=C2=A0installing camel-jackson feature jackson bundles version updat= ed to 2.8.10: > {code:java} > karaf@root()> feature:repo-add camel 2.20.1 > Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.20.1/xml/fea= tures > karaf@root()> feature:install camel-jackson > karaf@root()> list > START LEVEL 100 , List Threshold: 50 > ID | State | Lvl | Version | Name > ----+--------+-----+--------------+--------------------------------------= ----------------------------------------------- > 29 | Active | 80 | 4.1.4 | Apache Karaf :: OSGi Services :: Event > 55 | Active | 80 | 2.6.3 | Jackson-dataformat-Smile > 56 | Active | 80 | 2.6.3 | Jackson-dataformat-YAML > 57 | Active | 80 | 18.0.0 | Guava: Google Core Libraries for Java > 58 | Active | 80 | 1.0.2 | Compress-LZF > 68 | Active | 80 | 1.4.0 | Apache Karaf :: Decanter :: Elasticsearch 2.x > 74 | Active | 80 | 2.2.0.1 | Apache ServiceMix :: Bundles :: elasticsearc= h > 104 | Active | 80 | 3.10.5.Final | Netty > 115 | Active | 80 | 1.4.0 | Apache Karaf :: Decanter :: Kibana 4.x > 116 | Active | 80 | 1.4.0 | Apache Karaf :: Decanter :: API > 117 | Active | 80 | 1.4.0 | Apache Karaf :: Decanter :: Appender :: Elast= icsearch Native 2.x > 118 | Active | 80 | 1.4.0 | Apache Karaf :: Decanter :: Marshaller :: Jso= n > 119 | Active | 80 | 1.0.4 | JSR 353 (JSON Processing) Default Provider > 120 | Active | 80 | 1.4.0 | Apache Karaf :: Decanter :: Collector :: Log > 121 | Active | 80 | 1.4.0 | Apache Karaf :: Decanter :: Collector :: JMX > 123 | Active | 50 | 2.8.10 | Jackson-annotations > 124 | Active | 50 | 2.8.10 | Jackson-core > 125 | Active | 50 | 2.8.10 | jackson-databind > 126 | Active | 50 | 2.8.10 | Jackson module: JAXB-annotations > 127 | Active | 80 | 2.20.1 | camel-commands-core > 128 | Active | 50 | 2.20.1 | camel-core > 129 | Active | 50 | 2.20.1 | camel-jackson > 130 | Active | 80 | 2.20.1 | camel-karaf-commands > {code} > And in log appears error: > {code:java} > 2018-01-26 17:09:19,573 | WARN | updateTask][T#1] | gateway | 74 - org.ap= ache.servicemix.bundles.elasticsearch - 2.2.0.1 | [decanter] [karaf-2018.01= .26]: failed to write index state > java.lang.NoSuchMethodError: com.fasterxml.jackson.dataformat.smile.Smile= Generator.getOutputContext()Lcom/fasterxml/jackson/core/json/JsonWriteConte= xt; > at com.fasterxml.jackson.dataformat.smile.SmileGenerator.close(SmileGener= ator.java:1524) ~[55:com.fasterxml.jackson.dataformat.jackson-dataformat-sm= ile:2.6.3] > at org.elasticsearch.common.xcontent.json.JsonXContentGenerator.close(Jso= nXContentGenerator.java:445) ~[74:org.apache.servicemix.bundles.elasticsear= ch:2.2.0.1] > at org.elasticsearch.common.xcontent.XContentBuilder.close(XContentBuilde= r.java:1174) ~[74:org.apache.servicemix.bundles.elasticsearch:2.2.0.1] > at org.elasticsearch.gateway.MetaDataStateFormat.write(MetaDataStateForma= t.java:128) ~[74:org.apache.servicemix.bundles.elasticsearch:2.2.0.1] > at org.elasticsearch.gateway.MetaStateService.writeIndex(MetaStateService= .java:135) [74:org.apache.servicemix.bundles.elasticsearch:2.2.0.1] > at org.elasticsearch.gateway.GatewayMetaState.clusterChanged(GatewayMetaS= tate.java:160) [74:org.apache.servicemix.bundles.elasticsearch:2.2.0.1] > at org.elasticsearch.gateway.Gateway.clusterChanged(Gateway.java:185) [74= :org.apache.servicemix.bundles.elasticsearch:2.2.0.1] > at org.elasticsearch.cluster.service.InternalClusterService.runTasksForEx= ecutor(InternalClusterService.java:600) [74:org.apache.servicemix.bundles.e= lasticsearch:2.2.0.1] > at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.ru= n(InternalClusterService.java:762) [74:org.apache.servicemix.bundles.elasti= csearch:2.2.0.1] > at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecut= or$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecut= or.java:231) [74:org.apache.servicemix.bundles.elasticsearch:2.2.0.1] > at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecut= or$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:= 194) [74:org.apache.servicemix.bundles.elasticsearch:2.2.0.1] > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j= ava:1149) [?:?] > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.= java:624) [?:?] > at java.lang.Thread.run(Thread.java:748) [?:?] > {code} > Elasticsearch fixthis bug on 2.4.0 and 5.0.0: > [https://github.com/elastic/elasticsearch/issues/20089] > But in decanter still used version 2.2.0. -- This message was sent by Atlassian JIRA (v7.6.3#76005)