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 1jtWhX-0002Sp-T9 for pljava-dev@arkaria.postgresql.org; Thu, 09 Jul 2020 13:35:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jtWhW-0007o0-TZ for pljava-dev@arkaria.postgresql.org; Thu, 09 Jul 2020 13:34:58 +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 1jtWhW-0007ns-Dj for pljava-dev@lists.postgresql.org; Thu, 09 Jul 2020 13:34:58 +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 1jtWhT-0003Jm-OH for pljava-dev@lists.postgresql.org; Thu, 09 Jul 2020 13:34:57 +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=1Szwbydw/RauH5hqiZ10yyTEtkFklmWYRDHdXm20npU=; b=MvoGERP9FiANLCbAL8HU4f5rPN Y3+L4oNxybNeWERX5nAel7Vp7LQZ0keq6xmZeA1CvDQ+RjKeRnAsM5L5sIwjGLcuDMXUh+4icHyOO KyaF5a1wE34uU46m3Qcfvn0yk5K8GCTKzVbk1zmVJJB92idslzxI/dkgokGZoGtAcNQn8/z7byanl xmJ3ffer934kWH5YW7YoRn6l5VyPqo71jHkarT58igM2fPsLHRkax/gILLmmmeZ90nDahGxvNQiAc bWQAIsmgi+Skk0AgSnGx9d2Gb/6tpz0IRxHSvuk9yyWk8pTcz7Po8xXgaeShMHa33BM5UVsjSS9yM flKsTtzg==; Received: from [184.19.31.139] (port=53102) by bay.acenet.us with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1jtWhR-0027Po-9Z; Thu, 09 Jul 2020 09:34:54 -0400 Subject: Re: PL/Java new build plugin To: Kartik Ohri References: <5EFE0A4D.8060402@anastigmatix.net> <5F0125BC.5000609@anastigmatix.net> <5F0172D7.3000708@anastigmatix.net> <5F02122C.7040905@anastigmatix.net> <5F021785.905@anastigmatix.net> <5F021A20.1050903@anastigmatix.net> <5F02340C.7030002@anastigmatix.net> <5F04FA65.5000600@anastigmatix.net> Cc: pljava-dev@lists.postgresql.org From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <5F071CFC.9090306@anastigmatix.net> Date: Thu, 9 Jul 2020 09:34: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/09/20 06:48, Kartik Ohri wrote: > and here is > the link to the new plugin build log.txt > . Can you Odd ... were these two builds started with different command lines? The first one looks like it builds all subprojects: [INFO] Reactor Build Order: [INFO] [INFO] PostgreSQL PL/Java [INFO] PL/Java API [INFO] PL/Java backend Java code [INFO] PL/Java backend native code [INFO] PL/Java Ant tasks [INFO] PL/Java examples [INFO] PL/Java packaging The second one seems to skip right to pljava-so: [INFO] Reactor Build Order: [INFO] [INFO] PL/Java backend native code [INFO] PL/Java Ant tasks [INFO] PL/Java examples [INFO] PL/Java packaging In nar-maven-plugin 3.2.3, the line with the null pointer exception seems to be this one: https://github.com/maven-nar/nar-maven-plugin/blob/nar-maven-plugin-3.2.3/src/main/java/com/github/maven_nar/Compiler.java#L499 which makes me think that some entry of 'defines' is a null. If you're running the build with Java 14 or later, you may be able to squeeze a little more information out of a NullPointerException by putting the right -XX:... option in the MAVEN_OPTS environment variable (see [1]). In this case it might only say something like "cannot call method split() because receiver is null" (I don't see a lot of other possibilities on that line) but in general it might be helpful. Regards, -Chap [1] https://www.postgresql.org/message-id/5ED2B113.1000606%40anastigmatix.net