Replies: 3 comments 1 reply
-
Additional info: The response looks like this: { |
Beta Was this translation helpful? Give feedback.
0 replies
-
The java.lang.ClassCastException is thrown because of the field: With Maybe null is a non-valid value per the GraphQL specification? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@jmartisk ^^^ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It all worked perfect before the upgrade but after the upgrade I receive this error:
"Exception occurred in target VM: class jakarta.json.JsonValueImpl cannot be cast to class jakarta.json.JsonObject"
java.lang.ClassCastException:
class jakarta.json.JsonValueImpl cannot be cast to class jakarta.json.JsonObject
(jakarta.json.JsonValueImpl and jakarta.json.JsonObject are in unnamed module of loader 'app')
at org.eclipse.parsson.JsonObjectBuilderImpl$JsonObjectImpl.getJsonObject(JsonObjectBuilderImpl.java:234)
at io.smallrye.graphql.client.impl.ResponseReader.readFrom(ResponseReader.java:99)
at io.smallrye.graphql.client.vertx.dynamic.VertxDynamicGraphQLClient.lambda$executeSingleResultOperationOverHttp$10(VertxDynamicGraphQLClient.java:451)
at io.smallrye.context.impl.wrappers.SlowContextualFunction.apply(SlowContextualFunction.java:21)
at io.smallrye.mutiny.operators.uni.UniOnItemTransform$UniOnItemTransformProcessor.onItem(UniOnItemTransform.java:36)
at io.smallrye.mutiny.operators.uni.builders.UniCreateFromCompletionStage$CompletionStageUniSubscription.forwardResult(UniCreateFromCompletionStage.java:63)
at io.smallrye.context.impl.wrappers.SlowContextualBiConsumer.accept(SlowContextualBiConsumer.java:21)
........
I get the error when I execute this code:
var response = client.executeSync(query, variables);
where query is a String, and variables is of type Map<String,Object>
Beta Was this translation helpful? Give feedback.
All reactions