This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 193504 - [70cat] java.util.zip.ZipException: error in opening zip file
Summary: [70cat] java.util.zip.ZipException: error in opening zip file
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-16 16:25 UTC by misterm
Modified: 2010-12-18 06:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 175078


Attachments
stacktrace (3.74 KB, text/plain)
2010-12-16 16:25 UTC, misterm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2010-12-16 16:25:21 UTC
This bug was originally marked as duplicate of bug 190134, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 101214-090a73ea0cba)
VM: Java HotSpot(TM) Client VM, 16.2-b04, Java(TM) SE Runtime Environment, 1.6.0_19-b04
OS: Windows 7

User Comments:
misterm: Just deleted the processor jar and was pasting a new one. The error happened somewhere between this




Stacktrace: 
java.util.zip.ZipException: error in opening zip file
   at java.util.zip.ZipFile.open(ZipFile.java:0)
   at java.util.zip.ZipFile.<init>(ZipFile.java:114)
   at java.util.zip.ZipFile.<init>(ZipFile.java:131)
   at org.netbeans.modules.java.source.parsing.FileObjects$ZipFileObject.openInputStream(FileObjects.java:1140)
   at org.netbeans.modules.java.source.parsing.FileObjects$FastZipFileObject.openInputStream(FileObjects.java:1179)
   at org.netbeans.modules.java.source.parsing.CachingArchiveClassLoader.readJavaFileObject(CachingArchiveClassLoader.java:140)
Comment 1 misterm 2010-12-16 16:25:24 UTC
Created attachment 104162 [details]
stacktrace
Comment 2 Tomas Zezula 2010-12-16 19:10:07 UTC
I believe it's a duplicate of some fixed issue.
I will look.
Comment 3 Tomas Zezula 2010-12-16 19:54:15 UTC
The ZipFile throws ZipException rather than FileNotFoundException if the file does not exist.
Another special check is needed :-(
Comment 4 Tomas Zezula 2010-12-16 20:33:33 UTC
Fixed jet-main d974fd037e87
The exception is caused by broken jar file with an annotation processor. The jar exists but is not valid (probably truncated).
Comment 5 Quality Engineering 2010-12-18 06:09:37 UTC
Integrated into 'main-golden', will be available in build *201012180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d974fd037e87
User: Tomas Zezula <tzezula@netbeans.org>
Log: #193504:[70cat] java.util.zip.ZipException: error in opening zip file