Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newest version of graphql-java (Version 22) incompatibility #971

Closed
cepoiubogdan-query-labs opened this issue May 17, 2024 · 3 comments
Closed

Comments

@cepoiubogdan-query-labs

Is the current version of spring-graphql compatible with the qraphql-java (Version22)? after the upgrade to the latest version i receive the following error:
Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

org.springframework.graphql.data.pagination.ConnectionFieldTypeVisitor.visitGraphQLFieldDefinition(ConnectionFieldTypeVisitor.java:88)

The following method did not exist:

'graphql.schema.DataFetcher graphql.schema.GraphQLCodeRegistry$Builder.getDataFetcher(graphql.schema.GraphQLFieldsContainer, graphql.schema.GraphQLFieldDefinition)'

The calling method's class, org.springframework.graphql.data.pagination.ConnectionFieldTypeVisitor, was loaded from the following location:

jar:filepath_to_file/.m2/repository/org/springframework/graphql/spring-graphql/1.2.6/spring-graphql-1.2.6.jar!/org/springframework/graphql/data/pagination/ConnectionFieldTypeVisitor.class

The called method's class, graphql.schema.GraphQLCodeRegistry$Builder, is available from the following locations:

jar:file:path_to_file/.m2/repository/com/graphql-java/graphql-java/22.0/graphql-java-22.0.jar!/graphql/schema/GraphQLCodeRegistry$Builder.class

The called method's class hierarchy was loaded from the following locations:

graphql.schema.GraphQLCodeRegistry.Builder: file:path_to_file/.m2/repository/com/graphql-java/graphql-java/22.0/graphql-java-22.0.jar

Action:

Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.graphql.data.pagination.ConnectionFieldTypeVisitor and graphql.schema.GraphQLCodeRegistry$Builder

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 17, 2024
@bclozel
Copy link
Member

bclozel commented May 17, 2024

The current 1.2.x generation is not compatible with GraphQL Java 22. We don't usually support forward compatibility, especially for breaking changes. Spring for GraphQL 1.3.0 supports 22.x and will be released next week. Would upgrading to 1.3.0 work for you?

@bclozel bclozel added the status: waiting-for-feedback We need additional information before we can continue label May 17, 2024
@cepoiubogdan-query-labs
Copy link
Author

Hello! I think so, yes!

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels May 17, 2024
@rstoyanchev
Copy link
Contributor

I'm closing this as there is nothing further to do. Note that the specific issue above is actually due to a GraphQL Java 21 compatibility issue, which is now fixed in #974. For GraphQL Java 22, you need Spring for GraphQL 1.3 still.

@rstoyanchev rstoyanchev closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
@rstoyanchev rstoyanchev removed status: feedback-provided Feedback has been provided status: waiting-for-triage An issue we've not yet triaged labels May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants