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

Upgrade to graphql-spqr-spring-boot-starter:0.0.5+ and spring-boot v2.7.x fails with invalid schema issue #129

Open
jonbullock opened this issue Mar 9, 2023 · 1 comment

Comments

@jonbullock
Copy link

I've upgraded a project from graphql-spqr-spring-boot-starter:0.0.4 and spring-boot v2.6.2 to graphql-spqr-spring-boot-starter:0.0.5+ and spring-boot v2.7.9 and I get the following when starting the project before a stacktrace is thrown (with the same validation error) causing the project to fail to start shortly after:

2023-03-09 14:59:23.977  WARN 59531 --- [  restartedMain] i.l.g.m.s.q.AnnotatedArgumentBuilder     : No explicit argument name given and the parameter name lost in compilation: public boolean java.time.zone.ZoneRules.isValidOffset(java.time.LocalDateTime,java.time.ZoneOffset)#java.time.LocalDateTime arg0. For details and possible solutions see https://github.com/leangen/graphql-spqr/wiki/Errors#missing-argument-name
2023-03-09 14:59:23.977  WARN 59531 --- [  restartedMain] i.l.g.m.s.q.AnnotatedArgumentBuilder     : No explicit argument name given and the parameter name lost in compilation: public boolean java.time.zone.ZoneRules.isValidOffset(java.time.LocalDateTime,java.time.ZoneOffset)#java.time.ZoneOffset arg1. For details and possible solutions see https://github.com/leangen/graphql-spqr/wiki/Errors#missing-argument-name
2023-03-09 14:59:23.978  WARN 59531 --- [  restartedMain] i.l.g.m.s.q.AnnotatedArgumentBuilder     : No explicit argument name given and the parameter name lost in compilation: public boolean java.time.zone.ZoneRules.isDaylightSavings(java.time.Instant)#java.time.Instant arg0. For details and possible solutions see https://github.com/leangen/graphql-spqr/wiki/Errors#missing-argument-name
2023-03-09 14:59:23.982  WARN 59531 --- [  restartedMain] i.l.g.m.s.q.AnnotatedArgumentBuilder     : No explicit argument name given and the parameter name lost in compilation: public boolean java.time.ZoneOffset.isSupported(java.time.temporal.TemporalField)#java.time.temporal.TemporalField arg0. For details and possible solutions see https://github.com/leangen/graphql-spqr/wiki/Errors#missing-argument-name
2023-03-09 14:59:24.000  WARN 59531 --- [  restartedMain] i.l.g.m.s.q.AnnotatedArgumentBuilder     : No explicit argument name given and the parameter name lost in compilation: public boolean java.time.zone.ZoneOffsetTransition.isValidOffset(java.time.ZoneOffset)#java.time.ZoneOffset arg0. For details and possible solutions see https://github.com/leangen/graphql-spqr/wiki/Errors#missing-argument-name
2023-03-09 14:59:24.095  WARN 59531 --- [  restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'graphQLSchema' defined in class path resource [io/leangen/graphql/spqr/spring/autoconfigure/BaseAutoConfiguration.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 graphql.schema.validation.InvalidSchemaException: invalid schema:
"TemporalFieldInput" must define one or more fields.

Similar error to #126

Can anybody give me a pointer as to what I'm doing wrong or missing?

@lekhalingeshwar
Copy link

I'm facing the same issue with spqr starter 1.0,1 and spring-boot 3.2.1

@kaqqao Could you provide any pointer as what is missing or doing wrong?

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

2 participants