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 ACB91200D41 for ; Wed, 22 Nov 2017 12:29:23 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id AB41E160BFD; Wed, 22 Nov 2017 11:29:23 +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 CA5D3160BDA for ; Wed, 22 Nov 2017 12:29:22 +0100 (CET) Received: (qmail 14675 invoked by uid 500); 22 Nov 2017 11:29:22 -0000 Mailing-List: contact dev-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list dev@jmeter.apache.org Received: (qmail 14663 invoked by uid 99); 22 Nov 2017 11:29:21 -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; Wed, 22 Nov 2017 11:29:21 +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 E9F4A1A0445 for ; Wed, 22 Nov 2017 11:29:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Qr9vAMYNkWqm for ; Wed, 22 Nov 2017 11:29:19 +0000 (UTC) Received: from mail-pl0-f46.google.com (mail-pl0-f46.google.com [209.85.160.46]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A816E5FD33 for ; Wed, 22 Nov 2017 11:29:18 +0000 (UTC) Received: by mail-pl0-f46.google.com with SMTP id s10so568158plj.5 for ; Wed, 22 Nov 2017 03:29:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=QLYKsu80hLAmdJEu/4ih3dg4xoXgpwSt0hTExSsAX3Q=; b=IxFkW2z9H+JeM3oQaeOP0rWpeqnLPHJE3UwmcPn7KQttORsSdcmcPjLVQJr63qZh38 7Z72pSXOS6EDfXc3AqWb7Lbyjz/IB5Py22wysewPm3LlpWQyo6O7CFv8vFcyscqv/+LM PduynOFlV2ohkOwjct0BgKAmkNCLgzWb/3+VMttryw19lL10YQHDLEFUDQ/m5oFSLOEH S0PlqpbchB+Hd6q1sdvsu+WEyC4buGTaANH7/UPaAwU49LMb89GmtJtn0F+yiIj+Bqor OIziHOCHjxu3cnwlKKWjnLoUqGY7U2C9waXxeprCALiYsH6MhUT7aix1gI3bBud0bOxc lnzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=QLYKsu80hLAmdJEu/4ih3dg4xoXgpwSt0hTExSsAX3Q=; b=CDiPWrkVMqGm6qTuzJOFPPVOHEs19YKB/R+FjxKVVFg+vc1Eea29v0v+eBluCOisuH uCZJQb1RAjxx/CRO6OsXkg3X+5jfhVo4qhif6u6xd8HSwNRx7VfR//toB21CtmAaPTiJ jcmfqRoMJPP9COOumZgGx7i4gSsisg0/WyCAZKxdE88+QeXWWvgR3IUPS/4LPeZHZeU9 ixjIgvWD3i7WP/oVe6LSY+MQFTgodOPg8pjNtEQwqN7CEKTWdRMQdIOKelPodN4SrO1w T8NR+vj90OIaGo7fQanaW94VhTrbOhZ2mQIcvTDj90XNKbOFcS7YpcMklzoeA+jH/hMW M6EQ== X-Gm-Message-State: AJaThX7HEOcoBciK8W5lw0T8cX3m+59bJsQl1uNJdJpRAbJarqFsLchJ v1vR1/ysH1Pi69jnGjnl3Aa7OSJW5oPLkOAoh780VQ== X-Google-Smtp-Source: AGs4zMal00EWgONksGgGMCBdZERln0hS+y8Egv+KhdD7Bp1HQoTXp33OZocrf8gexa/EGNiWhzUJUJ0XhUwOw6JQQTo= X-Received: by 10.84.175.3 with SMTP id s3mr20554572plb.279.1511350151873; Wed, 22 Nov 2017 03:29:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.100.164.69 with HTTP; Wed, 22 Nov 2017 03:29:11 -0800 (PST) In-Reply-To: References: From: sebb Date: Wed, 22 Nov 2017 11:29:11 +0000 Message-ID: Subject: Re: BUG 61567 To: dev@jmeter.apache.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable archived-at: Wed, 22 Nov 2017 11:29:23 -0000 On 21 November 2017 at 22:25, Philippe Mouawad wrote: > Hello, > There is clearly a bug. You can try the attached project. I think the bug is in the POM. See Bugzilla > The fix would be just to rename our jars by suffixing them with version That's much better than changing the ClassFinder code. However I'm not sure it's necessary, if the POM is set up correctly. If one is using Maven, one should get all the JMeter jars from Maven or non= e. > Regards > > On Sun, Nov 19, 2017 at 12:22 AM, sebb wrote: > >> The code is quite complicated, so I would be very wary of changing it. >> And it's important not to include jars in the classpath that don't belon= g. >> >> JMeter runs quite happily if the jars are named anything you like so >> long as they are in the lib/ext directory or they are added to the >> appropriate path. >> >> So I'm not sure that the Bug is valid. >> >> On 18 November 2017 at 22:42, Philippe Mouawad >> wrote: >> > Hello, >> > Any thoughts on this ? >> > Thanks >> > >> > On Sat, Nov 11, 2017 at 10:41 PM, Philippe Mouawad < >> > p.mouawad@ubik-ingenierie.com> wrote: >> > >> >> Hello, >> >> Analyzing bug 61567 , I end up thinking that what we're doing in the >> below >> >> method is not correct: >> >> >> >> - ClassFinder#getClasspathMatches >> >> >> >> This method does the following: >> >> >> >> - It takes a list of jars in search_path >> >> - It takes the classpath >> >> - For each entry in classpath , it tests if it ends with one of th= e >> >> jar of the first list >> >> - If one match is found, the entry will be returned , otherwise it >> >> will be ignored >> >> >> >> So what is triggering the bug is the following, as search_path is emp= ty, >> >> only content of lib/ext is used. >> >> >> >> So first list consist of : >> >> >> >> - ApacheJMeter_jms.jar >> >> ApacheJMeter_junit.jar >> >> ApacheJMeter_native.jar >> >> ApacheJMeter_ftp.jar >> >> ApacheJMeter_components.jar >> >> /data/jmeter/jmeters/apache-jmeter-3.3/lib/ext >> >> ApacheJMeter_ldap.jar >> >> ApacheJMeter_mail.jar >> >> ApacheJMeter_tcp.jar >> >> ApacheJMeter_http.jar >> >> ApacheJMeter_java.jar >> >> ApacheJMeter_core.jar >> >> ApacheJMeter_functions.jar >> >> ApacheJMeter_jdbc.jar >> >> ApacheJMeter_mongodb.jar >> >> >> >> Classpath consists of many entries and specifically , JMeter artifact= s >> end >> >> with -3.3.jar >> >> >> >> None of the entries are added due to endsWith test failing, example: >> >> >> >> Testing if /MAVEN .m2/repository/org/apache/ >> jmeter/ApacheJMeter_functions/ >> >> 3.3/ApacheJMeter_functions-3.3.jar ends with ApacheJMeter_jms.jar *wi= ll >> >> return false* >> >> >> >> As a consequence, no function is found >> >> >> >> >> >> *One fix would be in JMeter to suffix artifacts in bin and lib/ext wi= th >> >> the version number.* >> >> >> >> *But is this behaviour correct ?* >> >> >> >> -- >> >> Regards. >> >> Philippe M. >> >> >> > >> > >> > >> > -- >> > Cordialement. >> > Philippe Mouawad. >> > Ubik-Ing=C3=A9nierie >> > >> > UBIK LOAD PACK Web Site >> > >> > UBIK LOAD PACK on TWITTER >> > > > > -- > Cordialement. > Philippe Mouawad.