Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ZipException: invalid distance too far back error when running app

Tags:

java

gwt

resteasy

I have a GWT application which uses Resteasy as backend api/service, the project works properly, but when I moved the project to a different machine and run it I get this error when doing a GWT run:

Caused by: java.util.zip.ZipException: invalid distance too far back
    at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)
    at java.util.zip.ZipInputStream.read(ZipInputStream.java:193)
    at java.util.jar.JarInputStream.read(JarInputStream.java:207)
    at org.scannotation.archiveiterator.InputStreamWrapper.read(InputStreamWrapper.java:36)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
    at java.io.DataInputStream.readInt(DataInputStream.java:387)
    at javassist.bytecode.ClassFile.read(ClassFile.java:731)
    at javassist.bytecode.ClassFile.<init>(ClassFile.java:108)
    at org.scannotation.AnnotationDB.scanClass(AnnotationDB.java:343)
    at org.scannotation.AnnotationDB.scanArchives(AnnotationDB.java:326)
    at org.jboss.resteasy.plugins.server.servlet.ConfigurationBootstrap.createDeployment(ConfigurationBootstrap.java:163)
    ... 24 more

What could be the problem?

  • Is the the GWT jars or Resteasy? What does ZipException mean? Does it mean corrupted dependency?
like image 374
quarks Avatar asked May 16 '13 17:05

quarks


1 Answers

I am going to go out on a limb here and say you have a class compatibility error or corrupted Jars (look at the call stack, it's trying to load classes from jar files).

Verify that you have the exact same Java version on both systems and then COPY the entire project from the working host to the non-working host. You may have a corrupted Jar.

Basically ensure everything is identical and try again

like image 65
Christian Bongiorno Avatar answered Sep 21 '22 11:09

Christian Bongiorno