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.
this worked fine in 8.0 and is critical path for Nb Application development. steps to reproduce: 1.cone https://bitbucket.org/mkleint/nb-atlassian-dev 2. open all projects in the ide 3. build main project, run application project. 4. Error: doesn't start up in 8.0.1 (but does in 8.0 and before) Exception in log: java.io.FileNotFoundException: /Users/mkleint/src/nb-atlassian-dev/atlassian-common/target/classes (Is a directory) at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:215) at java.util.zip.ZipFile.<init>(ZipFile.java:145) at java.util.jar.JarFile.<init>(JarFile.java:154) at java.util.jar.JarFile.<init>(JarFile.java:118) [catch] at org.netbeans.core.netigso.Netigso.findRecursivePkgs(Netigso.java:760) at org.netbeans.core.netigso.Netigso.substitutePkg(Netigso.java:738) at org.netbeans.core.netigso.Netigso.fakeBundle(Netigso.java:608) at org.netbeans.core.netigso.Netigso.fakeOneModule(Netigso.java:503) at org.netbeans.core.netigso.Netigso.prepare(Netigso.java:176) at org.netbeans.NetigsoHandle.turnOn(NetigsoHandle.java:127) at org.netbeans.ModuleManager.enable(ModuleManager.java:1182) at org.netbeans.ModuleManager.enable(ModuleManager.java:1017) at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340) at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276) at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:301) at org.netbeans.core.startup.Main.getModuleSystem(Main.java:181) at org.netbeans.core.startup.Main.getModuleSystem(Main.java:150) at org.netbeans.core.startup.Main.start(Main.java:307) at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123) at java.lang.Thread.run(Thread.java:745) java.lang.NullPointerException at org.netbeans.core.netigso.Netigso.findRecursivePkgs(Netigso.java:781) at org.netbeans.core.netigso.Netigso.substitutePkg(Netigso.java:738) at org.netbeans.core.netigso.Netigso.fakeBundle(Netigso.java:608) at org.netbeans.core.netigso.Netigso.fakeOneModule(Netigso.java:503) at org.netbeans.core.netigso.Netigso.prepare(Netigso.java:176) at org.netbeans.NetigsoHandle.turnOn(NetigsoHandle.java:127) at org.netbeans.ModuleManager.enable(ModuleManager.java:1182) at org.netbeans.ModuleManager.enable(ModuleManager.java:1017) at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340) at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276) at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:301) at org.netbeans.core.startup.Main.getModuleSystem(Main.java:181) at org.netbeans.core.startup.Main.getModuleSystem(Main.java:150) at org.netbeans.core.startup.Main.start(Main.java:307) at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123) at java.lang.Thread.run(Thread.java:745) Product Version: NetBeans IDE 8.0.1 (Build 201408251540) Java: 1.7.0_60; Java HotSpot(TM) 64-Bit Server VM 24.60-b09 Runtime: Java(TM) SE Runtime Environment 1.7.0_60-b19 System: Mac OS X version 10.9.4 running on x86_64; UTF-8; en_US (nb) User directory: /Users/mkleint/Library/Application Support/NetBeans/8.0.1 Cache directory: /Users/mkleint/Library/Caches/NetBeans/8.0.1
following the 4 steps, i still couldn't reproduce. Neither with 8.0.1, nor with dev build. does this still prevail? is there more that should be done to run into the issue? please also attach the whole msg.log in such a case, maybe we will be able to dig more info out of it.
I can reproduce the problem. I can figure out that it appends when you provide a recursive publicPackage directive (* ended) in the nbm-maven-plugin configuration of a module. LIKE : ---------- <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>nbm-maven-plugin</artifactId> <version>3.13</version> <extensions>true</extensions> <configuration> <publicPackages> <publicPackage>com.mycompany.firstmodule.*</publicPackage> </publicPackages> </configuration> </plugin> --------- It works if I add one publicPackage directive by package. It seems that Module.getAllJars can returns directories in org.netbeans.core.netigso.Netigso.findRecursivePkgs(Netigso.java:780) -------- http://hg.netbeans.org/main/file/b19c1cd3bbaf/core.netigso/src/org/netbeans/core/netigso/Netigso.java 755 private static Set<String> findRecursivePkgs(Module m, PackageExport packageExport) { 756 Set<String> pkgs = new HashSet<String>(); 757 for (File f : m.getAllJars()) { 758 JarFile jf = null; 759 try { 760 jf = new JarFile(f); ------------ Regards, Didier
tried one more time to reproduce (Build 20150714-d5ffbdba280c), but without success. neither with the example described by milos nor with a simple NB App involving recursive packages milos, you didn't react - does this still prevail? feel free to reopen in case you are able to reproduce with a current dev build