Upgrade to RAML Module Builder 32.x

Description

As part of 2021 R1 it is necessary to upgrade all modules based upon RAML Module Builder to the official version, 32.x

This also includes

  • changes to the Tenant API

  • upgrading to Vert.x 4.x

Links
Upgrade guide

Examples

Environment

None

Potential Workaround

None

Attachments

4

Checklist

hide

TestRail: Results

Activity

Show:

Marc Johnson February 17, 2021 at 5:03 PM

Thank you for documenting some of the challenges you encountered

Oleksandr Yatsenko February 16, 2021 at 6:22 PM

Changes has been merged into master branch.

Oleksandr Yatsenko February 16, 2021 at 6:19 PM
Edited

There were some points want to mention I faced with during the process. First was related to build issue which in turn doesn't affect on build result, i.e. build was finishing successful but some odd message appeared:

org.folio.rest.tools.GenerateRunner.main() ERROR An exception occurred processing Appender STDOUT java.util.NoSuchElementException: No value present
{{ at java.base/java.util.Optional.get(Optional.java:148)}}

 

This has been fixed by bumping up of version of "log4j-bom" to the 2.13.3 (version of 2.11.2 was used before).

 

Another one was related to some kind of incompatibility of Netty library used by Vert.x 4 and java 11th - netty/netty#7769. It looks like that's known issue and it appears as unwanted messages in build log:

16:55:04 DEBUG PlatformDependent0 jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable
java.lang.IllegalAccessException: class io.netty.util.internal.PlatformDependent0$6 cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @41f35f7c
{{ at jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361) ~[?:?]}}

 

 

And this one has been fixed by adding manually access level for tests running plugin in pom configuration file:

<argLine>
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED
-Dio.netty.tryReflectionSetAccessible=true
--illegal-access=warn
</argLine>

 

!image-2021-02-16-20-18-57-622.png!

 

Possibly all these will be useful for further moving of modules to updated versions of RMB and/or Vert.x

 

 

 

 

 

 

 

 

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Prokopovych

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created December 11, 2020 at 12:23 PM
Updated March 15, 2021 at 4:15 PM
Resolved February 16, 2021 at 6:22 PM
TestRail: Cases
TestRail: Runs