-
Notifications
You must be signed in to change notification settings - Fork 109
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Our Cloud config server smoke test fails because of missing JGit metadata.
We've worked around that by using buildArgs.addAll('-H:+UnlockExperimentalVMOptions', '-H:Preserve=package=org.eclipse.jgit.*').
We're using org.eclipse.jgit:org.eclipse.jgit:7.4.0.202509020913-r.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultEnvironmentRepository': Enumerated values of type org.eclipse.jgit.lib.CoreConfig$TrustStat not available
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1818)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:604)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:526)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:371)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:331)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1218)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1184)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1121)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:983)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:620)
at org.springframework.boot.web.server.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:765)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:454)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:321)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1374)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1363)
at com.example.cloud.config.server.ConfigServerApplication.main(ConfigServerApplication.java:31)
at java.base@25/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Caused by: java.lang.IllegalArgumentException: Enumerated values of type org.eclipse.jgit.lib.CoreConfig$TrustStat not available
at org.eclipse.jgit.lib.Config.allValuesOf(Config.java:585)
at org.eclipse.jgit.lib.Config.getEnum(Config.java:572)
at org.eclipse.jgit.lib.CoreConfig.inheritParseTrustStat(CoreConfig.java:319)
at org.eclipse.jgit.lib.CoreConfig.parseTrustPackedRefsStat(CoreConfig.java:299)
at org.eclipse.jgit.lib.CoreConfig.<init>(CoreConfig.java:269)
at org.eclipse.jgit.lib.Config.get(Config.java:894)
at org.eclipse.jgit.internal.storage.file.RefDirectory.<init>(RefDirectory.java:215)
at org.eclipse.jgit.internal.storage.file.FileRepository.<init>(FileRepository.java:188)
at org.eclipse.jgit.lib.BaseRepositoryBuilder.build(BaseRepositoryBuilder.java:679)
at org.eclipse.jgit.api.InitCommand.call(InitCommand.java:104)
at org.eclipse.jgit.api.CloneCommand.init(CloneCommand.java:279)
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:187)
at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.cloneToBasedir(JGitEnvironmentRepository.java:676)
at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.initClonedRepository(JGitEnvironmentRepository.java:379)
at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.afterPropertiesSet(JGitEnvironmentRepository.java:300)
at org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.afterPropertiesSet(MultipleJGitEnvironmentRepository.java:72)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1865)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1814)
... 19 more
Caused by: java.lang.NoSuchMethodException: org.eclipse.jgit.lib.CoreConfig$TrustStat.values()
at java.base@25/java.lang.Class.checkMethod(DynamicHub.java:1343)
at java.base@25/java.lang.Class.getMethod(DynamicHub.java:1337)
at org.eclipse.jgit.lib.Config.allValuesOf(Config.java:580)
... 36 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request