pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedclass file format issue
4+ messages / 2 participants
[nested] [flat]
* class file format issue
@ 2015-02-25 20:23 Peter Eisentraut <peter_e@gmx.net>
0 siblings, 1 reply; 4+ messages in thread
From: Peter Eisentraut @ 2015-02-25 20:23 UTC (permalink / raw)
To: pgsql-jdbc
I appears to me that the latest jdbc4 driver is compiled with a wrong
class file format.
unzip -q -c postgresql-9.4-1201.jdbc41.jar org/postgresql/PGStatement.class | od -t x1u1 -N 10
0000000 ca fe ba be 00 00 00 33 00 23
202 254 186 190 0 0 0 51 0 35
The above is OK.
unzip -q -c postgresql-9.4-1201.jdbc4.jar org/postgresql/PGStatement.class | od -t x1u1 -N 10
0000000 ca fe ba be 00 00 00 33 00 23
202 254 186 190 0 0 0 51 0 35
That should be "50" instead of "51".
As a result, loading this driver with Java 1.6.0 results in
java.lang.UnsupportedClassVersionError: org/postgresql/Driver : Unsupported major.minor version 51.0
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: class file format issue
@ 2015-02-26 02:41 Dave Cramer <pg@fastcrypt.com>
parent: Peter Eisentraut <peter_e@gmx.net>
0 siblings, 1 reply; 4+ messages in thread
From: Dave Cramer @ 2015-02-26 02:41 UTC (permalink / raw)
To: Peter Eisentraut <peter_e@gmx.net>; +Cc: pgsql-jdbc
Peter,
Thanks for catching this!
Dave Cramer
dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
On 25 February 2015 at 15:23, Peter Eisentraut <peter_e@gmx.net> wrote:
> I appears to me that the latest jdbc4 driver is compiled with a wrong
> class file format.
>
> unzip -q -c postgresql-9.4-1201.jdbc41.jar
> org/postgresql/PGStatement.class | od -t x1u1 -N 10
> 0000000 ca fe ba be 00 00 00 33 00 23
> 202 254 186 190 0 0 0 51 0 35
>
> The above is OK.
>
> unzip -q -c postgresql-9.4-1201.jdbc4.jar org/postgresql/PGStatement.class
> | od -t x1u1 -N 10
> 0000000 ca fe ba be 00 00 00 33 00 23
> 202 254 186 190 0 0 0 51 0 35
>
> That should be "50" instead of "51".
>
> As a result, loading this driver with Java 1.6.0 results in
>
> java.lang.UnsupportedClassVersionError: org/postgresql/Driver :
> Unsupported major.minor version 51.0
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: class file format issue
@ 2015-02-26 02:51 Dave Cramer <pg@fastcrypt.com>
parent: Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 4+ messages in thread
From: Dave Cramer @ 2015-02-26 02:51 UTC (permalink / raw)
To: Peter Eisentraut <peter_e@gmx.net>; +Cc: pgsql-jdbc
I"ve just uploaded a new jar if you have time can you check ?
Thanks again!
Dave Cramer
dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
On 25 February 2015 at 21:41, Dave Cramer <pg@fastcrypt.com> wrote:
> Peter,
>
> Thanks for catching this!
>
> Dave Cramer
>
> dave.cramer(at)credativ(dot)ca
> http://www.credativ.ca
>
> On 25 February 2015 at 15:23, Peter Eisentraut <peter_e@gmx.net> wrote:
>
>> I appears to me that the latest jdbc4 driver is compiled with a wrong
>> class file format.
>>
>> unzip -q -c postgresql-9.4-1201.jdbc41.jar
>> org/postgresql/PGStatement.class | od -t x1u1 -N 10
>> 0000000 ca fe ba be 00 00 00 33 00 23
>> 202 254 186 190 0 0 0 51 0 35
>>
>> The above is OK.
>>
>> unzip -q -c postgresql-9.4-1201.jdbc4.jar
>> org/postgresql/PGStatement.class | od -t x1u1 -N 10
>> 0000000 ca fe ba be 00 00 00 33 00 23
>> 202 254 186 190 0 0 0 51 0 35
>>
>> That should be "50" instead of "51".
>>
>> As a result, loading this driver with Java 1.6.0 results in
>>
>> java.lang.UnsupportedClassVersionError: org/postgresql/Driver :
>> Unsupported major.minor version 51.0
>>
>>
>> --
>> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-jdbc
>>
>
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: class file format issue
@ 2015-02-27 18:39 Peter Eisentraut <peter_e@gmx.net>
parent: Dave Cramer <pg@fastcrypt.com>
0 siblings, 0 replies; 4+ messages in thread
From: Peter Eisentraut @ 2015-02-27 18:39 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; +Cc: pgsql-jdbc
On 2/25/15 9:51 PM, Dave Cramer wrote:
> I"ve just uploaded a new jar if you have time can you check ?
Looks correct now.
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2015-02-27 18:39 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-02-25 20:23 class file format issue Peter Eisentraut <peter_e@gmx.net>
2015-02-26 02:41 ` Dave Cramer <pg@fastcrypt.com>
2015-02-26 02:51 ` Dave Cramer <pg@fastcrypt.com>
2015-02-27 18:39 ` Peter Eisentraut <peter_e@gmx.net>
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