Eclipse 中总是抛出 ZipException

发布于 2024-11-17 11:48:01 字数 991 浏览 2 评论 0原文

从今天早上开始(我更新了一些插件,并更新了 mac os X),每当系统想要读取 jar/zip 文件时,我都会收到 ZipException。起初我以为这是新版本插件中的一个错误,但在本机 java.util.zip.Zipfile.open(..) 方法中,它似乎相当低级别。

Error: Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.jar.JarFile.<init>(JarFile.java:135)
at java.util.jar.JarFile.<init>(JarFile.java:99)

有人知道这是从哪里来的吗?有人遇到同样的问题吗?我正在使用 Eclipse Galileo。

我的 java -version 说:

java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)

我已经检查了包含一些正在打开的 jar 的文件的目录,例如 /System/Library/Java/Extensions/AppleScriptEngine.jar:

$> ls -l
-rwxrwxrwx  1 root  wheel     6470 Jan  6  2010 AppleScriptEngine.jar

这让我发疯,因为很多插件现在失败了。任何提示都非常非常欢迎!

(使用Mac OS X 10.6.8)

Since this morning (i've updated some plugins, and updated mac os X) I get a ZipException, any time the system wants to read a jar/zip file. At first I thought it was a bug in the new version of the plugin, but it seems to be pretty low level, in the native java.util.zip.Zipfile.open(..) method.

Error: Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.jar.JarFile.<init>(JarFile.java:135)
at java.util.jar.JarFile.<init>(JarFile.java:99)

Anyone have any idea where this comes from? Anyone experiencing the same problem? I am using Eclipse Galileo.

My java -version says:

java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)

I've checked the dirs of the files that contain some of the jars that are being opened, for instance /System/Library/Java/Extensions/AppleScriptEngine.jar:

gt; ls -l
-rwxrwxrwx  1 root  wheel     6470 Jan  6  2010 AppleScriptEngine.jar

It drives me crazy, cos a lot of plugins are now failing. Any hints are very very welcome!

(Using Mac OS X 10.6.8)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼泪都笑了 2024-11-24 11:48:01

由于某种原因,它需要打开一个 0 字节的 .jar 文件。这导致了错误。我不知道为什么以前没有发生这种情况,但只需删除整个文件就可以了。我认为某些内容已更新,现在它会进行某种目录扫描,尝试打开它可以找到的每个 .jar 文件。

For some reason it needed to open a .jar file that was 0 bytes. This caused the error. Why it wasn't happening before, I don't know, but simply removing the whole file did the trick. I think something got updated and now it does some sort of directory scan, trying to open every .jar file it can find.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文