Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxztl-00058w-4Z for pljava-dev@arkaria.postgresql.org; Tue, 21 Jul 2020 21:34:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jxzti-0005Uw-LT for pljava-dev@arkaria.postgresql.org; Tue, 21 Jul 2020 21:34:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxzti-0005Up-Fk for pljava-dev@lists.postgresql.org; Tue, 21 Jul 2020 21:34:02 +0000 Received: from anastigmatix.net ([68.171.219.55]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxztb-0000Il-Bm for pljava-dev@lists.postgresql.org; Tue, 21 Jul 2020 21:34:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=d0Z3e+31snBMLL14YrwwwfBTLf4Tdw3kb+ywM8vZaFo=; b=ktZsJONmv5D6V4vcrIzvGKRvvt KOhNCkPLzysCwcdYFuAxCDh9wJbAE/oeucFNZL7YmH3bXMfHcAi83vzgrlMIr2QYyZmdXaRQ8xVEb wo8r1smmU0HBdxTPF45dac417OePZoqPthVkG2epF0iObLyE3Et/7pUw7Q2k8hxYTckmsvNu3koPa /vHEQJSTDaTpPJt44+8P/F9gXeWj5fF/YUZc0GZe90VEfNKeRUNUvzx4eLkVH+IinTOamhPSpACRI uoymU5bqLCs5Ycy5x16bc8rU6BHs7AyfIuxTkY3erLhADQ/aPisfdCxBnFhFiETB5L9OB5Wa7UCKY tZML/k2A==; Received: from [184.19.31.139] (port=54052) by bay.acenet.us with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1jxztZ-00Cyna-58; Tue, 21 Jul 2020 17:33:54 -0400 Subject: Re: PL/Java new build plugin To: Kartik Ohri References: <5F1338F8.6030506@anastigmatix.net> <5F135B84.8070302@anastigmatix.net> <5F14C34E.4020704@anastigmatix.net> <5F14E15A.4040202@anastigmatix.net> <5F1664C5.2070700@anastigmatix.net> <5F1735ED.6020707@anastigmatix.net> <5F1753C9.4060500@anastigmatix.net> Cc: pljava-dev@lists.postgresql.org From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <5F175F40.1000905@anastigmatix.net> Date: Tue, 21 Jul 2020 17:33:52 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-95.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - lists.postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap@anastigmatix.net X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 07/21/20 17:00, Kartik Ohri wrote: >> I had set JAVA_HOME and ran javac -version which pointed that Java 15 was > being used but I tested again to be sure.I specified the Java Home in the > mvn statement and ran with debug flags to see which version was running. > You can see around line 473 here > https://travis-ci.com/github/amCap1712/pljava/jobs/363479322. The result is > the same: the script engine finds nashorn but not graal. How odd. When I run the tip of test-graal here with 15-ea, I simply get "No suitable engine found for specified engine name or mime type". If I go to the parent-project POM and edit the nashorngone profile so that the two graal jars are added as dependencies of pljava-pgxs, then I run it again, it finds graal. The dependency-collector debug output now shows the dependencies: [DEBUG] org.postgresql:pljava-pgxs:jar:0.0.1-SNAPSHOT: [DEBUG] org.graalvm.js:js:jar:20.1.0:runtime [DEBUG] org.graalvm.regex:regex:jar:20.1.0:runtime [DEBUG] org.graalvm.truffle:truffle-api:jar:20.1.0:runtime [DEBUG] org.graalvm.sdk:graal-sdk:jar:20.1.0:runtime [DEBUG] org.ow2.asm:asm:jar:7.1:runtime [DEBUG] org.ow2.asm:asm-tree:jar:7.1:runtime [DEBUG] org.ow2.asm:asm-analysis:jar:7.1:runtime [DEBUG] org.ow2.asm:asm-commons:jar:7.1:runtime [DEBUG] org.ow2.asm:asm-util:jar:7.1:runtime [DEBUG] com.ibm.icu:icu4j:jar:66.1:runtime [DEBUG] org.graalvm.js:js-scriptengine:jar:20.1.0:runtime [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime [DEBUG] Created new class realm plugin>org.postgresql:pljava-pgxs:0.0.1-SNAPSHOT [DEBUG] Importing foreign packages into class realm plugin>org.postgresql:pljava -pgxs:0.0.1-SNAPSHOT [DEBUG] Imported: < project>org.postgresql:pljava-so:1.6.0-SNAPSHOT [DEBUG] Populating class realm plugin>org.postgresql:pljava-pgxs:0.0.1-SNAPSHOT [DEBUG] Included: org.postgresql:pljava-pgxs:jar:0.0.1-SNAPSHOT [DEBUG] Included: org.graalvm.js:js:jar:20.1.0 [DEBUG] Included: org.graalvm.regex:regex:jar:20.1.0 [DEBUG] Included: org.graalvm.truffle:truffle-api:jar:20.1.0 [DEBUG] Included: org.graalvm.sdk:graal-sdk:jar:20.1.0 [DEBUG] Included: org.ow2.asm:asm:jar:7.1 [DEBUG] Included: org.ow2.asm:asm-tree:jar:7.1 [DEBUG] Included: org.ow2.asm:asm-analysis:jar:7.1 [DEBUG] Included: org.ow2.asm:asm-commons:jar:7.1 [DEBUG] Included: org.ow2.asm:asm-util:jar:7.1 [DEBUG] Included: com.ibm.icu:icu4j:jar:66.1 [DEBUG] Included: org.graalvm.js:js-scriptengine:jar:20.1.0 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.1 and the logging you added: [ERROR] Graal.js [INFO] setProjectProperty("PGSQL_BINDIR", ... [DEBUG] com.oracle.truffle.js.scriptengine.GraalJSScriptEngine@66dfc523 So I think the dependency info explains why your run was not finding graal. I remain baffled regarding how your run was managing to find Nashorn instead. I wonder if you downloaded a more recent 15-ea than I have, and there was a chorus of complaints and they put Nashorn back in for now? I would be interested to see what a similar Travis run will do after making sure the graal dependencies are listed: will it then find nashorn, or graal? Regards, -Chap