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 1jcVjM-0006Ao-PN for pljava-dev@arkaria.postgresql.org; Sat, 23 May 2020 15:06:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jcVjL-0005vC-Cp for pljava-dev@arkaria.postgresql.org; Sat, 23 May 2020 15:06:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jcVjK-0005v5-Ss for pljava-dev@lists.postgresql.org; Sat, 23 May 2020 15:06:31 +0000 Received: from anastigmatix.net ([68.171.219.55]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jcVjG-0008Hh-LI for pljava-dev@lists.postgresql.org; Sat, 23 May 2020 15:06:29 +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=KHLMWZhl9/3dsr0vS58hPVmkIC2DMxmK5+qzQ97oPno=; b=ggJwqVCyrFCk/XLIwgZO54rrdG BkohGlgDPY6l6kdie5+MW2TbgFE3rGy5WNTlUe0fO6XbkP9lTH/dYsOpWnRRnc+kwofpyHtJtqkW9 bozG1IOF+XdJCGGV9STOeq3wEr3JKBq+JG0gXTqE8Sb4ctDPQ+MbooFAXC9vtjlgh7c2rdS94s7kU 7uo5tjhJ3Eull8Ad0nC4Vw6hG7aNHEvideB0pQdqDD1FALuA4WgzVUpMkVHCWX6bJ+lt6BL0dhc9w bklUUMVcnNVucnvPExiBgRpmr1WamK+WR5pV3v01rl8U3aP3vB/egiOY7RimIe/QjL5Rsq2jnPFCc 0WApaPJQ==; Received: from [184.19.31.139] (port=40185) by bay.acenet.us with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1jcVjC-00BYMw-Nn; Sat, 23 May 2020 11:06:23 -0400 Subject: Re: Starting build-system work (Windows/Mac users please speak up) To: Kartik Ohri References: <5EC17E17.7070002@anastigmatix.net> <5EC66741.4030208@anastigmatix.net> <5EC6FB8B.7080806@anastigmatix.net> <5EC82C8F.80606@anastigmatix.net> Cc: pljava-dev@lists.postgresql.org From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <5EC93BEE.5060608@anastigmatix.net> Date: Sat, 23 May 2020 11:06:22 -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 05/23/20 03:16, Kartik Ohri wrote: >> >> Also -Psaxon-examples is needed to build a set of XML examples that are >> not built by default. > > ERROR: java.sql.SQLNonTransientException: Unable to find static method > org.postgresql.pljava.example.saxon.S9.like_regex with signature > (String,String,String,boolean)boolean > > 5638 > > CONTEXT: SQL statement "CREATE OR REPLACE FUNCTION javatest.like_regex( Good, good! In the 1.6 branch, PL/Java now has a validator, which will produce an error at CREATE FUNCTION time if anything the function depends on can't be resolved. (In 1.5, you would be able to create the function, and only find out it didn't work later when trying to call it.) The Saxon examples depend on the Saxon jar, which hasn't been installed or isn't on the classpath. So there are two ways to proceed: 1. sqlj.install_jar the Saxon jar first, and sqlj.set_classpath to put it on the classpath, before the sqlj.install_jar of the examples jar. After a build completes, the needed jar will be present in the local Maven repository as .m2/repository/net/sf/saxon/Saxon-HE/*/Saxon-HE-*.jar The * is there for the Saxon version, which could change with time. In a build from a clean slate, there should be only one version there. If .m2/repository is being cached, it is possible from time to time Maven will find a later Saxon version available and download it and an older one will still be there, and a script would have to select the latest match. 2. Or, SET check_function_bodies TO off; before the sqlj.install_jar for the examples, and dependencies won't be checked. That will be more like the old 1.5 behavior, where the CREATE FUNCTION will succeed, but later the function won't work. > I was unable to find this issue in Github Issues. Is this a known issue or > should I file one on Github or is this an error due to some > misconfiguration in the build environment ? If the PL/Java documentation that you are reading is what is online at https://tada.github.io/pljava/ then it's worth remembering that what is published there is the latest *released* version's documentation, for 1.5.5 at the moment. So there's nothing in that version about the function validator. As you're working on the never-yet-released 1.6.0-SNAPSHOT branch, the best way to read the documentation is to generate it locally mvn site site:stage and then point your browser at the local file target/staging/index.html However, just at the moment the javadoc build is failing for me. I'm quite sure it worked in February when I committed 5ee9b6b. This is one of those moments when I do not love Maven. I'll take a look at what's broken this time. Regards, -Chap