ZipException:运行应用程序时无效的距离太远 [英] ZipException: invalid distance too far back error when running app

查看:762
本文介绍了ZipException:运行应用程序时无效的距离太远的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Resteasy作为后端api / service的GWT应用程序,该项目正常工作,但是当我将该项目移动到另一台机器并运行它时,我在执行GWT运行时遇到此错误:

b
$ b

 引起:java.util.zip.ZipException:无效距离太远返回
java.util.zip.InflaterInputStream.read( InflaterInputStream.java:164)
在java.util.zip.ZipInputStream.read(ZipInputStream.java:193)
在java.util.jar.JarInputStream.read(JarInputStream.java:207)
at org.scannotation.archiveiterator.InputStreamWrapper.read(InputStreamWrapper.java:36)
在java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
在java.io.BufferedInputStream.read (BufferedInputStream.java:254)
在java.io.DataInputStream.readInt(DataInputStream.java:387)
在javassist.bytecode.ClassFile.read(ClassFile.java:731)
at javassist.bytecode.ClassFile。< init>(ClassFile.java:108)
at org.scanno tation.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

可能是什么问题?




  • 是GWT罐子还是Resteasy? ZipException是什么意思?这是否意味着损坏的依赖关系?


解决方案

我打算在这里出去,说你有类兼容性错误或损坏的Jars(查看调用堆栈,它试图从jar文件中加载类)。

确认两个系统上的Java版本完全相同,然后将整个项目从工作主机复制到非工作主机。你可能有一个损坏的罐子。



基本上确保一切都是相同的,然后再试一次

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?

解决方案

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

这篇关于ZipException:运行应用程序时无效的距离太远的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆