Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Cannot load class graphQLServletRegistrationBean and serverEndpointExporter #219

@jonathanlermitage

Description

@jonathanlermitage
  • Spring Boot 2.1.3.RELEASE
  • JDK8 or 11
  • graphql-spring-boot-starter 5.7.0

Application starts, I can query GraphQL endpoints, but I get the following error message at startup

2019-03-18 17:15:15,435 [main] ERROR c.o.m.g.b.e.GraphQLErrorHandlerFactory.scanForExceptionHandlers L.47 [] Cannot load class scopedTarget.reader. Error creating bean with name 'scopedTarget.reader': Scope 'step' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No context holder available for step scope
2019-03-18 17:15:15,437 [main] ERROR c.o.m.g.b.e.GraphQLErrorHandlerFactory.scanForExceptionHandlers L.47 [] Cannot load class scopedTarget.writer. Error creating bean with name 'scopedTarget.writer': Scope 'step' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No context holder available for step scope
2019-03-18 17:15:18,195 [main] ERROR c.o.m.g.b.e.GraphQLErrorHandlerFactory.scanForExceptionHandlers L.47 [] Cannot load class graphQLServletRegistrationBean. Error creating bean with name 'graphQLServletRegistrationBean': Requested bean is currently in creation: Is there an unresolvable circular reference?
2019-03-18 17:15:18,247 [main] ERROR c.o.m.g.b.e.GraphQLErrorHandlerFactory.scanForExceptionHandlers L.47 [] Cannot load class serverEndpointExporter. Error creating bean with name 'serverEndpointExporter' defined in class path resource [com/oembedler/moon/graphql/boot/GraphQLWebsocketAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: javax.websocket.server.ServerContainer not available

(please see attached file for full logs: sample.log)

This is not breaking my application, but I have to admit I am not able to explain these error messages.

Nota: I got no error message with graphql-spring-boot-starter 5.4: they appeared with version 5.4.1.

You can test my application here: https://github.com/jonathanlermitage/manon/tree/spring5-light-graphql (a demo project with some REST endpoints), see last commit for GraphQL code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions