Thread: jdbc download jar is corrupted

jdbc download jar is corrupted

From
Ray Tomlinson
Date:
 http://jdbc.postgresql.org/download/jdbc7.1-1.2.jar has bad format.
Neither winzip nor jar can read the contents. Jar throws an
IllegalArgumentException and winzip says: error [C:/jdbc7_1-1_2.jar]:
start of central directory not found; Zip file corrupt. Possible cause:
file transfer error.

C:\>jar -tf *.jar
java.lang.IllegalArgumentException
        at
java.util.zip.ZipInputStream.getUTF8String(ZipInputStream.java:291)
        at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:230)

        at
java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:75)
        at sun.tools.jar.Main.list(Main.java:736)
        at sun.tools.jar.Main.run(Main.java:193)
        at sun.tools.jar.Main.main(Main.java:904)

C:\>


Re: jdbc download jar is corrupted

From
Barry Lind
Date:
It works fine for me.  I can download and unzip the file.  Are you still
seeing this problem?

thanks,
--Barry

Ray Tomlinson wrote:

>  http://jdbc.postgresql.org/download/jdbc7.1-1.2.jar has bad format.
> Neither winzip nor jar can read the contents. Jar throws an
> IllegalArgumentException and winzip says: error [C:/jdbc7_1-1_2.jar]:
> start of central directory not found; Zip file corrupt. Possible cause:
> file transfer error.
>
> C:\>jar -tf *.jar
> java.lang.IllegalArgumentException
>         at
> java.util.zip.ZipInputStream.getUTF8String(ZipInputStream.java:291)
>         at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:230)
>
>         at
> java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:75)
>         at sun.tools.jar.Main.list(Main.java:736)
>         at sun.tools.jar.Main.run(Main.java:193)
>         at sun.tools.jar.Main.main(Main.java:904)
>
> C:\>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
>



Re: jdbc download jar is corrupted

From
Joe Shevland
Date:
(Some versions of) Netscape are notorious JAR killers... might be this, I
often provide a .tgz bundle also after getting a lot of people saying my
downloadable files are corrupt ;)

Cheers,
Joe

> -----Original Message-----
> From: pgsql-jdbc-owner@postgresql.org
> [mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Barry Lind
> Sent: Wednesday, 3 October 2001 6:15 AM
> To: Ray Tomlinson
> Cc: pgsql-jdbc@postgresql.org
> Subject: Re: [JDBC] jdbc download jar is corrupted
>
>
> It works fine for me.  I can download and unzip the file.
> Are you still
> seeing this problem?
>
> thanks,
> --Barry
>
> Ray Tomlinson wrote:
>
> >  http://jdbc.postgresql.org/download/jdbc7.1-1.2.jar has bad format.
> > Neither winzip nor jar can read the contents. Jar throws an
> > IllegalArgumentException and winzip says: error
> [C:/jdbc7_1-1_2.jar]:
> > start of central directory not found; Zip file corrupt.
> Possible cause:
> > file transfer error.
> >
> > C:\>jar -tf *.jar
> > java.lang.IllegalArgumentException
> >         at
> > java.util.zip.ZipInputStream.getUTF8String(ZipInputStream.java:291)
> >         at
> java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:230)
> >
> >         at
> > java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:75)
> >         at sun.tools.jar.Main.list(Main.java:736)
> >         at sun.tools.jar.Main.run(Main.java:193)
> >         at sun.tools.jar.Main.main(Main.java:904)
> >
> > C:\>
> >
> >
> > ---------------------------(end of
> broadcast)---------------------------
> > TIP 4: Don't 'kill -9' the postmaster
> >
> >
>
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>

Re: jdbc download jar is corrupted

From
Ray Tomlinson
Date:
Further investigation reveals that the web server at the download site
(jdbc.postgresql.org) is specifying a content-type of text/plain rather than
application/octet which is the usual mime-type for generic binary data.
Netscape is being too helpful and expanding all those mal-formed end-of-line
sequences into correctly formed ones.

A simple .htaccess line would fix the problem at the web server.

Ray

Joe Shevland wrote:

> (Some versions of) Netscape are notorious JAR killers... might be this, I
> often provide a .tgz bundle also after getting a lot of people saying my
> downloadable files are corrupt ;)



Re: jdbc download jar is corrupted

From
Ray Tomlinson
Date:
Hmmm... I downloaded again using internet explorer and, as much as I hate to
admit it, the file is ok. I re-downloaded with netscape and it's not ok.
Netscape seems to believe that the file is text/plain so it probably tosses or
adds some characters.
Ray

Barry Lind wrote:

> It works fine for me.  I can download and unzip the file.  Are you still
> seeing this problem?
>
> thanks,
> --Barry
>
> Ray Tomlinson wrote:
>
> >  http://jdbc.postgresql.org/download/jdbc7.1-1.2.jar has bad format.
> > Neither winzip nor jar can read the contents. Jar throws an
> > IllegalArgumentException and winzip says: error [C:/jdbc7_1-1_2.jar]:
> > start of central directory not found; Zip file corrupt. Possible cause:
> > file transfer error.
> >
> > C:\>jar -tf *.jar
> > java.lang.IllegalArgumentException
> >         at
> > java.util.zip.ZipInputStream.getUTF8String(ZipInputStream.java:291)
> >         at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:230)
> >
> >         at
> > java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:75)
> >         at sun.tools.jar.Main.list(Main.java:736)
> >         at sun.tools.jar.Main.run(Main.java:193)
> >         at sun.tools.jar.Main.main(Main.java:904)
> >
> > C:\>
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 4: Don't 'kill -9' the postmaster
> >
> >