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 141204 - AssertionError: More than 1 source root found
Summary: AssertionError: More than 1 source root found
Status: VERIFIED DUPLICATE of bug 141200
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Tomas Mysik
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-22 17:10 UTC by Petr Pisl
Modified: 2008-12-26 18:16 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 80226


Attachments
stacktrace (56 bytes, text/plain)
2008-07-23 11:56 UTC, Petr Dvorak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2008-07-22 17:10:37 UTC
Basically I'm not able to create php project in my ~/NetBeansProjects folder. 

Create a new project and in the first panel select as the source folder the ~/NetBeansProjects/Projectname item.
Everything leave by default and try to finish the wizard.

Build: NetBeans IDE Dev (Build 080722)
VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25
OS: Linux, 2.6.24-19-generic, i386
User comments: 
STACKTRACE: (first 10 lines)
java.lang.AssertionError: More than 1 source root found
        at org.netbeans.modules.php.project.Utils.getSourceGroups(Utils.java:63)
        at org.netbeans.modules.php.project.Utils.getSourceObjects(Utils.java:68)
        at org.netbeans.modules.php.project.PhpProject.<init>(PhpProject.java:109)
        at org.netbeans.modules.php.project.PhpProjectType.createProject(PhpProjectType.java:64)
        at
org.netbeans.modules.project.ant.AntBasedProjectFactorySingleton.loadProject(AntBasedProjectFactorySingleton.java:194)
        at org.netbeans.api.project.ProjectManager.createProject(ProjectManager.java:368)
        at org.netbeans.api.project.ProjectManager.access$300(ProjectManager.java:80)
        at org.netbeans.api.project.ProjectManager$3.run(ProjectManager.java:289)
        at org.netbeans.api.project.ProjectManager$3.run(ProjectManager.java:242)
        at org.openide.util.Mutex.readAccess(Mutex.java:327)
Comment 1 Petr Pisl 2008-07-22 17:12:05 UTC
Hmm, I'm not able to create new PHP project in any way. I always obtain the assertion error.
Comment 2 Petr Pisl 2008-07-22 17:15:16 UTC
I'm sorry, this is probably caused by my changes on my disk. 
Comment 3 Tomas Mysik 2008-07-23 08:50:08 UTC
Not necessary - I have to probably remove the assertion...
Comment 4 Petr Dvorak 2008-07-23 11:56:18 UTC
Build: NetBeans IDE Dev (Build 200807221016)
VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26
OS: Linux, 2.6.24-19-generic, i386

User Comments: 
Comment 5 Petr Dvorak 2008-07-23 11:56:21 UTC
Created attachment 65353 [details]
stacktrace
Comment 6 Petr Dvorak 2008-07-23 11:59:24 UTC
Product Version: NetBeans IDE Dev (Build 200807221016)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)

Just reproduced, I attempted to create a PHP Application and this AE is thrown... I will reopen this issue now as a
project is never created - I am unable to create a PHP project now.
Comment 7 Exceptions Reporter 2008-07-23 13:09:09 UTC
This issue has already 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=80226
Comment 8 Tomas Mysik 2008-07-23 13:09:36 UTC
Fixed in trunk.

*** This issue has been marked as a duplicate of 141200 ***
Comment 9 Quality Engineering 2008-07-23 17:21:02 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #340 build
Changeset: http://hg.netbeans.org/main/rev/536ca9dcbaad
User: Tomas Mysik <tmysik@netbeans.org>
Log: #141200: PHP project can't be created

And some others, e.g. #141204 or #141229.
Comment 10 Mikhail Matveev 2008-12-26 14:28:42 UTC
Petr, Tomasch, is there a way to verify this?
Comment 11 Mikhail Matveev 2008-12-26 18:14:13 UTC
Oops, sorry, please ignore the previous comment.
Comment 12 Mikhail Matveev 2008-12-26 18:16:18 UTC
Verified