Open escannord opened 2 months ago
Hmm, I have not seen that one before.
I see that you are building 1.5-SNAPSHOT
. Does the same thing happen when you build from a released version?
Also, the 1.5 series has not been the development focus for a while now. Its native portion was built with the nar-maven-plugin
, which was a frequent source of issues and difficult workarounds.
Do you have a requirement that prevents you using the PL/Java 1.6 series?
no I don't have any particular requirements on the version, but everything I've tried always gives an error on the backend native code
.
but I'm still going to try 1.6 see
voici la nouvelle erreur avec 1.6-SNAPSHOT
Ah, there's a slightly more traceable error message, anyway. A JavaScript error, null is not an Object, no doubt from the JS code in pljava-so/pom.xml
that handles compiling and linking. Says line number 315, and that JS code begins at line 31 of the POM, so it's right after the code that tries to select the right compiling/linking rules for the platform:
https://github.com/tada/pljava/blob/REL1_6_STABLE/pljava-so/pom.xml#L336
It seems that none of the platform probe tests succeeded (which explains why there was no Using compiling/linking rules for ...
message shown).
I am not sure whether you are trying to build with Windows MinGW or with Windows MSVC. I see there are msys64
components in some of your paths, which would make me think MinGW, but I noticed in your earlier screenshot, nar-maven-plugin
said Using AOL: amd64-Windows-msvc
.
At any rate, it seems that neither probe succeeded, so you might start by looking at the two probe tests to see how they identify each platform:
https://github.com/tada/pljava/blob/REL1_6_STABLE/pljava-so/pom.xml#L206
https://github.com/tada/pljava/blob/REL1_6_STABLE/pljava-so/pom.xml#L264
My first guess would be that you might not have set one of the expected environment variables. I hope that those are documented in the corresponding build pages, but something might need to be clarified.
https://tada.github.io/pljava/build/mingw64.html
https://tada.github.io/pljava/build/buildmsvc.html
As a side note, if you are planning to contribute to development of PL/Java, it can be useful to build from the development snapshots, but if you simply intend to use it, building from a version that has been released is preferable. The latest release in the 1.6 series has tag V1_6_7
.
I will try your suggestions and see. THANKS
when I try the V1_6_7
tag, I have the same problem, maybe it's my version of postgres (version 14
) or I didn't install maven correctly?
Thank you in advance for your answer?
hello @jcflack , I finally got around to it thanks to your help, and I thank you for it.
finally I used Windows MSVC
and the V1_6_7
tag after noticing that my postgre was built with MSVC
:
And here is the result:
Thank you again for your help
I am glad that it worked.
I will treat this issue as a bug report that the build process gives a null-pointer exception instead of an explanatory message when no supported platform rules have matched.
All right
Hello everyone, I hope you are well, I have a problem installing my pl/java, all the prerequisites are installed but I don't understand why there is this error (when I runs![Capture d’écran 2024-04-25 123816](https://github.com/tada/pljava/assets/109680430/ff0b2117-d469-4d4c-bebb-dccc561ee2c5)
mvn clean install
) and I tried everything possible to resolve it without success. here is a picture of the error it gives me, thank you in advance for your help on this