【发布时间】:2019-05-16 16:24:06
【问题描述】:
我在尝试通过 Java Web App 获取连接时遇到以下错误。有人遇到过这个问题吗?
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":{"
代码:
Class.forName("org.apache.calcite.jdbc.Driver");
DriverManager.getConnection("jdbc:avatica:remote:url=XXXX ");
【问题讨论】:
-
请提供Minimal Complete and Verifiable example。我们可能需要更多关于您使用的库、java 版本等的详细信息。
-
Class.forName("org.apache.calcite.jdbc.Driver");尝试 { 连接连接 = DriverManager.getConnection("jdbc:avatica:remote:url=http:XXXX"); } catch (Exception e) { System.out.println(e.getMessage()); JDK 1.8 和 Web 应用在 JBOSS 上运行
标签: java jdbc druid apache-calcite