Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7FC86200D66 for ; Fri, 29 Dec 2017 15:02:07 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7DDBF160C22; Fri, 29 Dec 2017 14:02:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C6161160C33 for ; Fri, 29 Dec 2017 15:02:06 +0100 (CET) Received: (qmail 75124 invoked by uid 500); 29 Dec 2017 14:02:05 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 75115 invoked by uid 99); 29 Dec 2017 14:02:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Dec 2017 14:02:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6083A1808CF for ; Fri, 29 Dec 2017 14:02:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Ue2i_BXfUytS for ; Fri, 29 Dec 2017 14:02:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 5F1675FB62 for ; Fri, 29 Dec 2017 14:02:04 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 647DFE25CB for ; Fri, 29 Dec 2017 14:02:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 76C952411F for ; Fri, 29 Dec 2017 14:02:00 +0000 (UTC) Date: Fri, 29 Dec 2017 14:02:00 +0000 (UTC) From: "Maxwell Pettit (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-7335) DatabaseMetaData getTables error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 29 Dec 2017 14:02:07 -0000 [ https://issues.apache.org/jira/browse/IGNITE-7335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16306298#comment-16306298 ] Maxwell Pettit commented on IGNITE-7335: ---------------------------------------- I've recreated the issue with a simple java application below. I am running an Ignite instance locally with no changes to configuration after creating with the following definition: CREATE TABLE TEST (TEST_ID INTEGER PRIMARY KEY, TEST_VAL INTEGER); My java application looks like this: public class App { public static void main(String[] args) { try { // Open JDBC connection BasicDataSource ds = new BasicDataSource(); ds.setDriverClassName("org.apache.ignite.IgniteJdbcThinDriver"); ds.setUrl("jdbc:ignite:thin://localhost"); Connection conn = ds.getConnection(); DatabaseMetaData meta = conn.getMetaData(); meta.getTables(null, null, "test", null); } catch (Exception e) { e.printStackTrace(); } } } > DatabaseMetaData getTables error > -------------------------------- > > Key: IGNITE-7335 > URL: https://issues.apache.org/jira/browse/IGNITE-7335 > Project: Ignite > Issue Type: Bug > Components: jdbc, sql > Affects Versions: 2.3 > Environment: Default ignite cluster with a table created via SQL from the JDBC driver > Reporter: Maxwell Pettit > Assignee: Taras Ledkov > Fix For: 2.4 > > > Exception when calling the java.sql.DatabaseMetaData.getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) method. Exception is listed below: > Caused by: java.sql.SQLException: Failed to communicate with Ignite cluster. > at org.apache.ignite.internal.jdbc.thin.JdbcThinConnection.sendRequest(JdbcThinConnection.java:681) > at org.apache.ignite.internal.jdbc.thin.JdbcThinDatabaseMetadata.getTables(JdbcThinDatabaseMetadata.java:740) > at org.apache.commons.dbcp.DelegatingDatabaseMetaData.getTables(DelegatingDatabaseMetaData.java:604) > ... 20 more > Caused by: java.io.IOException: Failed to read incoming message (not enough data). > at org.apache.ignite.internal.jdbc.thin.JdbcThinTcpIo.read(JdbcThinTcpIo.java:406) > at org.apache.ignite.internal.jdbc.thin.JdbcThinTcpIo.read(JdbcThinTcpIo.java:384) > at org.apache.ignite.internal.jdbc.thin.JdbcThinTcpIo.sendRequest(JdbcThinTcpIo.java:327) > at org.apache.ignite.internal.jdbc.thin.JdbcThinConnection.sendRequest(JdbcThinConnection.java:668) > ... 26 more -- This message was sent by Atlassian JIRA (v6.4.14#64029)