Avatica JDBC error on open connection

Hi,

I have the following erroe when using the JDBC Avatica driver, the connection is established, but apparently the json returned is not correct. Can anyone help?

Thank You

Caused by: com.fasterxml.jackson.databind.JsonMappingException: Class org.apache.calcite.avatica.remote.Service$ResultSetResponse not subtype of [simple type, class org.apache.calcite.avatica.remote.Service$RpcMetadataResponse]

at [Source: {“response”:“openConnection”,“rpcMetadata”:{“response”:“rpcMetadata”,“serverAddress”:“localhost:18082”}}

; line: 1, column: 13]

at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:305)

at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:268)

at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCacheValueDeserializer(DeserializerCache.java:244)

at com.fasterxml.jackson.databind.deser.DeserializerCache.findValueDeserializer(DeserializerCache.java:142)

at com.fasterxml.jackson.databind.DeserializationContext.findContextualValueDeserializer(DeserializationContext.java:443)

at com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._findDeserializer(TypeDeserializerBase.java:188)

at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:112)

at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:97)

at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:142)

at com.fasterxml.jackson.databind.deser.impl.TypeWrappedDeserializer.deserialize(TypeWrappedDeserializer.java:63)

at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3798)

at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2842)

at org.apache.calcite.avatica.remote.JsonService.decode(JsonService.java:53)

at org.apache.calcite.avatica.remote.JsonService.apply(JsonService.java:172)

… 44 more

Caused by: java.lang.IllegalArgumentException: Class org.apache.calcite.avatica.remote.Service$ResultSetResponse not subtype of [simple type, class org.apache.calcite.avatica.remote.Service$RpcMetadataResponse]

at com.fasterxml.jackson.databind.type.TypeFactory.constructSpecializedType(TypeFactory.java:359)

at com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder.buildTypeDeserializer(StdTypeResolverBuilder.java:128)

at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.findTypeDeserializer(BasicDeserializerFactory.java:1363)

at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.findPropertyTypeDeserializer(BasicDeserializerFactory.java:1498)

at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.resolveMemberAndTypeAnnotations(BasicDeserializerFactory.java:1847)

at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.constructCreatorProperty(BasicDeserializerFactory.java:844)

at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory._addDeserializerConstructors(BasicDeserializerFactory.java:427)

at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory._constructDefaultValueInstantiator(BasicDeserializerFactory.java:323)

at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.findValueInstantiator(BasicDeserializerFactory.java:253)

at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.buildBeanDeserializer(BeanDeserializerFactory.java:219)

at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.createBeanDeserializer(BeanDeserializerFactory.java:141)

at com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer2(DeserializerCache.java:403)

at com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer(DeserializerCache.java:349)

at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:264)

… 56 more

2017-10-12 05:18:39 ERROR DefaultGraphQLErrorHandler:42 - Error executing query (ExceptionWhileDataFetching): Exception while fetching data: com.fasterxml.jackson.databind.JsonMappingException: Class org.apache.calcite.avatica.remote.Service$ResultSetResponse not subtype of [simple type, class org.apache.calcite.avatica.remote.Service$RpcMetadataResponse]

at [Source: {“response”:“openConnection”,“rpcMetadata”:{“response”:“rpcMetadata”,“serverAddress”:“localhost:18082”}}

; line: 1, column: 13]

``