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.
Build: NetBeans IDE Dev (Build 100503-343fb0de9337) VM: OpenJDK Client VM, 14.0-b16, OpenJDK Runtime Environment, 1.6.0_18-b18 OS: Linux User Comments: jtulach: Trying to change branding for NbScribble application 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:131) at java.util.jar.JarFile.<init>(JarFile.java:150) at java.util.jar.JarFile.<init>(JarFile.java:114) at org.netbeans.modules.apisupport.project.ui.branding.ResourceBundleBrandingPanel.prepareTree(ResourceBundleBrandingPanel.java:230) at org.netbeans.modules.apisupport.project.ui.branding.ResourceBundleBrandingPanel.access$200(ResourceBundleBrandingPanel.java:96)
Created attachment 98494 [details] stacktrace
Should at least log the ZIP which cannot be opened. Might also be trying to open a nonexistent file, etc.
Reproduced for a case when a suite's module project has not been built yet (its JAR does not exist) and as it is included in the list gathered from LayerUtils.getPlatformJarsForSuiteComponentProject() the branding panel tries opening it. Making the code more robust to ignore missing JARs: core-main #7130c7abf68c However, the suite's module project's JAR being included in LayerUtils.getPlatformJarsForSuiteComponentProject() has also another consequence. After the module's JAR becomes available, querying BrandingSupport for its bundle key values results in NPE (issue #185522) because BrandingSupport does not have it in its list of modules for branding. I will follow up on this part in issue #185522.
Integrated into 'main-golden', will be available in build *201005100200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ User: Log: