Sirius web start error [message #1848695] |
Tue, 14 December 2021 09:25  |
Michael C Messages: 53 Registered: April 2019 |
Member |
|
|
Hello, I'm trying to launch the last Sirius web sample application.
I have this error related to GraphQL at start up.
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webSocketConfiguration' defined in URL [jar:file:/C:/Users/Michael/.m2/repository/org/eclipse/sirius/web/sirius-web-spring-graphql/2021.12.3/sirius-web-spring-graphql-2021.12.3.jar!/org/eclipse/sirius/web/spring/graphql/configuration/WebSocketConfiguration.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'graphQL' defined in class path resource [org/eclipse/sirius/web/graphql/configuration/GraphQLConfiguration.class]: Unsatisfied dependency expressed through method 'graphQL' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'graphQLSchema' defined in class path resource [org/eclipse/sirius/web/graphql/configuration/GraphQLConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [graphql.schema.GraphQLSchema]: Factory method 'graphQLSchema' threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
QueryDataFetcher cannot be resolved to a type
The method getAnnotation(Class<A>) in the type Class<capture#1-of ? extends IDataFetcherWithFieldCoordinates> is not applicable for the arguments (Class<QueryDataFetcher>)
QueryDataFetcher cannot be resolved to a type
MutationDataFetcher cannot be resolved to a type
The method getAnnotation(Class<A>) in the type Class<capture#2-of ? extends IDataFetcherWithFieldCoordinates> is not applicable for the arguments (Class<MutationDataFetcher>)
MutationDataFetcher cannot be resolved to a type
SubscriptionDataFetcher cannot be resolved to a type
The method getAnnotation(Class<A>) in the type Class<capture#3-of ? extends IDataFetcherWithFieldCoordinates> is not applicable for the arguments (Class<SubscriptionDataFetcher>)
SubscriptionDataFetcher cannot be resolved to a type
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-5.3.13.jar:5.3.13]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.13.jar:5.3.13]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) ~[spring-boot-2.6.1.jar:2.6.1]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:730) ~[spring-boot-2.6.1.jar:2.6.1]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412) ~[spring-boot-2.6.1.jar:2.6.1]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:302) ~[spring-boot-2.6.1.jar:2.6.1]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) ~[spring-boot-2.6.1.jar:2.6.1]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1290) ~[spring-boot-2.6.1.jar:2.6.1]
at org.eclipse.sirius.web.sample.SampleApplication.main(SampleApplication.java:46) ~[classes/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) ~[spring-boot-devtools-2.6.1.jar:2.6.1]
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'graphQL' defined in class path resource [org/eclipse/sirius/web/graphql/configuration/GraphQLConfiguration.class]: Unsatisfied dependency expressed through method 'graphQL' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'graphQLSchema' defined in class path resource [org/eclipse/sirius/web/graphql/configuration/GraphQLConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [graphql.schema.GraphQLSchema]: Factory method 'graphQLSchema' threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
QueryDataFetcher cannot be resolved to a type
The method getAnnotation(Class<A>) in the type Class<capture#1-of ? extends IDataFetcherWithFieldCoordinates> is not applicable for the arguments (Class<QueryDataFetcher>)
QueryDataFetcher cannot be resolved to a type
MutationDataFetcher cannot be resolved to a type
The method getAnnotation(Class<A>) in the type Class<capture#2-of ? extends IDataFetcherWithFieldCoordinates> is not applicable for the arguments (Class<MutationDataFetcher>)
MutationDataFetcher cannot be resolved to a type
SubscriptionDataFetcher cannot be resolved to a type
The method getAnnotation(Class<A>) in the type Class<capture#3-of ? extends IDataFetcherWithFieldCoordinates> is not applicable for the arguments (Class<SubscriptionDataFetcher>)
SubscriptionDataFetcher cannot be resolved to a type
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:541) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) ~[spring-beans-5.3.13.jar:5.3.13]
... 24 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'graphQLSchema' defined in class path resource [org/eclipse/sirius/web/graphql/configuration/GraphQLConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [graphql.schema.GraphQLSchema]: Factory method 'graphQLSchema' threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
QueryDataFetcher cannot be resolved to a type
The method getAnnotation(Class<A>) in the type Class<capture#1-of ? extends IDataFetcherWithFieldCoordinates> is not applicable for the arguments (Class<QueryDataFetcher>)
QueryDataFetcher cannot be resolved to a type
MutationDataFetcher cannot be resolved to a type
The method getAnnotation(Class<A>) in the type Class<capture#2-of ? extends IDataFetcherWithFieldCoordinates> is not applicable for the arguments (Class<MutationDataFetcher>)
MutationDataFetcher cannot be resolved to a type
SubscriptionDataFetcher cannot be resolved to a type
The method getAnnotation(Class<A>) in the type Class<capture#3-of ? extends IDataFetcherWithFieldCoordinates> is not applicable for the arguments (Class<SubscriptionDataFetcher>)
SubscriptionDataFetcher cannot be resolved to a type
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) ~[spring-beans-5.3.13.jar:5.3.13]
... 38 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [graphql.schema.GraphQLSchema]: Factory method 'graphQLSchema' threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
QueryDataFetcher cannot be resolved to a type
The method getAnnotation(Class<A>) in the type Class<capture#1-of ? extends IDataFetcherWithFieldCoordinates> is not applicable for the arguments (Class<QueryDataFetcher>)
QueryDataFetcher cannot be resolved to a type
MutationDataFetcher cannot be resolved to a type
The method getAnnotation(Class<A>) in the type Class<capture#2-of ? extends IDataFetcherWithFieldCoordinates> is not applicable for the arguments (Class<MutationDataFetcher>)
MutationDataFetcher cannot be resolved to a type
SubscriptionDataFetcher cannot be resolved to a type
The method getAnnotation(Class<A>) in the type Class<capture#3-of ? extends IDataFetcherWithFieldCoordinates> is not applicable for the arguments (Class<SubscriptionDataFetcher>)
SubscriptionDataFetcher cannot be resolved to a type
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.3.13.jar:5.3.13]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ~[spring-beans-5.3.13.jar:5.3.13]
... 52 common frames omitted
Caused by: java.lang.Error: Unresolved compilation problems:
QueryDataFetcher cannot be resolved to a type
The method getAnnotation(Class<A>) in the type Class<capture#1-of ? extends IDataFetcherWithFieldCoordinates> is not applicable for the arguments (Class<QueryDataFetcher>)
QueryDataFetcher cannot be resolved to a type
MutationDataFetcher cannot be resolved to a type
The method getAnnotation(Class<A>) in the type Class<capture#2-of ? extends IDataFetcherWithFieldCoordinates> is not applicable for the arguments (Class<MutationDataFetcher>)
MutationDataFetcher cannot be resolved to a type
SubscriptionDataFetcher cannot be resolved to a type
The method getAnnotation(Class<A>) in the type Class<capture#3-of ? extends IDataFetcherWithFieldCoordinates> is not applicable for the arguments (Class<SubscriptionDataFetcher>)
SubscriptionDataFetcher cannot be resolved to a type
at org.eclipse.sirius.web.spring.graphql.api.IDataFetcherWithFieldCoordinates.getFieldCoordinates(IDataFetcherWithFieldCoordinates.java:45) ~[sirius-web-spring-graphql-api-2021.12.3.jar:2021.12.3]
at org.eclipse.sirius.web.graphql.configuration.GraphQLConfiguration.lambda$0(GraphQLConfiguration.java:90) ~[classes/:na]
at java.base/java.util.ArrayList.forEach(ArrayList.java:1540) ~[na:na]
at org.eclipse.sirius.web.graphql.configuration.GraphQLConfiguration.graphQLSchema(GraphQLConfiguration.java:89) ~[classes/:na]
at org.eclipse.sirius.web.graphql.configuration.GraphQLConfiguration$$EnhancerBySpringCGLIB$$c331de5d.CGLIB$graphQLSchema$1(<generated>) ~[classes/:na]
at org.eclipse.sirius.web.graphql.configuration.GraphQLConfiguration$$EnhancerBySpringCGLIB$$c331de5d$$FastClassBySpringCGLIB$$a1dc6501.invoke(<generated>) ~[classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.3.13.jar:5.3.13]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) ~[spring-context-5.3.13.jar:5.3.13]
at org.eclipse.sirius.web.graphql.configuration.GraphQLConfiguration$$EnhancerBySpringCGLIB$$c331de5d.graphQLSchema(<generated>) ~[classes/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.13.jar:5.3.13]
... 53 common frames omitted
It crashes at this point in the method getFieldCoordinates of the interface IDataFetcherWithFieldCoordinates
QueryDataFetcher queryDataFetcher = this.getClass().getAnnotation(QueryDataFetcher.class);
I'm not sure how to resolve this.
Best regards.
[Updated on: Tue, 14 December 2021 09:29] Report message to a moderator
|
|
|
Re: Sirius web start error [message #1848738 is a reply to message #1848695] |
Wed, 15 December 2021 16:29   |
|
Hi.
I've never seen this kind of stack. How do you launch your application? From a JAR built on the command-line? From inside an IDE?
It looks like your version of Sirius Web uses Sirius Components 2021.12.3, so I assume you are using the current master. Any local changes?
Regards,
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.02210 seconds