GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Upgrading to graphql-java-tools-12.1.0 + causing issue · graphql-java-kickstart/graphql-java-tools · Discussion #725

Upgrading to graphql-java-tools-12.1.0 + causing issue #725

Unanswered
anbusampath asked this question in Q&A
Upgrading to graphql-java-tools-12.1.0 + causing issue #725
@anbusampath anbusampath
Dec 6, 2022 · 3 comments · 3 replies
Return to top
Discussion options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

anbusampath
Dec 6, 2022

Upgrading graphql-spring-boot to 14.0.0 end up SchemaError: Expected type 'FieldSet' . is there workaround to fix this issue

graphql-java-tools-12.1.0

Caused by: graphql.kickstart.tools.SchemaClassScannerError: Expected a user-defined GraphQL scalar type with name 'FieldSet' but found none!
	at graphql.kickstart.tools.SchemaClassScanner.validateAndCreateResult(SchemaClassScanner.kt:170) ~[graphql-java-tools-12.1.0.jar:na]
	at graphql.kickstart.tools.SchemaClassScanner.scanForClasses(SchemaClassScanner.kt:106) ~[graphql-java-tools-12.1.0.jar:na]
	at graphql.kickstart.tools.SchemaParserBuilder.scan(SchemaParserBuilder.kt:156) ~[graphql-java-tools-12.1.0.jar:na]
	at graphql.kickstart.tools.SchemaParserBuilder.build(SchemaParserBuilder.kt:200) ~[graphql-java-tools-12.1.0.jar:na]
	at graphql.kickstart.autoconfigure.tools.GraphQLJavaToolsAutoConfiguration.schemaParser(GraphQLJavaToolsAutoConfiguration.java:129) 

graphql-java-tools-13.0.2

Caused by: graphql.kickstart.tools.SchemaError: Expected type 'FieldSet' to be a GraphQLInputType, but it wasn't!  Was a type only permitted for object types incorrectly used as an input type, or vice-versa?
	at graphql.kickstart.tools.SchemaParser.determineType(SchemaParser.kt:379) ~[graphql-java-tools-13.0.2.jar:na]
	at graphql.kickstart.tools.SchemaParser.determineInputType(SchemaParser.kt:397) ~[graphql-java-tools-13.0.2.jar:na]
	at graphql.kickstart.tools.SchemaParser.determineInputType(SchemaParser.kt:389) ~[graphql-java-tools-13.0.2.jar:na]
	at graphql.kickstart.tools.SchemaParser.createArgument(SchemaParser.kt:302) ~[graphql-java-tools-13.0.2.jar:na]
	at graphql.kickstart.tools.SchemaParser.createDirective(SchemaParser.kt:322) ~[graphql-java-tools-13.0.2.jar:na]
	at graphql.kickstart.tools.SchemaParser.parseSchemaObjects(SchemaParser.kt:84) ~[graphql-java-tools-13.0.2.jar:na]
	at graphql.kickstart.tools.SchemaParser.makeExecutableSchema(SchemaParser.kt:111) ~[graphql-java-tools-13.0.2.jar:na]

You must be logged in to vote
All reactions

Replies: 3 comments · 3 replies

Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

anbusampath
Jan 2, 2023
Author

Looks similar to #664

You must be logged in to vote
All reactions
0 replies
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

anbusampath
Jan 3, 2023
Author

#727

You must be logged in to vote
All reactions
0 replies
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

agarcia-narvar
Feb 9, 2023

I'm seeing the same error when I add the federation-graphql-java-support dependency from com.apollographql.federation. Any updates on this? @anbusampath

Caused by: graphql.kickstart.tools.SchemaError: Expected type 'FieldSet' to be a GraphQLInputType, but it wasn't!  Was a type only permitted for object types incorrectly used as an input type, or vice-versa?
	at graphql.kickstart.tools.SchemaParser.determineType(SchemaParser.kt:379)
	at graphql.kickstart.tools.SchemaParser.determineInputType(SchemaParser.kt:397)
	at graphql.kickstart.tools.SchemaParser.determineInputType(SchemaParser.kt:389)
	at graphql.kickstart.tools.SchemaParser.createArgument(SchemaParser.kt:302)
	at graphql.kickstart.tools.SchemaParser.createDirective(SchemaParser.kt:322)
	at graphql.kickstart.tools.SchemaParser.parseSchemaObjects(SchemaParser.kt:84)
	at graphql.kickstart.tools.SchemaParser.makeExecutableSchema(SchemaParser.kt:111)

Versions:
graphql-java-tools: 13.0.2
federation-graphql-java-support: 2.3.0
com.graphql-java-kickstart: 14.1.0
com.graphql-java: 19.2

You must be logged in to vote
All reactions
  • 👀 1
3 replies
@anbusampath
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

anbusampath Feb 13, 2023
Author

@agarcia-narvar No luck. I did not get any workout. we have to wait for this issue getting fixed. #664

All reactions
@agarcia-narvar
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

agarcia-narvar Feb 13, 2023

Thanks, I opened a similar issue with my specific error case: #734.

All reactions
  • 👍 1
@AllanNobre
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

AllanNobre Jun 30, 2023

I'm facing the same problem here, trying to execute this example: https://github.com/setchy/graphql-java-kickstart-federation-example (In "Show" project)

Versions:
spring: 2.7.13
federation-graphql-java-support: 2.3.1
com.graphql-java-kickstart: 14.1.0

Caused by: graphql.kickstart.tools.SchemaError: Expected type 'FieldSet' to be a GraphQLInputType, but it wasn't!  Was a type only permitted for object types incorrectly used as an input type, or vice-versa?
	at graphql.kickstart.tools.SchemaParser.determineType(SchemaParser.kt:379) ~[graphql-java-tools-13.0.2.jar:na]
	at graphql.kickstart.tools.SchemaParser.determineInputType(SchemaParser.kt:397) ~[graphql-java-tools-13.0.2.jar:na]
	at graphql.kickstart.tools.SchemaParser.determineInputType(SchemaParser.kt:389) ~[graphql-java-tools-13.0.2.jar:na]
	at graphql.kickstart.tools.SchemaParser.createArgument(SchemaParser.kt:302) ~[graphql-java-tools-13.0.2.jar:na]
	at graphql.kickstart.tools.SchemaParser.createDirective(SchemaParser.kt:322) ~[graphql-java-tools-13.0.2.jar:na]
	at graphql.kickstart.tools.SchemaParser.parseSchemaObjects(SchemaParser.kt:84) ~[graphql-java-tools-13.0.2.jar:na]
	at graphql.kickstart.tools.SchemaParser.makeExecutableSchema(SchemaParser.kt:111) ~[graphql-java-tools-13.0.2.jar:na]
	at com.example.demo.federation.FederatedSchema.customSchema(FederatedSchema.java:28) ~[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.28.jar:5.3.28]
	... 124 common frames omitted
All reactions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
3 participants
@anbusampath @AllanNobre @agarcia-narvar
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.