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 144005 - java.io.IOException: org.netbeans.DuplicateException: C:\Program Files\NetBeans Dev 200808141419\maven1\modules\org-netbeans-modules-maven-gsf.jar is a duplicate of C:\Program Files\NetBeans Dev 20080
Summary: java.io.IOException: org.netbeans.DuplicateException: C:\Program Files\NetBea...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL: http://statistics.netbeans.org/except...
Keywords:
: 143729 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-15 03:19 UTC by vkelman
Modified: 2008-12-23 08:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 25556


Attachments
stacktrace (1.96 KB, text/plain)
2008-08-15 03:19 UTC, vkelman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vkelman 2008-08-15 03:19:06 UTC
Build: NetBeans IDE Dev (Build 200808141419)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.io.IOException: org.netbeans.DuplicateException: C:\Program Files\NetBeans Dev 200808141419\maven1\modules\org-netbeans-modules-maven-gsf.jar is a duplicate of C:\Program Files\NetBeans Dev 200808141419\maven1\modules\org-netbeans-modules-maven-gsf.jar
        at org.netbeans.core.startup.ModuleList$Listener.stepCreate(ModuleList.java:1632)
        at org.netbeans.core.startup.ModuleList$Listener.access$2100(ModuleList.java:1305)
        at org.netbeans.core.startup.ModuleList$Listener$1.run(ModuleList.java:1534)
        at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:120)
        at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:499)
        at org.netbeans.core.startup.ModuleList$Listener.run(ModuleList.java:1511)
Comment 1 vkelman 2008-08-15 03:19:16 UTC
Created attachment 67487 [details]
stacktrace
Comment 2 Milos Kleint 2008-08-15 10:04:13 UTC
not sure how this is maven related. it looks like an issue in module system.
Comment 3 Jesse Glick 2008-08-19 00:44:59 UTC
From the logs, it looks like the DuplicateException is just a side-effect of the root problem, an ISE checking whether
an eager module can be enabled - which in turn seems likely to be caused by newly installed modules being created in
arbitrary order. Not sure if fix addresses the problem since there are no apparent steps to reproduce it. core-main
#3c97ce25b847
Comment 4 Quality Engineering 2008-08-19 17:11:08 UTC
Integrated into 'main-golden', available in build *200808191401* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/3c97ce25b847
User: Jesse Glick <jglick@netbeans.org>
Log: Enabling available eager modules whenever any new module is created.
Looks like it will fix #144005, though it is not clear how that can be reproduced.
Comment 5 Jesse Glick 2008-08-19 22:48:20 UTC
Found a simple way to reproduce (and confirm that fix works):

1. ant -Dcluster.config=basic clean build-nozip tryme

2. Tools > Plugin Manager

3. Under Available, select Java Profiler and Install.
Comment 6 Jesse Glick 2008-08-19 23:48:59 UTC
Trying a different fix - just deleting code to enable eager modules as they are created. It seems this is not really
necessary anyway, since most client code which would create new modules will also try to enable some of them, which will
have the effect of enabling any available eager modules in batch mode, with much less overhead. core-main #8c44699b4277
Comment 7 Jesse Glick 2008-08-20 16:07:57 UTC
*** Issue 143729 has been marked as a duplicate of this issue. ***
Comment 8 Quality Engineering 2008-08-20 17:22:08 UTC
Integrated into 'main-golden', available in build *200808201401* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/8c44699b4277
User: Jesse Glick <jglick@netbeans.org>
Log: #144005 cont'd: do not try to enable eager modules when they are created.