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 4C092200C4F for ; Fri, 17 Mar 2017 11:47:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4A95C160B80; Fri, 17 Mar 2017 10:47:50 +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 9EC91160B8C for ; Fri, 17 Mar 2017 11:47:49 +0100 (CET) Received: (qmail 96915 invoked by uid 500); 17 Mar 2017 10:47:48 -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 96905 invoked by uid 99); 17 Mar 2017 10:47:48 -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; Fri, 17 Mar 2017 10:47:48 +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 0CAA31A03F2 for ; Fri, 17 Mar 2017 10:47:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, 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-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 H_S8gs-U3ikm for ; Fri, 17 Mar 2017 10:47:47 +0000 (UTC) Received: from mail-it0-f51.google.com (mail-it0-f51.google.com [209.85.214.51]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 6AC605F473 for ; Fri, 17 Mar 2017 10:47:46 +0000 (UTC) Received: by mail-it0-f51.google.com with SMTP id g138so20561719itb.0 for ; Fri, 17 Mar 2017 03:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=s5n5X2Q8Fyh13sqUr0Kig6/EpFjzjLKbwNi7/u40CCw=; b=M7mY71tnQu7jx0jgLvz2oOB2QlUDnef3ZsFed//pJGu+ox7bTQgPwCKrkvUM5sArqX UB4aUAPFimk8pGEa6hj0iwn9/PRXBvvxXs6vFinJqeuxO1zgxpaKNSoysRLoN9FIi74E 4KY6C0rHZm2fob5jIGqZKK1OHfa6o3joAMRrAO19/7jj73w/EbCOxLTh5LjvKiaXWjwe 2/HcBDpyDLyBRDu44+aQGC+wCfUNcBD7HkySB6cj31lxNTpyOyQ8B5brGjVXrfO41LN1 2rDAPRGvMDlN1XUN9vgf+2bS2e5ziTDnMkewvsTymsBDc+1xGg2bf9vsiKLVdEkumkie blQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=s5n5X2Q8Fyh13sqUr0Kig6/EpFjzjLKbwNi7/u40CCw=; b=d9iAOaPEEzK9vvORbUNw6XTqnsdpuOBXpr4rsot9oFtxrLGI00/1rg4apw7amN1omV aCPa1SW5TFRLQwQY2cr/8N9BprtsGH/tX4cUa+toVJi3qcBwkjZkX03PMqbJnG1N/Skx kYh4cdYSdmA9SAitcb7WXMT0Yw4eZGuAlvw3KmEnpJ64rBP+5zLyAAuDJjqDUWGNzc50 KrVMhf/t9P3F9pdSn7zrdp64XHb0/SxGBdUcWggNvoqAf0ZU48logWiv/yIbmOC2qIo4 qoXtvCD3MaWDGsLSrWrlCoLi1ms8Bz9HVR+e8eOv1A9aMSdX8GXK+T2vFitvlaAplBkh ZgxQ== X-Gm-Message-State: AFeK/H1dJwc1QntEh5XaXO2Dshtlv7BcjAq0D0TQAmDoy6Jp6JGw3pAwzkQ2PI/quqMcmkwt5cmtRFO+pXxCNg== X-Received: by 10.36.77.140 with SMTP id l134mr2106164itb.33.1489747664374; Fri, 17 Mar 2017 03:47:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.200.5 with HTTP; Fri, 17 Mar 2017 03:47:43 -0700 (PDT) From: Harish Dewan Date: Fri, 17 Mar 2017 16:17:43 +0530 Message-ID: Subject: ScriptException does not prints actual file name To: users@groovy.apache.org Content-Type: multipart/alternative; boundary=001a11404e86571090054aeae806 archived-at: Fri, 17 Mar 2017 10:47:50 -0000 --001a11404e86571090054aeae806 Content-Type: text/plain; charset=UTF-8 Hi All, I am trying to run a groovy script from my Java code using JSR223 and I am using 'groovy-all-2.4.9.jar' . In case of any exception occurring, it gives a generic name as Script.groovy , where as the script file name was differently given. I checked for possible solutions, like I need to set the script file name in the context. but the current code for eval does not gets the script file name from context. It creates a unique file name through 'generateScriptName'. Is this a bug or do I need to deal with it differently ? Please guide. Thanks Harish --001a11404e86571090054aeae806 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi All,
I am trying to run a groovy script from my Jav= a code using JSR223 and I am using 'groovy-all-2.4.9.jar' .
In case of any exception occurring, it gives a generic name as Script<= ;unique number>.groovy , where as the script file name was differently g= iven.

I checked for possible solutions, like I need to set the script = file name in the context. but the current code for eval does not gets the s= cript file name from context. It creates a unique file name through 'ge= nerateScriptName'.

Is this a bug or do I need to deal with= it differently ?=C2=A0
Please guide.

= Thanks=C2=A0<= /font>
Har= ish

--001a11404e86571090054aeae806--