Client code to separate module #9
GitHub Actions / Integration Test Report
failed
Oct 14, 2023 in 0s
2 tests run, 1 passed, 0 skipped, 1 failed.
Annotations
github-actions / Integration Test Report
StorageConfigBeansLightbendConfigIT.defaultConfigShouldBeBackwardCompatible(StorageProps)
Failed to load ApplicationContext for [MergedContextConfiguration@46fb9581 testClass = smecalculus.bezmen.construction.StorageConfigBeansLightbendConfigIT, locations = [], classes = [smecalculus.bezmen.construction.StorageConfigBeans, smecalculus.bezmen.construction.ConfigBeans, smecalculus.bezmen.construction.ValidationBeans], contextInitializerClasses = [], activeProfiles = [], propertySourceLocations = [], propertySourceProperties = ["bezmen.config.mapping.mode=lightbend_config"], contextCustomizers = [], contextLoader = org.springframework.test.context.support.DelegatingSmartContextLoader, parent = null]
Raw output
java.lang.IllegalStateException: Failed to load ApplicationContext for [MergedContextConfiguration@46fb9581 testClass = smecalculus.bezmen.construction.StorageConfigBeansLightbendConfigIT, locations = [], classes = [smecalculus.bezmen.construction.StorageConfigBeans, smecalculus.bezmen.construction.ConfigBeans, smecalculus.bezmen.construction.ValidationBeans], contextInitializerClasses = [], activeProfiles = [], propertySourceLocations = [], propertySourceProperties = ["bezmen.config.mapping.mode=lightbend_config"], contextCustomizers = [], contextLoader = org.springframework.test.context.support.DelegatingSmartContextLoader, parent = null]
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:143)
at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:127)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:141)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:97)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:241)
at org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:138)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:310)
at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735)
at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
at java.base/java.util.Optional.orElseGet(Optional.java:364)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'storageProps' defined in smecalculus.bezmen.construction.StorageConfigBeans: Failed to instantiate [smecalculus.bezmen.configuration.StorageProps]: Factory method 'storageProps' threw exception with message: mapping: must not be null, protocol: must not be null
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:654)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:642)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1332)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1162)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:560)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:973)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:942)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:608)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:221)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:110)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:212)
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:187)
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:119)
... 17 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [smecalculus.bezmen.configuration.StorageProps]: Factory method 'storageProps' threw exception with message: mapping: must not be null, protocol: must not be null
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:171)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:650)
... 34 more
Caused by: jakarta.validation.ConstraintViolationException: mapping: must not be null, protocol: must not be null
at smecalculus.bezmen.validation.EdgeValidatorHibernateValidator.validate(EdgeValidatorHibernateValidator.java:20)
at smecalculus.bezmen.construction.StorageConfigBeans.storageProps(StorageConfigBeans.java:29)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:139)
... 35 more
Loading