NATS has custom metadata fields and using Leaf 3.14 we are getting this error during the compile process of our data service. If we don’t have custom metadata fields we don’t see this error.
Task :readMetadataFiles
Task :generateLookupListConstants FAILED
Exception in thread “main” java.lang.ExceptionInInitializerError
at com.leidos.leaf.lookuplist.constants.parser.LookupListConstantsParser.(LookupListConstantsParser.java:53)
at com.leidos.leaf.lookuplist.constants.parser.LookupListConstantsParserMain.main(LookupListConstantsParserMain.java:37)
Caused by: java.lang.RuntimeException: javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
- with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory]
at io.reactivex.rxjava3.internal.util.ExceptionHelper.wrapOrThrow(ExceptionHelper.java:46)
at io.reactivex.rxjava3.exceptions.Exceptions.propagate(Exceptions.java:46)
at com.leidos.leaf.util.lambda.ExceptionUtils.wrapCheckedException(ExceptionUtils.java:57)
at com.leidos.leaf.beans.parsers.lookuplist.LookupListParser.(LookupListParser.java:48)
… 2 more
Caused by: javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath. - with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory]
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:278)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:421)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:721)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:662)
at com.leidos.leaf.beans.parsers.lookuplist.LookupListParser.lambda$static$0(LookupListParser.java:48)
at com.leidos.leaf.util.lambda.ExceptionUtils.wrapCheckedException(ExceptionUtils.java:54)
… 3 more
Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at javax.xml.bind.ServiceLoaderUtil.nullSafeLoadClass(ServiceLoaderUtil.java:122)
at javax.xml.bind.ServiceLoaderUtil.safeLoadClass(ServiceLoaderUtil.java:155)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:276)
… 8 more
FAILURE: Build failed with an exception.