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 152023 - IllegalArgumentException: Already a project org.netbeans.modules.php.project.PhpProject in C:\Arquivos de programas\Apache Software Foundation\Apache2.2\htdocs\mala_1
Summary: IllegalArgumentException: Already a project org.netbeans.modules.php.project....
Status: RESOLVED DUPLICATE of bug 139769
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kubec
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-31 17:54 UTC by villefilho
Modified: 2009-05-05 09:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 133503


Attachments
stacktrace (1.88 KB, text/plain)
2008-10-31 17:54 UTC, villefilho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description villefilho 2008-10-31 17:54:38 UTC
Build: NetBeans IDE 6.5 RC2 (Build 200810270001)
VM: Java HotSpot(TM) Client VM, 1.6.0_01-b06, Java(TM) SE Runtime Environment, 1.6.0_01-b06
OS: Windows XP, 5.1, x86

User Comments:
villefilho: Created a project (with existing files), closed and created another project with same name.

villefilho: Created a project (with existing files), closed and created another project with same name.



Stacktrace: 
java.lang.IllegalArgumentException: Already a project org.netbeans.modules.php.project.PhpProject in C:\Arquivos de programas\Apache Software Foundation\Apache2.2\htdocs\mala_1
        at org.netbeans.spi.project.support.ant.ProjectGenerator$.run(ProjectGenerator.java:117)
        at org.netbeans.spi.project.support.ant.ProjectGenerator$.run(ProjectGenerator.java:114)
        at org.openide.util.Mutex.writeAccess(Mutex.java:433)
        at org.netbeans.spi.project.support.ant.ProjectGenerator.createProject0(ProjectGenerator.java:113)
        at org.netbeans.spi.project.support.ant.ProjectGenerator.createProject(ProjectGenerator.java:94)
        at org.netbeans.modules.php.project.ui.wizards.NewPhpProjectWizardIterator.createProject(NewPhpProjectWizardIterator.java:274)
Comment 1 villefilho 2008-10-31 17:54:50 UTC
Created attachment 73008 [details]
stacktrace
Comment 2 Exceptions Reporter 2008-11-07 07:34:10 UTC
This issue has already 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=133503
Comment 3 Sergey Petrov 2008-11-07 07:53:58 UTC
as for my part classified as duplicate of this one (not sure if it is) it block uml tool completely, so should be p1-p2
but it's not reproducible in 6.5 for me, should I file separate issue? should it be fixed in uml and not in ant module?
Comment 4 Milan Kubec 2008-11-07 08:18:37 UTC
It seems that our reporting tool mixes two issues together, one about "Already a project ..." and second "No Ant-based
project factory ...", your problem seems to be the second one. It looks like problem in UML module, do you mean that
it's only reproducible on trunk build (7.0)? You should file an issue against UML module IMO.
Comment 5 Sergey Petrov 2008-11-07 08:44:33 UTC
ok I'll file one, may be one more for reporting tool.
I see the same problem was reported for android. 
Are you sure it's uml module problem it wasn't a problem just a week or two ago?
could you point me to any doc? I'm currently investigating but it may be faster with some support even if it's in uml.
Comment 6 Milan Kubec 2008-11-07 09:02:15 UTC
I will file issue against exceptions reporter. 
From the code in ProjectGenerator it looks like the problem is really in project factory. When exactly this happen? Are
you able to reproduce it from scratch (with clean userdir)?
Comment 7 Sergey Petrov 2008-11-07 09:10:46 UTC
yes, I build nb today, build uml module, trued to create uml project with fresh user dir - fails.
not sure when, it used to work in 6.5 and some time after. i didn't try to create uml projects may be for a week.
do you mean problem in uml project factory?
Comment 8 Sergey Petrov 2008-11-07 09:12:54 UTC
I filed http://www.netbeans.org/issues/show_bug.cgi?id=152623 for uml, so this one issue can be restored to p3 if
appropriate.
Comment 9 Milan Kubec 2008-11-07 09:20:44 UTC
> do you mean problem in uml project factory?

Yes.
Comment 10 Sergey Petrov 2008-11-07 09:43:57 UTC
As I see uml do not have classes implementing ProjectFactory and also UMLProjectType is AntBasedProjectType. Either I
missed an idea or or's not a problem in uml project factory. It still may be a problem in uml.
Comment 11 Milan Kubec 2008-11-07 11:25:57 UTC
Indeed as AntBasedProjectType it doesn't have to implement ProjectFactory, but the problem seems to be in UML project
itself since other Ant based projects do not have this problem.
Comment 12 Sergey Petrov 2008-11-08 14:49:57 UTC
yes, I don't see other with the same problem, and I found UMLProjectType isn't in lookup but I also can't find any good
doc on it.
Tried to compare with nb module project and later found it doesn't work but without exception. Are going to investigate
more with other ant based projects.
Comment 13 Milan Kubec 2008-11-10 13:30:13 UTC
Lowering priority.
Comment 14 Milan Kubec 2009-05-05 09:35:29 UTC

*** This issue has been marked as a duplicate of 139769 ***