{"action":"created","issue":{"url":"https://api.github.com/repos/graphql-java/graphql-java/issues/1287","repository_url":"https://api.github.com/repos/graphql-java/graphql-java","labels_url":"https://api.github.com/repos/graphql-java/graphql-java/issues/1287/labels{/name}","comments_url":"https://api.github.com/repos/graphql-java/graphql-java/issues/1287/comments","events_url":"https://api.github.com/repos/graphql-java/graphql-java/issues/1287/events","html_url":"https://github.com/graphql-java/graphql-java/issues/1287","id":375541811,"node_id":"MDU6SXNzdWUzNzU1NDE4MTE=","number":1287,"title":"Version 11 exception with GraphQLTypeReference","user":{"login":"LarsKrogJensen","id":10598589,"node_id":"MDQ6VXNlcjEwNTk4NTg5","avatar_url":"https://avatars2.githubusercontent.com/u/10598589?v=4","gravatar_id":"","url":"https://api.github.com/users/LarsKrogJensen","html_url":"https://github.com/LarsKrogJensen","followers_url":"https://api.github.com/users/LarsKrogJensen/followers","following_url":"https://api.github.com/users/LarsKrogJensen/following{/other_user}","gists_url":"https://api.github.com/users/LarsKrogJensen/gists{/gist_id}","starred_url":"https://api.github.com/users/LarsKrogJensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LarsKrogJensen/subscriptions","organizations_url":"https://api.github.com/users/LarsKrogJensen/orgs","repos_url":"https://api.github.com/users/LarsKrogJensen/repos","events_url":"https://api.github.com/users/LarsKrogJensen/events{/privacy}","received_events_url":"https://api.github.com/users/LarsKrogJensen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-30T15:12:35Z","updated_at":"2018-10-31T22:53:28Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Upgrading a project from version 10 to 11 causes exception when GraphQLTypeReference are used:\r\n\r\n`java.lang.ClassCastException: class graphql.schema.GraphQLTypeReference cannot be cast to class graphql.schema.GraphQLUnmodifiedType (graphql.schema.GraphQLTypeReference and graphql.schema.GraphQLUnmodifiedType are in unnamed module of loader 'app')\r\n\tat graphql.schema.GraphQLTypeUtil.unwrapAll(GraphQLTypeUtil.java:169)\r\n\tat graphql.schema.GraphQLTypeUtil.isLeaf(GraphQLTypeUtil.java:122)\r\n\tat graphql.validation.rules.ScalarLeafs.checkField(ScalarLeafs.java:23)\r\n\tat graphql.validation.RulesVisitor.checkField(RulesVisitor.java:117)\r\n\tat graphql.validation.RulesVisitor.enter(RulesVisitor.java:71)\r\n\tat graphql.validation.LanguageTraversal.traverseImpl(LanguageTraversal.java:33)\r\n\tat graphql.validation.LanguageTraversal.traverseImpl(LanguageTraversal.java:38)\r\n\tat graphql.validation.LanguageTraversal.traverseImpl(LanguageTraversal.java:38)\r\n\tat graphql.validation.LanguageTraversal.traverseImpl(LanguageTraversal.java:38)\r\n\tat graphql.validation.LanguageTraversal.traverseImpl(LanguageTraversal.java:38)\r\n\tat graphql.validation.LanguageTraversal.traverseImpl(LanguageTraversal.java:38)\r\n\tat graphql.validation.LanguageTraversal.traverse(LanguageTraversal.java:28)\r\n\tat graphql.validation.Validator.validateDocument(Validator.java:42)\r\n\tat graphql.GraphQL.validate(GraphQL.java:558)\r\n\tat graphql.GraphQL.parseAndValidate(GraphQL.java:528)\r\n       ....\r\n`\r\n\r\nAlso the introspection query that GraphiQL is sending is causing exceptions, that also seems related to the type reference\r\n`16:02:53.647 [vert.x-eventloop-thread-2] WARN  g.e.SimpleDataFetcherExceptionHandler - Exception while fetching data (/__schema/types[13]/fields[1]/type/ofType/kind) : Internal error: should never happen: Unknown kind of type: graphql.schema.GraphQLTypeReference@9c62d8e\r\ngraphql.AssertException: Internal error: should never happen: Unknown kind of type: graphql.schema.GraphQLTypeReference@9c62d8e\r\n\tat graphql.Assert.assertShouldNeverHappen(Assert.java:26)\r\n\tat graphql.introspection.Introspection.lambda$static$0(Introspection.java:90)\r\n\tat graphql.execution.ExecutionStrategy.fetchField(ExecutionStrategy.java:261)\r\n\tat graphql.execution.ExecutionStrategy.resolveFieldWithInfo(ExecutionStrategy.java:202)\r\n\tat graphql.execution.AsyncExecutionStrategy.execute(AsyncExecutionStrategy.java:70)\r\n        ...\r\n`"},"comment":{"url":"https://api.github.com/repos/graphql-java/graphql-java/issues/comments/434874950","html_url":"https://github.com/graphql-java/graphql-java/issues/1287#issuecomment-434874950","issue_url":"https://api.github.com/repos/graphql-java/graphql-java/issues/1287","id":434874950,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDg3NDk1MA==","user":{"login":"andimarek","id":1706744,"node_id":"MDQ6VXNlcjE3MDY3NDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1706744?v=4","gravatar_id":"","url":"https://api.github.com/users/andimarek","html_url":"https://github.com/andimarek","followers_url":"https://api.github.com/users/andimarek/followers","following_url":"https://api.github.com/users/andimarek/following{/other_user}","gists_url":"https://api.github.com/users/andimarek/gists{/gist_id}","starred_url":"https://api.github.com/users/andimarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andimarek/subscriptions","organizations_url":"https://api.github.com/users/andimarek/orgs","repos_url":"https://api.github.com/users/andimarek/repos","events_url":"https://api.github.com/users/andimarek/events{/privacy}","received_events_url":"https://api.github.com/users/andimarek/received_events","type":"User","site_admin":false},"created_at":"2018-10-31T22:53:28Z","updated_at":"2018-10-31T22:53:28Z","author_association":"MEMBER","body":"@LarsKrogJensen I initially read it as a Java 11 problem. But you mean you updated from graphql-java 10 to 11, right?\r\nWhich java version are you using?\r\nthanks"}}
{"actor":{"display_login":"andimarek"}}