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

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

问题描述

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

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

可能是什么问题?

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

推荐答案

我要冒昧地说你有一个类兼容性错误或损坏的 Jars(查看调用堆栈,它正在尝试加载类来自 jar 文件).

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).

验证您在两个系统上的 Java 版本是否完全相同,然后将整个项目从工作主机复制到非工作主机.您可能有一个损坏的 Jar.

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.

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

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

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