Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id B2A12632D97 for ; Thu, 29 Jul 2010 17:04:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 09418-08 for ; Thu, 29 Jul 2010 20:04:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id 3CC02632CE6 for ; Thu, 29 Jul 2010 17:04:31 -0300 (ADT) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id 19C422842E; Thu, 29 Jul 2010 16:04:29 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sel1; bh=tf+arIw1RQxUEuscIskbPtoRmAk=; b=itm5pK vjxFVD7oWZsxW9oxVZ2BVBOC8+wcKftCkVSBZokqA2OZHpSDPQ4c3ToMD2eSyITG mMnFFKyMf1NXB25++7OIUkUaHbcLjIHiDHOINzPhOm6Ucp5ZrImlhPzFXE4vNo+L hDb6N9FT5OuxvKUdifo8tGleoYSa4YAyZr/ZY= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id EFFC32842C; Thu, 29 Jul 2010 16:04:28 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id A51E3A206; Thu, 29 Jul 2010 16:04:28 -0400 (EDT) Date: Thu, 29 Jul 2010 16:04:28 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Jason Long cc: pgsql-jdbc@postgresql.org Subject: Re: Quartz/JBoss App fails to deploy on Postgres 9.0 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE X-Archive-Number: 201007/127 X-Sequence-Number: 20792 On Thu, 29 Jul 2010, Jason Long wrote: > I am having a problem deploying my application on Postgres 9.0.=A0 This= =20 > could have something to do with "Failed restore connection's original=20 > auto commit setting."=A0 The application does connect to the database jus= t=20 > fine because if I disable the QuartzDispatcher the application works.=A0= =20 > Even with it enabled, Hibernate is still able to validate my tables=20 > before the QuartzDispatcher starts up.=A0 I have no problems with any=20 > other version of Postgres.=A0 The app is currently running perfectly on= =20 > 8.4.4. >=20 > java.lang.ArrayIndexOutOfBoundsException: 2 > =A0=A0=A0 at org.postgresql.util.PGbytea.toBytes(PGbytea.java:76) > =A0=A0=A0 atorg.postgresql.jdbc2.AbstractJdbc2ResultSet.getBytes(Abstract= Jdbc2ResultSet > .java:2271) You need to either use a 9.0 JDBC driver or change your server's setting=20 of bytea_output to escape because the 8.4 driver does not understand hex=20 format. You can get the 9.0 development driver here, it just hasn't been linked=20 into the website yet. http://jdbc.postgresql.org/download/postgresql-9.0dev-800.jdbc4.jar Kris Jurka