graphql-java-tools icon indicating copy to clipboard operation
graphql-java-tools copied to clipboard

More descriptive error message for SchemaParser exception?

Open khteh opened this issue 6 years ago • 1 comments

2019-02-25 14:34:38.455  WARN 20644 --- [           main] o.s.w.c.s.GenericWebApplicationContext   : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schemaParser' defined in class path resource [com/oembedler/moon/graphql/boot/GraphQLJavaToolsAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.coxautodev.graphql.tools.SchemaParser]: Factory method 'schemaParser' threw exception; nested exception is com.coxautodev.graphql.tools.InvalidSchemaError: Invalid schema provided (org.antlr.v4.runtime.InputMismatchException) at: [@248,1556:1556='[',<11>,87:12]

How to know what goes wrong here? Is it .graphqls files or .java files? I have many .graphqls files....

khteh avatar Feb 25 '19 06:02 khteh

Please do not open duplicate issues.

https://github.com/graphql-java-kickstart/graphql-java-tools/issues/227

vojtapol avatar Feb 04 '20 14:02 vojtapol