From: Kris Jurka <books@ejurka.com>
To: Jason Long <mailing.lists@octgsoftware.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Quartz/JBoss App fails to deploy on Postgres 9.0
Date: Thu, 29 Jul 2010 16:04:28 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1007291559100.25915@leary.csoft.net> (raw)
In-Reply-To: <AANLkTimnmA8h8KYOo_G8ptFkm=WORW8xUAB4RGqsiahC@mail.gmail.com>
References: <AANLkTimnmA8h8KYOo_G8ptFkm=WORW8xUAB4RGqsiahC@mail.gmail.com>
On Thu, 29 Jul 2010, Jason Long wrote:
> I am having a problem deploying my application on Postgres 9.0. This
> could have something to do with "Failed restore connection's original
> auto commit setting." The application does connect to the database just
> fine because if I disable the QuartzDispatcher the application works.
> Even with it enabled, Hibernate is still able to validate my tables
> before the QuartzDispatcher starts up. I have no problems with any
> other version of Postgres. The app is currently running perfectly on
> 8.4.4.
>
> java.lang.ArrayIndexOutOfBoundsException: 2
> at org.postgresql.util.PGbytea.toBytes(PGbytea.java:76)
> atorg.postgresql.jdbc2.AbstractJdbc2ResultSet.getBytes(AbstractJdbc2ResultSet
> .java:2271)
You need to either use a 9.0 JDBC driver or change your server's setting
of bytea_output to escape because the 8.4 driver does not understand hex
format.
You can get the 9.0 development driver here, it just hasn't been linked
into the website yet.
http://jdbc.postgresql.org/download/postgresql-9.0dev-800.jdbc4.jar
Kris Jurka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, mailing.lists@octgsoftware.com
Subject: Re: Quartz/JBoss App fails to deploy on Postgres 9.0
In-Reply-To: <alpine.BSO.2.00.1007291559100.25915@leary.csoft.net>
References: <AANLkTimnmA8h8KYOo_G8ptFkm=WORW8xUAB4RGqsiahC@mail.gmail.com> <alpine.BSO.2.00.1007291559100.25915@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox