FHIR transitively depends on javassist through thymeleaf here and here. The version of javassist depended on is 3.16.0.GA which is incompatible with the expected version causing this error to be thrown.
Solution
Exclude these dependencies.
Update
This affects version 1.18.0 but this version has not been added yet so I a leaving the field blank.
- links to