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 252593 - IllegalArgumentException: Already a org.netbeans.modules.python.project2.PythonProject2 in /Users/stefano/Code/MoB/nidar-MoB@cf24fd70:154770f7
Summary: IllegalArgumentException: Already a org.netbeans.modules.python.project2.Pyth...
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks: 258165
  Show dependency tree
 
Reported: 2015-05-26 13:52 UTC by stefanocrosta
Modified: 2018-01-22 06:26 UTC (History)
15 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 216008


Attachments
stacktrace (2.08 KB, text/plain)
2015-05-26 13:52 UTC, stefanocrosta
Details
stacktrace (3.16 KB, text/plain)
2016-04-25 19:24 UTC, Alexander Kouznetsov
Details
stacktrace (2.23 KB, text/plain)
2016-12-13 15:51 UTC, imadbougataya
Details
stacktrace (2.23 KB, text/plain)
2016-12-13 15:54 UTC, imadbougataya
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stefanocrosta 2015-05-26 13:52:29 UTC
Build: NetBeans IDE Dev (Build 201505250001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26
OS: Mac OS X

User Comments:
stefanocrosta: creating (by mistake) a python project where one already exists - this should not be an Illegal ArgumentException though!

GUEST: I just opened an existing project.

GUEST: install Yii-basic




Stacktrace: 
java.lang.IllegalArgumentException: Already a org.netbeans.modules.python.project2.PythonProject2 in /Users/stefano/Code/MoB/nidar-MoB@cf24fd70:154770f7
   at org.netbeans.spi.project.support.ant.ProjectGenerator$1.run(ProjectGenerator.java:139)
   at org.netbeans.spi.project.support.ant.ProjectGenerator$1.run(ProjectGenerator.java:122)
   at org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:293)
   at org.openide.util.Mutex.writeAccess(Mutex.java:299)
   at org.netbeans.spi.project.support.ant.ProjectGenerator.createProject0(ProjectGenerator.java:122)
   at org.netbeans.spi.project.support.ant.ProjectGenerator.createProject(ProjectGenerator.java:103)
Comment 1 stefanocrosta 2015-05-26 13:52:31 UTC
Created attachment 153876 [details]
stacktrace
Comment 2 Exceptions Reporter 2015-08-28 15:38:54 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=216008
Comment 3 Exceptions Reporter 2016-01-18 13:57:40 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=216008
Comment 4 Alexander Kouznetsov 2016-04-25 19:24:00 UTC
Created attachment 159431 [details]
stacktrace

When working on a gradle project.
Comment 5 Tomas Stupka 2016-08-03 15:07:54 UTC
would be great is somebody from the reporters were able to provide a step by step scenario how to reproduce (with a sample project if necessary)

thanks
Comment 6 imadbougataya 2016-12-13 15:51:46 UTC
Created attachment 163222 [details]
stacktrace

creating a php app
Comment 7 imadbougataya 2016-12-13 15:54:46 UTC
Created attachment 163223 [details]
stacktrace

creating a php app with symfony
Comment 8 Jenselme 2017-06-27 21:05:02 UTC
With the Python modules, I can reproduce this by cloning this repository https://github.com/geoadmin/mf-chsdi3 with NetBeans and opening it directly with the popup that proposes it.

I was not able to really understand why this happen. From what I see, the isProject method from PythonProjectFactory is called multiple times. Maybe the problem comes from this.

In the meantime, you can work around this by not opening the project directly with the popup but manually later.