Skip site navigation (1) Skip section navigation (2)

Possible bug in

From: Fedechicco <fedechicco(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Possible bug in
Date: 2012-04-26 11:34:17
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
Hi everbody,

I'm trying to use the postgre jdbc driver with little success.
I keep getting this incomprehensible error message:

org.postgresql.util.PSQLException: Something unusual has occured to
cause the driver to fail. Please report this exception.
	at org.postgresql.Driver.connect(
	at java.sql.DriverManager.getConnection(
	at java.sql.DriverManager.getConnection(
	at com.moxoff.meshrepository.SQLConnector.getConnection(
	at com.moxoff.meshrepository.MeshRepository.<init>(
	at com.moxoff.meshrepository.Main.main(
Caused by: java.lang.ArrayIndexOutOfBoundsException: 6
	at org.postgresql.util.ServerErrorMessage.<init>(
	at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(
	at org.postgresql.core.ConnectionFactory.openConnection(
	at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(
	at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(
	at org.postgresql.jdbc3.Jdbc3Connection.<init>(
	at org.postgresql.Driver.makeConnection(
	at org.postgresql.Driver.connect(
	... 5 more

From what I've seen the line 48 and the following are:

while (l_chars[l_pos] != '\0' && l_pos < l_length)

which IMO should be changed in:
while (l_pos < l_length && l_chars[l_pos] != '\0')



pgsql-jdbc by date

Next:From: Prasanth ReddyDate: 2012-04-26 14:50:11
Subject: Re: 9.1 JDBC 4 driver
Previous:From: Dave CramerDate: 2012-04-26 01:55:14
Subject: Re: 9.1 JDBC 4 driver

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group