Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpiGC-0006Dj-NG for pgsql-jdbc@arkaria.postgresql.org; Wed, 06 Sep 2017 21:53:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dpiGB-0003T6-Q6 for pgsql-jdbc@arkaria.postgresql.org; Wed, 06 Sep 2017 21:53:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dpiFd-0001k2-Qx for pgsql-jdbc@postgresql.org; Wed, 06 Sep 2017 21:52:50 +0000 Received: from mail-ua0-x22c.google.com ([2607:f8b0:400c:c08::22c]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dpiFb-0006yL-AH for pgsql-jdbc@postgresql.org; Wed, 06 Sep 2017 21:52:48 +0000 Received: by mail-ua0-x22c.google.com with SMTP id s15so16117607uag.1 for ; Wed, 06 Sep 2017 14:52:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:in-reply-to:references:mime-version :content-transfer-encoding; bh=ENbH4V1Tcxei2J8E9PoVIiW49XGteH6EJSY4XsBO4QI=; b=fzXBl5ci5KDtrSleYuAdMXIpuP/gicll0rXX1D48ZszlCriVHrNbta1PGCdiWJC69d mEYGs5R3L8M+Jowj0ICqtTZbfvFKvshV+WqI3JklVpSzF3MKarMXH9CNDTEkwehsV5k1 ML4VgyAVMYHuQK1qnt1f7WxdGTkc/8V7KIKtqZ6Y2UT518x6dawSz81AA8neXbjgzdjM QVPAnjSHh2lYr72QoQOBO4puxCNyDSA7ENvhZyzKaavLP6CR/lYWR5b0rkzT1wxpEeRP 46o0oBFraJNSKMdmIsTJwzAZcMzBkzEWIyBUQqrGzkkEdRLb6bAI6nkO7RxUYybicWT9 rLcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=ENbH4V1Tcxei2J8E9PoVIiW49XGteH6EJSY4XsBO4QI=; b=Cm4UbwjG5jqZHRNPK9LmdEkjbQF65z47dS+2OgShMRlyxmjt+Ab+QbLc2foNCVnHlu qxtRN8FCTGRQexfpgKeTx0vN/SlrrAwoCZ+X5GJVbhixigUXsDH7SYFYcOrSWU7fBBtC amjHDYTi4n8A7YJ2RZxrBO31UYBBeVbPHWR0xkush73WbAk43avTCAWjsdIpfpLwSnfU oSVIKc1FhbtdPHUJ4C9uv8KTlt9HqkoWmrShFVVMAu6tQ9D9dC92POUlrcALm0FQg8S9 I+/aMV34E/3ks/02V1hYk99AvWxkY7bEboPEpmOxG5AZ0xfgq/fhlvHYvUtKmVPW9LnP SoAg== X-Gm-Message-State: AHPjjUjne6lT2hBjxFHxlli3Fz9cUo/FIU0AjRq5qOxEQqYypLpf0pHl efYlxIyB/q9jpQ== X-Google-Smtp-Source: ADKCNb73y1LlraIx0vuhHYdzlMkFUfKXGcUZUJTYqtm95a4zgWNu9xysjwjFNzSiDecQPkHDgZyjjg== X-Received: by 10.176.27.138 with SMTP id k10mr408657uai.27.1504734765968; Wed, 06 Sep 2017 14:52:45 -0700 (PDT) Received: from roblaptop ([2804:14d:baa0:8491:461e:a1ff:fe19:c7bd]) by smtp.gmail.com with ESMTPSA id h12sm236058uaa.17.2017.09.06.14.52.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Sep 2017 14:52:45 -0700 (PDT) Message-ID: <1504734762.23506.2.camel@gmail.com> Subject: Re: IllegalState Exception From: rob stone To: Yury Petukhou , pgsql-jdbc@postgresql.org Date: Thu, 07 Sep 2017 07:52:42 +1000 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On Wed, 2017-09-06 at 12:31 +0300, Yury Petukhou wrote: > Dear Sir/Madam, > > My name is Yury Petukhou. I have a question on jdbc usage.  > > In my application I use postgres-9.4.12.12 JDBC driver.  > > When I make an INSERT or SELECT request I get IllegalState Exception > with description  > "Received resultset tuples, but no field structure for them" > > What can be the reason? I have looked through FAQ and documentation > and found only description of the exception but not the reason. > > This exception is thrown occasionally not systematically, so it's not > an application logic error. Database is used by my application only. > > Thank you for reply. > > Best regards, > Yury Petukhou IllegalStateException is Throwable, so is this message "Received resultset tuples, but no field structure for them" the message or the cause? You can retrieve both via Throwable.getMessage() and Throwable.getCause(). This exception is usually caused by changing the data data type of a parameter mid-stream due to your prepared statement expecting an integer, say, and receiving a string. HTH, Rob -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc