[MODOAIPMH-230] Reference environment builds broken 2020-09-16 -- mod-oai-pmh? Created: 16/Sep/20  Updated: 17/Sep/20  Resolved: 17/Sep/20

Status: Closed
Project: mod-oai-pmh
Components: None
Affects versions: None
Fix versions: None

Type: Bug Priority: P1
Reporter: David Crossley Assignee: Oleksandr Yatsenko
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Relates
relates to MODOAIPMH-188 POC: Update to java 11 Closed
Sprint: Gulfstream Sprint 97
Story Points: 0.5
Development Team: Gulfstream

 Description   

The Jenkins reference environment builds are broken today.

During the phase "okapi-tenant-deploy : Post install list for deployment and enabling"

This arises:

POST request for mod-oai-pmh-3.2.0-SNAPSHOT.135 /_/tenant failed with 400:
Invalid URL path requested /_/tenant", ...
"Status code was 400 and not [200]: HTTP Error 400: Bad Request

Its docker logs show this:

Attempting to read in the module name from..../usr/verticles/mod-oai-pmh-fat.jar
02:19:39 ERROR PomReader            null
java.lang.NullPointerException: null
        at org.folio.rest.tools.PomReader.<init>(PomReader.java:66) ~[mod-oai-pmh-fat.jar:?]
        ...
...
02:19:39 INFO  LogUtil              org.folio.rest.RestVerticle start Documentation available at: http://localhost:8081/apidocs/
02:19:39 INFO  ertxIsolatedDeployer Succeeded in deploying verticle
02:22:38 INFO  LogUtil              10.36.1.95:46042 POST /_/tenant null HTTP_1_1 400 36 -1 tid=null Bad Request Invalid URL path requested /_/tenant


 Comments   
Comment by David Crossley [ 16/Sep/20 ]

The mod-oai-pmh did upgrade to Java 11 yesterday.
Inspecting the POM, it seems that not the proper RMB version, and some other missing related adjustments.

https://dev.folio.org/faqs/how-to-specify-backend-java-ci/

Comment by Julian Ladisch [ 16/Sep/20 ]

See also RMB upgrading notes: https://github.com/folio-org/raml-module-builder/blob/master/doc/upgrading.md#version-310
Consider using RMB 31.1.0 because it fixes the PomReader NullPointerException reported above: RMB-721 Closed "NPE in PomReader while PostgresClient.getInstance".

Comment by Oleksandr Yatsenko [ 16/Sep/20 ]

Sure, I will update curently set 31.0.2 to the latest - 31.1.0.

Comment by Oleksandr Yatsenko [ 17/Sep/20 ]

Updates were merged into the master branch.

Generated at Thu Feb 08 23:23:20 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.