mraible commented on PR #104:
URL: 
https://github.com/apache/directory-scimple/pull/104#issuecomment-1262192451

   When I check out this branch and run `mvn install` from the top-level, I get 
an error:
   
   ```
   2022-09-29T13:14:34.401+01:00  WARN 81083 --- [           main] 
ConfigServletWebServerApplicationContext : Exception encountered during context 
initialization - cancelling refresh attempt: 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'inMemoryGroupService' defined in file 
[/Users/mraible/dev/directory-scimple/support/spring-boot/target/test-classes/org/apache/directory/scim/spring/it/app/InMemoryGroupService.class]:
 Unsatisfied dependency expressed through constructor parameter 0: No 
qualifying bean of type 'org.apache.directory.scim.core.schema.SchemaRegistry' 
available: expected at least 1 bean which qualifies as autowire candidate. 
Dependency annotations: {}
   2022-09-29T13:14:34.401+01:00  INFO 81083 --- [           main] 
o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
   2022-09-29T13:14:34.403+01:00  INFO 81083 --- [           main] 
ConditionEvaluationReportLoggingListener :
   
   Error starting ApplicationContext. To display the conditions report re-run 
your application with 'debug' enabled.
   2022-09-29T13:14:34.405+01:00 ERROR 81083 --- [           main] 
o.s.b.d.LoggingFailureAnalysisReporter   :
   
   ***************************
   APPLICATION FAILED TO START
   ***************************
   
   Description:
   
   Parameter 0 of constructor in 
org.apache.directory.scim.spring.it.app.InMemoryGroupService required a bean of 
type 'org.apache.directory.scim.core.schema.SchemaRegistry' that could not be 
found.
   
   
   Action:
   
   Consider defining a bean of type 
'org.apache.directory.scim.core.schema.SchemaRegistry' in your configuration.
   
   [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
0.097 s <<< FAILURE! - in org.apache.directory.scim.compliance.tests.UsersIT
   [ERROR] org.apache.directory.scim.compliance.tests.UsersIT  Time elapsed: 
0.097 s  <<< ERROR!
   org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'inMemoryGroupService' defined in file 
[/Users/mraible/dev/directory-scimple/support/spring-boot/target/test-classes/org/apache/directory/scim/spring/it/app/InMemoryGroupService.class]:
 Unsatisfied dependency expressed through constructor parameter 0: No 
qualifying bean of type 'org.apache.directory.scim.core.schema.SchemaRegistry' 
available: expected at least 1 bean which qualifies as autowire candidate. 
Dependency annotations: {}
        at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:774)
        at 
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:227)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1344)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1188)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:561)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:521)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:931)
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:926)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:592)
        at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:751)
        at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:442)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:314)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1323)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1312)
        at 
org.apache.directory.scim.spring.it.app.SpringScimServer.start(SpringScimServer.java:34)
        at 
org.apache.directory.scim.compliance.junit.EmbeddedServerExtension.beforeAll(EmbeddedServerExtension.java:50)
        at 
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeBeforeAllCallbacks$12(ClassBasedTestDescriptor.java:395)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
        at 
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeBeforeAllCallbacks(ClassBasedTestDescriptor.java:395)
        at 
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:211)
        at 
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:84)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:148)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
        at 
org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at 
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
        at 
org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
        at 
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
        at 
org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
        at 
org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:147)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:127)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:90)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:55)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:102)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:54)
        at 
org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
        at 
org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
        at 
org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
        at 
org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:55)
        at 
org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:223)
        at 
org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:175)
        at 
org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:139)
        at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:456)
        at 
org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:169)
        at 
org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:595)
        at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:581)
        Suppressed: java.lang.NullPointerException: Cannot invoke 
"org.springframework.context.ConfigurableApplicationContext.stop()" because 
"this.context" is null
                at 
org.apache.directory.scim.spring.it.app.SpringScimServer.shutdown(SpringScimServer.java:43)
                at 
org.apache.directory.scim.compliance.junit.EmbeddedServerExtension.afterAll(EmbeddedServerExtension.java:72)
                at 
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeAfterAllCallbacks$18(ClassBasedTestDescriptor.java:461)
                at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
                at 
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeAfterAllCallbacks$19(ClassBasedTestDescriptor.java:461)
                at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
                at 
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeAfterAllCallbacks(ClassBasedTestDescriptor.java:461)
                at 
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.after(ClassBasedTestDescriptor.java:235)
                at 
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.after(ClassBasedTestDescriptor.java:84)
                at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:161)
                at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
                at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:161)
                ... 35 more
   Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: 
No qualifying bean of type 
'org.apache.directory.scim.core.schema.SchemaRegistry' available: expected at 
least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1782)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1341)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1295)
        at 
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:861)
        at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:765)
        ... 63 more
   
   [INFO]
   [INFO] Results:
   [INFO]
   [ERROR] Errors:
   [ERROR]   GroupsIT » UnsatisfiedDependency Error creating bean with name 
'inMemoryGroupService' defined in file 
[/Users/mraible/dev/directory-scimple/support/spring-boot/target/test-classes/org/apache/directory/scim/spring/it/app/InMemoryGroupService.class]:
 Unsatisfied dependency expressed through constructor parameter 0: No 
qualifying bean of type 'org.apache.directory.scim.core.schema.SchemaRegistry' 
available: expected at least 1 bean which qualifies as autowire candidate. 
Dependency annotations: {}
   [ERROR]   ResourceTypesIT » UnsatisfiedDependency Error creating bean with 
name 'inMemoryGroupService' defined in file 
[/Users/mraible/dev/directory-scimple/support/spring-boot/target/test-classes/org/apache/directory/scim/spring/it/app/InMemoryGroupService.class]:
 Unsatisfied dependency expressed through constructor parameter 0: No 
qualifying bean of type 'org.apache.directory.scim.core.schema.SchemaRegistry' 
available: expected at least 1 bean which qualifies as autowire candidate. 
Dependency annotations: {}
   [ERROR]   SchemasIT » UnsatisfiedDependency Error creating bean with name 
'inMemoryGroupService' defined in file 
[/Users/mraible/dev/directory-scimple/support/spring-boot/target/test-classes/org/apache/directory/scim/spring/it/app/InMemoryGroupService.class]:
 Unsatisfied dependency expressed through constructor parameter 0: No 
qualifying bean of type 'org.apache.directory.scim.core.schema.SchemaRegistry' 
available: expected at least 1 bean which qualifies as autowire candidate. 
Dependency annotations: {}
   [ERROR]   ServiceProviderConfigIT » UnsatisfiedDependency Error creating 
bean with name 'inMemoryGroupService' defined in file 
[/Users/mraible/dev/directory-scimple/support/spring-boot/target/test-classes/org/apache/directory/scim/spring/it/app/InMemoryGroupService.class]:
 Unsatisfied dependency expressed through constructor parameter 0: No 
qualifying bean of type 'org.apache.directory.scim.core.schema.SchemaRegistry' 
available: expected at least 1 bean which qualifies as autowire candidate. 
Dependency annotations: {}
   [ERROR]   UsersIT » UnsatisfiedDependency Error creating bean with name 
'inMemoryGroupService' defined in file 
[/Users/mraible/dev/directory-scimple/support/spring-boot/target/test-classes/org/apache/directory/scim/spring/it/app/InMemoryGroupService.class]:
 Unsatisfied dependency expressed through constructor parameter 0: No 
qualifying bean of type 'org.apache.directory.scim.core.schema.SchemaRegistry' 
available: expected at least 1 bean which qualifies as autowire candidate. 
Dependency annotations: {}
   [INFO]
   [ERROR] Tests run: 5, Failures: 0, Errors: 5, Skipped: 0
   [INFO]
   [INFO]
   [INFO] --- tools-maven-plugin:1.4:verify-legal-files (verify-legal-files) @ 
scim-spring-boot-starter ---
   [INFO] Checking legal files in: scim-spring-boot-starter-1.0.0-SNAPSHOT.jar
   [INFO]
   [INFO] --- maven-failsafe-plugin:3.0.0-M7:verify (run-its) @ 
scim-spring-boot-starter ---
   [INFO] 
------------------------------------------------------------------------
   [INFO] Reactor Summary for SCIM - Parent 1.0.0-SNAPSHOT:
   [INFO]
   [INFO] SCIM - Parent ...................................... SUCCESS [  0.631 
s]
   [INFO] SCIM - Specification ............................... SUCCESS [  0.041 
s]
   [INFO] SCIM - Specification - Schema ...................... SUCCESS [  5.015 
s]
   [INFO] SCIM - Specification - Protocol .................... SUCCESS [  1.333 
s]
   [INFO] SCIM - Client ...................................... SUCCESS [  0.298 
s]
   [INFO] SCIM - Core ........................................ SUCCESS [  2.534 
s]
   [INFO] SCIM - Compliance Tests ............................ SUCCESS [  0.228 
s]
   [INFO] SCIM - Server ...................................... SUCCESS [  7.537 
s]
   [INFO] SCIM - Server - Examples - Memory .................. SUCCESS [  0.445 
s]
   [INFO] SCIM - Server - Examples - Jersey .................. SUCCESS [  0.782 
s]
   [INFO] SCIM - Tools ....................................... SUCCESS [  0.901 
s]
   [INFO] SCIM - Total Test Coverage ......................... SUCCESS [  0.710 
s]
   [INFO] SCIM - Support - Spring Boot Starter ............... FAILURE [  3.776 
s]
   [INFO] SCIM - Server - Examples - Spring Boot ............. SKIPPED
   [INFO] 
------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] 
------------------------------------------------------------------------
   [INFO] Total time:  24.834 s
   [INFO] Finished at: 2022-09-29T13:14:34+01:00
   [INFO] 
------------------------------------------------------------------------
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-failsafe-plugin:3.0.0-M7:verify (run-its) on 
project scim-spring-boot-starter:
   [ERROR]
   [ERROR] Please refer to 
/Users/mraible/dev/directory-scimple/support/spring-boot/target/failsafe-reports
 for the individual test results.
   [ERROR] Please refer to dump files (if any exist) [date].dump, 
[date]-jvmRun[N].dump and [date].dumpstream.
   [ERROR] -> [Help 1]
   [ERROR]
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR]
   [ERROR] For more information about the errors and possible solutions, please 
read the following articles:
   [ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
   [ERROR]
   [ERROR] After correcting the problems, you can resume the build with the 
command
   [ERROR]   mvn <args> -rf :scim-spring-boot-starter
   ```
   
   My Java version:
   
   ```
   $ java --version
   openjdk 17.0.4.1 2022-08-12
   OpenJDK Runtime Environment Temurin-17.0.4.1+1 (build 17.0.4.1+1)
   OpenJDK 64-Bit Server VM Temurin-17.0.4.1+1 (build 17.0.4.1+1, mixed mode)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to