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 254427 - java.util.zip.ZipException: error in opening zip file
Summary: java.util.zip.ZipException: error in opening zip file
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-17 11:01 UTC by Exceptions Reporter
Modified: 2015-09-15 16:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219207


Attachments
stacktrace (1.09 KB, text/plain)
2015-08-17 11:01 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2015-08-17 11:01:21 UTC
This bug was originally marked as duplicate of bug 242475, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 Beta (Build 201508041349)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b15
OS: Windows 8

User Comments:
GUEST: importing a theme

Sam.MIT: Importing .info file instaed zip file

GUEST: Added java and maven plugins, then tried to exit NetBeans




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:220)
   at java.util.zip.ZipFile.<init>(ZipFile.java:150)
   at java.util.zip.ZipFile.<init>(ZipFile.java:164)
   at org.netbeans.modules.options.export.OptionsExportModel.listZipFile(OptionsExportModel.java:1150)
   at org.netbeans.modules.options.export.OptionsExportModel.getRelativePaths(OptionsExportModel.java:827)
Comment 1 Exceptions Reporter 2015-08-17 11:01:23 UTC
Created attachment 155386 [details]
stacktrace
Comment 2 Theofanis Oikonomou 2015-09-15 16:09:21 UTC
From the logs in the report it seems that in all cases non zip files were chosen in order to import settings from. This should not happen any more as http://hg.netbeans.org/main-silver/rev/94a3304c5713 should only allow the user to select a zip file to import, thus reports #780658 and #714997 should be fixed. In report #789658 I see at the very end:

Invalid zip file: C:\Users\NABEEL\Desktop\Solarized Dark\org-netbeans-modules-editor-settings-CustomFontsColors-tokenColorings.xml

I am not able to reproduce this state in 8.0 or latest dev builds. Please reopen if it still happens for you describing your exact steps. Thank you