Re: PL/Java new build plugin

From: Chapman Flack <chap(at)anastigmatix(dot)net>
To: Kartik Ohri <kartikohri13(at)gmail(dot)com>
Cc: pljava-dev(at)lists(dot)postgresql(dot)org
Subject: Re: PL/Java new build plugin
Date: 2020-07-09 13:34:52
Message-ID: 5F071CFC.9090306@anastigmatix.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

On 07/09/20 06:48, Kartik Ohri wrote:
> <https://usercontent.irccloud-cdn.com/file/A3ZmSPHz/oldlog.txt> and here is
> the link to the new plugin build log.txt
> <https://usercontent.irccloud-cdn.com/file/FnKQLvrI/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

In response to

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Kartik Ohri 2020-07-09 13:51:31 Re: PL/Java new build plugin
Previous Message Kartik Ohri 2020-07-09 10:48:25 Re: PL/Java new build plugin