Downloading from maven central

19 views
Skip to first unread message

Matteo Mortari

unread,
Sep 22, 2016, 5:35:04 AM9/22/16
to brownies-collections
Hi,
I've tried to use this from maven central, but for both versions 0.9.13, 0.9.12 (I didn't try with others) it looks like the .class file inside the JAR are containing a wrong encode or invalid characters, hence unable to use them as the class are not loaded correctly.

I've tried to download -sources JAR still from maven central all is fine, the sources are opened correctly instead.

Is it only me, or is this affecting other users too, please?

The problem can be detected by trying to open .class file from the dependency JAR loaded in Eclipse, I get:
java.util.zip.ZipException: invalid LOC header (bad signature)
 at java
.util.zip.ZipFile.read(Native Method)
 at java
.util.zip.ZipFile.access$1400(ZipFile.java:60)
 at java
.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:717)
 at java
.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:419)
 at java
.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
 at java
.io.BufferedInputStream.read1(BufferedInputStream.java:284)
 at java
.io.BufferedInputStream.read(BufferedInputStream.java:345)
 at org
.eclipse.jdt.internal.compiler.util.Util.getInputStreamAsByteArray(Util.java:525)

or by using GEDIT by opening the JAR in system explorer, opening a .class file, anyone, I get:
The file you opened has some invalid characters. If you continue editing this file you could corrupt this document.
You can also choose another character encoding and try again.

to be clear, the JAR-as-a-ZIP appears correct, the problem appears to be the encoding of the files inside the JAR/ZIP ?

Could you kindly advise, please?
Thanks

Matteo Mortari

unread,
Sep 22, 2016, 12:08:38 PM9/22/16
to brownies-collections
Sorry nevermind. I awaited a few hours and forced to download from maven again, working correctly now.
A bit strange because I did the same force download again earlier today, without improvement.
However all seems good and working now, inner .class file are valid.
Sorry again for the confusion.
Reply all
Reply to author
Forward
0 new messages