Return-Path: X-Original-To: apmail-groovy-users-archive@minotaur.apache.org Delivered-To: apmail-groovy-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 56EBE19978 for ; Thu, 21 Apr 2016 07:24:53 +0000 (UTC) Received: (qmail 89493 invoked by uid 500); 21 Apr 2016 07:24:53 -0000 Delivered-To: apmail-groovy-users-archive@groovy.apache.org Received: (qmail 89466 invoked by uid 500); 21 Apr 2016 07:24:53 -0000 Mailing-List: contact users-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.apache.org Delivered-To: mailing list users@groovy.apache.org Received: (qmail 89456 invoked by uid 99); 21 Apr 2016 07:24:53 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Apr 2016 07:24:53 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id ABD42180481 for ; Thu, 21 Apr 2016 07:24:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.179 X-Spam-Level: ** X-Spam-Status: No, score=2.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_LIVE=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id RXAugJ6vbSns for ; Thu, 21 Apr 2016 07:24:50 +0000 (UTC) Received: from mail-ig0-f182.google.com (mail-ig0-f182.google.com [209.85.213.182]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 3FD1D5F2F2 for ; Thu, 21 Apr 2016 07:24:50 +0000 (UTC) Received: by mail-ig0-f182.google.com with SMTP id m9so58443778ige.1 for ; Thu, 21 Apr 2016 00:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=bPr9xwzIYlI+3bPGrcaFoH0rDNNgKd27mu7i3NhNl24=; b=m4emCOomvkT0mD7A7dln4BY0u29vVulEa8JxnyVr64pxFB2pUbfPEQC6jkpViTAyzZ TC8G+s27KwRHGFOvArt3pmdatISg7sSdTWJ9QkGEVJ/iVbdjXhevxIvDMXAi/pwk+RXf sYyfXIkxmNeVXICSkWLzPoXG/ws3A1CP23aPxhEblyR5hwUnwoQQfd8+ENYQhnwP2AQg BrmY0QMKO8Y0oApxPiCIH40mY/dPZrWrKXGpL75QhMh7l/7PptPgGE7/+wyn71+Yc/+j rOjjB6FULPvYdwaUiJPTWt3kkWp+m3S4yYywechqHF4SGZ2h/PVc0bm9iyyYTVi7hy2u DHhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bPr9xwzIYlI+3bPGrcaFoH0rDNNgKd27mu7i3NhNl24=; b=cTXEORFQdo0Q287c3uJee6fcWV+rGw7OKndFOxnVUn5vhLRztmvO20YCTiWjzhhjq/ Q9Rg86NSZZO7xP/iEXHXHPgP/NUkITWxXM7/lBw4eYwbCP4pVfxVR8HXy2OJFuOGJ/bg VQ6wPQDWWQu2ofvJq4gGgpCkWPBTKlad7TYv8eSDIWZICItUXt6aRt3bUyo57m8jHZya SPBQU/IOuX5HVZcMcu+9Mlr6foU1zgFcvYQhgbXU9mQqAFHkFROI7Mg7V8QnaP22sGHQ BnUXf5Igw75nbiu1T7YGTpHyOoWql4/ap9ikZkLcu8kIBg7pMBYaB/kwcJPh5PagGq1q f41g== X-Gm-Message-State: AOPr4FWh3wJBHpeq8DoiD3oa/TgdTPAASDWagwvL5GntR8fweIjECjYbKSjnmYfQdZQnnGctsQX2kABy3dKDvQ== X-Received: by 10.50.28.19 with SMTP id x19mr1709445igg.19.1461223489516; Thu, 21 Apr 2016 00:24:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.136.80 with HTTP; Thu, 21 Apr 2016 00:24:30 -0700 (PDT) From: Gerald Wiltse Date: Thu, 21 Apr 2016 03:24:30 -0400 Message-ID: Subject: Deploying extension Methods To: users@groovy.apache.org Content-Type: multipart/alternative; boundary=089e01538da007ba990530f99bda --089e01538da007ba990530f99bda Content-Type: text/plain; charset=UTF-8 Hello All, I'm trying to deploy my first groovy extension methods to remove JVM. The methods work great in my IDE, but not on a remote JVM which has loaded the JAR. I use gradle to build, i can see that the metadata and class are included in the JAR, but I get the error: No signature of method: java.util.ArrayList.sumSelectedAttributes() is applicable for argument types: (java.util.ArrayList) values: [[messageCount, incomingConnectionsCount, outgoingConnectionsCount, ...]] What could be the difference between calling the methods locally versus calling them on a JVM which has the JAR on the classpath which is causing this? I mostly followed MR Haki's wonderful tutorial: http://mrhaki.blogspot.com/2013/01/groovy-goodness-adding-extra-methods.html Here are more details. http://stackoverflow.com/questions/36762144/groovy-extension-module-method-no-signature-of-method Any insight would be much appreciated. Gerald R. Wiltse jerrywiltse@gmail.com --089e01538da007ba990530f99bda Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello All,=C2=A0

I'm try= ing to deploy my first groovy extension methods to remove JVM.=C2=A0 The me= thods work great in my IDE, but not on a remote JVM which has loaded the JA= R.=C2=A0

I use gradle to build, i can see that the= metadata and class are included in the JAR, but I get the error:

=
No signature of method: java.util.ArrayList.sumSelectedAttributes() is= applicable for argument types: (java.util.ArrayList) values: [[messageCoun= t, incomingConnectionsCount, outgoingConnectionsCount, ...]]

What could be the difference between calling the me= thods locally versus calling them on a JVM which has the JAR on the classpa= th which is causing this?

I mostly followed MR Hak= i's wonderful tutorial:=C2=A0

Here are more details.=C2=A0

An= y insight would be much appreciated.=C2=A0


Gerald R. Wiltse
jerrywiltse@gmail.com

--089e01538da007ba990530f99bda--