Re: [JDBC] JDBC: java.lang.ArrayIndexOutOfBoundsException: 256

From: Peter T Mount <peter(at)retep(dot)org(dot)uk>
To: Mirko Zeibig <mirko(at)picard(dot)inka(dot)de>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [JDBC] JDBC: java.lang.ArrayIndexOutOfBoundsException: 256
Date: 2001-01-25 17:27:56
Message-ID: 980443676.3a70621c9d711@webmail.retep.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-jdbc

Quoting Mirko Zeibig <mirko(at)picard(dot)inka(dot)de>:

Redirecting to the jdbc only list as that's where all jdbc emails should now go.

> Hello,
> my system:
> RedHat 7.0
> postgresql 7.1 (CVS)
> IBMJava2-SDK-1.3-1.1
>
> After having set JAVA_HOME "ant" is working like a charm, now it will
> build
> postgresql.jar and postgresql-example.jar. I noticed however that there
> is a
> difference between the ant and the make built: whereas with ant the jar
> has
> about 83kB, with "make jdbc2" it is about 180kB

make had the -0 flag while ant doesn't so the 83k one is compressed.
Needs checking, but in the early days, .jar files could not be compressed. If
jdk1.2 and later are ok, this is a bonus. But I wonder how browsers and
jdk1.1.x handle them.

[snip]

> this exception: java.lang.ArrayIndexOutOfBoundsException: 256
> at java.lang.Throwable.<init>(Throwable.java:84)
> at java.lang.Exception.<init>(Exception.java:35)
> at java.sql.SQLException.<init>(SQLException.java:100)
> at
> org.postgresql.util.PSQLException.<init>(PSQLException.java:42)
> at org.postgresql.Driver.connect(Driver.java:127)
> at java.sql.DriverManager.getConnection(DriverManager.java:523)
> at java.sql.DriverManager.getConnection(DriverManager.java:183)
> at example.psql.<init>(psql.java:31)
> at example.psql.main(psql.java:207)

Thanks. There is a bug recently introduced in Driver & PSQLException. I added
the fuller stack trace this morning to try to find it. This will prove useful.

Peter

--
Peter Mount peter(at)retep(dot)org(dot)uk
PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/
RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve Wolfe 2001-01-25 17:43:22 Re: Load a database into memory
Previous Message Guillaume Lémery 2001-01-25 17:17:55 Load a database into memory

Browse pgsql-jdbc by date

  From Date Subject
Next Message Peter T Mount 2001-01-25 17:30:12 Re: [JDBC] no way in LargeObject API to detect short read?
Previous Message Peter T Mount 2001-01-25 17:09:49 Re: Re: [PATCHES] Patch for jdbc Makefile