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 222249 - IllegalArgumentException: Already listening to /home/vriha/NetBeansProjects/HTML5Application16/public_html
Summary: IllegalArgumentException: Already listening to /home/vriha/NetBeansProjects/H...
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 7.3
Hardware: All All
: P1 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 222251 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-16 08:29 UTC by Vladimir Riha
Modified: 2012-11-18 22:57 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 195246


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-11-16 08:29:10 UTC
Build: NetBeans IDE Dev (Build 201211160001)
VM: Java HotSpot(TM) Client VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-ea-b15
OS: Linux

User Comments:
vriha: I can't create a new HTML project, every time this IAE pops up




Stacktrace: 
java.lang.IllegalArgumentException: Already listening to /home/vriha/NetBeansProjects/HTML5Application16/public_html
   at org.openide.filesystems.FileUtil.addFileChangeListener(FileUtil.java:291)
   at org.openide.filesystems.FileUtil.addRecursiveListener(FileUtil.java:410)
   at org.openide.filesystems.FileUtil.addRecursiveListener(FileUtil.java:337)
   at org.netbeans.modules.web.clientproject.ClientSideProject$OpenHookImpl.addSiteRootListener(ClientSideProject.java:451)
   at org.netbeans.modules.web.clientproject.ClientSideProject$OpenHookImpl.projectOpened(ClientSideProject.java:429)
   at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:84)
Comment 1 Vladimir Riha 2012-11-16 08:38:51 UTC
More exact steps to reproduce:
- create new HTML project, press Finish in the 2nd step of New Project wizard (I tried also go further and select some online template but result is the same)

The project seems to be created in file system, but not opened in IDE (only index.html file is opened in editor). If I try to open the project manually, another exception pops up (http://statistics.netbeans.org/exceptions/exception.do?id=629856). If I clear my userdir, then I can open the mentioned project.

User cannot create a new project or open just created => P1 from my point of view
Comment 2 Vladimir Riha 2012-11-16 09:07:34 UTC
*** Bug 222251 has been marked as a duplicate of this bug. ***
Comment 3 Tomas Mysik 2012-11-16 10:07:35 UTC
Will fix it.
Comment 4 Tomas Mysik 2012-11-16 10:28:03 UTC
The cause is that event from project.properties is fired _before_ project is opened.
Comment 5 Tomas Mysik 2012-11-16 10:45:20 UTC
Fixed, please verify. Thanks.
Davide, please review the changeset, thanks.

http://hg.netbeans.org/web-main/rev/a8d0f378cbfd
Comment 6 Vladimir Riha 2012-11-16 13:06:59 UTC
Verified. I can create and reopen just created and closed project

Product Version: NetBeans IDE Dev (Build web-main-9231-on-20121116)
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-b15
System: Linux version 3.2.0-32-generic-pae running on i386; UTF-8; en_US (nb)
Comment 7 Quality Engineering 2012-11-17 02:44:33 UTC
Integrated into 'main-golden', will be available in build *201211170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a8d0f378cbfd
User: Tomas Mysik <tmysik@netbeans.org>
Log: #222249 - IllegalArgumentException: Already listening to /home/vriha/NetBeansProjects/HTML5Application16/public_html
Comment 8 David Konecny 2012-11-18 22:57:19 UTC
(In reply to comment #5)
> Davide, please review the changeset, thanks.

Looks OK to me.