Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4927A200D23 for ; Thu, 19 Oct 2017 13:34:56 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 47C061609ED; Thu, 19 Oct 2017 11:34:56 +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 8E09D1609E2 for ; Thu, 19 Oct 2017 13:34:55 +0200 (CEST) Received: (qmail 95769 invoked by uid 500); 19 Oct 2017 11:34:54 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@flink.apache.org Received: (qmail 95759 invoked by uid 99); 19 Oct 2017 11:34:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2017 11:34:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C4A171A345D for ; Thu, 19 Oct 2017 11:34:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.822 X-Spam-Level: X-Spam-Status: No, score=-0.822 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=abv.bg Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id fx0zSj0dtrg2 for ; Thu, 19 Oct 2017 11:34:47 +0000 (UTC) Received: from smtp-out.abv.bg (smtp-out.abv.bg [194.153.145.70]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 3B14960D33 for ; Thu, 19 Oct 2017 11:34:47 +0000 (UTC) Received: from nm73.abv.bg (nm73.ni.bg [192.168.151.78]) by smtp-out.abv.bg (Postfix) with ESMTP id 489C0182FFA9 for ; Thu, 19 Oct 2017 14:34:41 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abv.bg; s=smtp-out; t=1508412881; bh=UHrgQWAVLbZC95GIZjAk+vnuaLmCiajP1sy/P2WLFTc=; h=Date:From:To:Subject:From; b=z0jG8alafR9aWGPiq8AoHO3S+t3maLp9kddIqlEQMFa/eZ78dryzZrGCnXZA+5VtR N/hggNgKAtLqzC6Dmz2ar7jzE9JoudDfcyeRnLivQnHKbvqCaYyftTxEHo6RqRU3Pl VatNIz1xYG4vShqJgf15RMf/l5ddldRVYDMt7NVE= Received: from nm73.abv.bg (localhost [127.0.0.1]) by nm73.abv.bg (Postfix) with ESMTP id 4F19E12005F for ; Thu, 19 Oct 2017 14:34:41 +0300 (EEST) Date: Thu, 19 Oct 2017 14:34:40 +0300 (EEST) From: "r. r." To: user@flink.apache.org Message-ID: <1397770525.2517542.1508412881322.JavaMail.apache@nm73.abv.bg> Subject: java.lang.NoSuchMethodError and dependencies problem MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Mailer: AbvMail 3.0 X-Originating-IP: 46.252.142.235 archived-at: Thu, 19 Oct 2017 11:34:56 -0000 Hello I have a job that runs an Apache Tika pipeline and it fails with "Caused by: java.lang.NoSuchMethodError: org.apache.commons.compress.archivers.ArchiveStreamFactory.detect(Ljava/io/InputStream;)Ljava/lang/String;" Flink includes commons-compress 1.4.1, while Tika needs 1.14. I also have Apache Avro in the project with commons-compress at 1.8.1, so I force 1.14 with                                         org.apache.commons                 commons-compress                 1.14                         this seems to work as mvn dependency:tree -Ddetail=true only shows 1.14 and after purge, the local maven repo also only contains 1.14 yet, after i deploy the job and it reads an Avro package from kafka and passes it to Tika, it fails with the error above, which leads me to think it somehow uses commons-compress at a version prior to 1.14, because method 'detect' is not present in older versions I excluded/included it from the fat-jar org.apache.commons:commons-compress still the same problem thanks for any hints!