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

Summary: java.util.zip.ZipException: error in opening zip file
Product: platform Reporter: Exceptions Reporter <exceptions_reporter>
Component: Options&SettingsAssignee: Theofanis Oikonomou <theofanis>
Status: RESOLVED FIXED    
Severity: normal CC: Sam.MIT
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 219207
Attachments: stacktrace

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