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 213131 - IllegalArgumentException: Already a C:\Users\Caio Cunha\Documents\NetBeansProjects\WebApplication1\nbproject\project.xml@aa87aa07:1032f55
Summary: IllegalArgumentException: Already a C:\Users\Caio Cunha\Documents\NetBeansPro...
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-29 02:33 UTC by CaioToOn
Modified: 2012-11-27 02:57 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 188531


Attachments
stacktrace (2.34 KB, text/plain)
2012-05-29 02:33 UTC, CaioToOn
Details
stacktrace (1.80 KB, text/plain)
2012-07-18 21:14 UTC, Exceptions Reporter
Details
stacktrace (1.83 KB, text/plain)
2012-11-25 08:32 UTC, dds.dhawal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CaioToOn 2012-05-29 02:33:16 UTC
This bug was originally marked as duplicate of bug 139769, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.1.2 (Build 201204101705)
VM: Java HotSpot(TM) Client VM, 23.0-b21, Java(TM) SE Runtime Environment, 1.7.0_04-b22
OS: Windows 7

User Comments:
CaioToOn: I checked out a Tomcat project from a SVN repository. As I hadn't installed the Tomcat Server yet, I closed NetBeans and run installation again, installing Tomcat Server.

Then I reopened Netbeans and I can't create a new Project. The error above happens after the Finish button being pressed on the New project Wizard.




Stacktrace: 
java.lang.IllegalArgumentException: Already a C:\Users\Caio Cunha\Documents\NetBeansProjects\WebApplication1\nbproject\project.xml@aa87aa07:1032f55
   at org.netbeans.spi.project.support.ant.ProjectGenerator$1.run(ProjectGenerator.java:127)
   at org.netbeans.spi.project.support.ant.ProjectGenerator$1.run(ProjectGenerator.java:122)
   at org.openide.util.Mutex.writeAccess(Mutex.java:436)
   at org.netbeans.spi.project.support.ant.ProjectGenerator.createProject0(ProjectGenerator.java:122)
   at org.netbeans.spi.project.support.ant.ProjectGenerator.createProject(ProjectGenerator.java:116)
   at org.netbeans.modules.web.project.api.WebProjectUtilities.setupProject(WebProjectUtilities.java:720)
Comment 1 CaioToOn 2012-05-29 02:33:21 UTC
Created attachment 119976 [details]
stacktrace
Comment 2 Exceptions Reporter 2012-07-18 21:08:07 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=188531
Comment 3 Exceptions Reporter 2012-07-18 21:14:07 UTC
Created attachment 122175 [details]
stacktrace
Comment 4 dds.dhawal 2012-11-25 08:32:16 UTC
Created attachment 128351 [details]
stacktrace

Test Specification: http://wiki.netbeans.org/TS_73_HTML5Project
Test suite: New project with sources -->   Import AngularJS project
Comment 5 David Konecny 2012-11-25 19:37:56 UTC
Tomas, could you have a look at this issue please? Majority of reports are either from WebClient project or for PHP project. If I remember well this problem used to happen when you deleted a project and tried to recreate a new one in the same folder without restarting the IDE - the old project was deleted from the disk but not garbage collected yet and is therefore still in memory. I think the fix was to call findProject(aFolder) and show an error in the new proj wizard.
Comment 6 Tomas Mysik 2012-11-26 11:00:50 UTC
In PHP area, we have already fixed it. Now, it is fixed also in HTML project. Please verify, thanks.

http://hg.netbeans.org/web-main/rev/2396f3f84c77
Comment 7 Vladimir Riha 2012-11-26 15:09:50 UTC
verified, instead of IAE I see the error message that it is "already a project (maybe in memory)"



Product Version: NetBeans IDE Dev (Build web-main-9337-on-20121126)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b16
System: Linux version 3.2.0-33-generic-pae running on i386; UTF-8; en_US (nb)
Comment 8 Quality Engineering 2012-11-27 02:57:23 UTC
Integrated into 'main-golden', will be available in build *201211270002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2396f3f84c77
User: Tomas Mysik <tmysik@netbeans.org>
Log: #213131 - IllegalArgumentException: Already a C:\Users\...