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 165869 - IllegalArgumentException: Already listening to /Users/tor/designer/clone/Tool/test
Summary: IllegalArgumentException: Already listening to /Users/tor/designer/clone/Tool...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jan Jancura
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
: 166355 169008 170353 170691 170873 172760 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-23 06:01 UTC by Torbjorn Norbye
Modified: 2009-10-31 08:51 UTC (History)
50 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 151487


Attachments
stacktrace (6.48 KB, text/plain)
2009-05-23 06:01 UTC, Torbjorn Norbye
Details
stacktrace (2.66 KB, text/plain)
2009-05-28 16:52 UTC, Oleg Khokhlov
Details
stacktrace (4.57 KB, text/plain)
2009-06-01 16:40 UTC, Oleg Khokhlov
Details
stacktrace (2.13 KB, text/plain)
2009-06-05 15:02 UTC, Vojtech Sigler
Details
stacktrace (1.49 KB, text/plain)
2009-07-01 04:34 UTC, swpalmer
Details
stacktrace (6.25 KB, text/plain)
2009-07-07 20:47 UTC, giorgio42
Details
stacktrace (2.61 KB, text/plain)
2009-07-09 12:35 UTC, Ivan Sidorkin
Details
stacktrace (6.55 KB, text/plain)
2009-07-13 17:55 UTC, Martin Schovanek
Details
stacktrace (1.46 KB, text/plain)
2009-07-15 10:41 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torbjorn Norbye 2009-05-23 06:01:00 UTC
Build: NetBeans IDE Dev (Build 090521)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02-77, Java(TM) SE Runtime Environment, 1.6.0_13-b03-196
OS: Mac OS X, 10.5.7, x86_64

User Comments:
tor: I just started the IDE and this exception dialog came up.



Stacktrace: 
org.openide.util.RequestProcessor$Item: task failed due to: java.lang.IllegalArgumentException: Already listening to /Users/tor/designer/clone/Tool/test
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:267)
        at org.netbeans.modules.java.JavaNode.<init>(JavaNode.java:123)
        at org.netbeans.api.java.loaders.JavaDataSupport.createJavaNode(JavaDataSupport.java:88)
        at org.netbeans.modules.java.JavaDataObject.createNodeDelegate(JavaDataObject.java:100)
        at org.openide.loaders.DataObject$1.run(DataObject.java:285)
        at org.openide.util.Mutex.readAccess(Mutex.java:362)
Comment 1 Torbjorn Norbye 2009-05-23 06:01:07 UTC
Created attachment 82683 [details]
stacktrace
Comment 2 Oleg Khokhlov 2009-05-28 16:52:15 UTC
Build: NetBeans IDE 6.7 RC1 (Build 200905270001)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments: 
IDE was frozen, I killed it and restarted

Stacktrace: 
java.lang.IllegalArgumentException: Already listening to C:\WORK\dashboard\webapps\performancedashboard\AllInOnePerformanceDashboard\src\java
        at org.openide.filesystems.FileUtil.addFileChangeListener(FileUtil.java:242)
        at org.netbeans.modules.java.api.common.SourceRoots$ProjectMetadataListener.add(SourceRoots.java:511)
        at org.netbeans.modules.java.api.common.SourceRoots$4.run(SourceRoots.java:257)
        at org.netbeans.modules.java.api.common.SourceRoots$4.run(SourceRoots.java:235)
        at org.openide.util.Mutex.readAccess(Mutex.java:285)
        at org.netbeans.modules.java.api.common.SourceRoots.getRootURLs(SourceRoots.java:235)
Comment 3 Oleg Khokhlov 2009-05-28 16:52:27 UTC
Created attachment 82926 [details]
stacktrace
Comment 4 Oleg Khokhlov 2009-06-01 16:40:03 UTC
Build: NetBeans IDE Dev (Build 200906010201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b02
OS: Windows XP, 5.1, x86

User Comments: 
just created new javaapp;

Stacktrace: 
java.lang.reflect.UndeclaredThrowableException
        at $Proxy1.fileFolderCreated(.java:0)
        at org.openide.filesystems.FileUtil$Holder.someChange(FileUtil.java:334)
        at org.openide.filesystems.FileUtil$Holder.fileDataCreated(FileUtil.java:374)
        at org.openide.filesystems.FCLSupport$DispatchEventWrapper.dispatchEventImpl(FCLSupport.java:130)
        at org.openide.filesystems.FCLSupport$DispatchEventWrapper.dispatchEvent(FCLSupport.java:122)
        at org.openide.filesystems.FCLSupport.dispatchEvent(FCLSupport.java:99)
Comment 5 Oleg Khokhlov 2009-06-01 16:40:06 UTC
Created attachment 83073 [details]
stacktrace
Comment 6 Jiri Skrivanek 2009-06-02 07:30:16 UTC
Should not register the same listener twice for the same file.
Comment 7 Jiri Skrivanek 2009-06-02 07:31:49 UTC
*** Issue 166355 has been marked as a duplicate of this issue. ***
Comment 8 Vojtech Sigler 2009-06-05 15:01:45 UTC
Build: NetBeans IDE 6.7 RC2 (Build 200906042131)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Linux, 2.6.28-11-generic, i386

User Comments: 
Opened "HTTP Server Monitor" and restarted the IDE

Stacktrace: 
java.lang.IllegalArgumentException: Already listening to /home/sigi/develop/MemoryView/test
        at org.openide.filesystems.FileUtil.addFileChangeListener(FileUtil.java:242)
        at org.netbeans.modules.java.api.common.SourceRoots$ProjectMetadataListener.add(SourceRoots.java:511)
        at org.netbeans.modules.java.api.common.SourceRoots$4.run(SourceRoots.java:257)
        at org.netbeans.modules.java.api.common.SourceRoots$4.run(SourceRoots.java:235)
        at org.openide.util.Mutex.readAccess(Mutex.java:285)
        at org.netbeans.modules.java.api.common.SourceRoots.getRootURLs(SourceRoots.java:235)
Comment 9 Vojtech Sigler 2009-06-05 15:02:01 UTC
Created attachment 83240 [details]
stacktrace
Comment 10 Exceptions Reporter 2009-06-23 00:17:55 UTC
This issue already has 24 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=151487
Comment 11 swpalmer 2009-07-01 04:34:36 UTC
Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Windows 7, 6.1, amd64

User Comments: 
Opened a few JavaSE projects after creating a group with what I already had open.

Stacktrace: 
java.lang.IllegalArgumentException: Already listening to C:\Users\scott\dev\StreamTrunk\StreamJava\BatchProcessor\test
        at org.openide.filesystems.FileUtil.addFileChangeListener(FileUtil.java:242)
        at org.netbeans.modules.java.api.common.SourceRoots$ProjectMetadataListener.add(SourceRoots.java:511)
        at org.netbeans.modules.java.api.common.SourceRoots$4.run(SourceRoots.java:257)
        at org.netbeans.modules.java.api.common.SourceRoots$4.run(SourceRoots.java:235)
        at org.openide.util.Mutex.readAccess(Mutex.java:285)
        at org.netbeans.modules.java.api.common.SourceRoots.getRootURLs(SourceRoots.java:235)
Comment 12 swpalmer 2009-07-01 04:34:42 UTC
Created attachment 84213 [details]
stacktrace
Comment 13 giorgio42 2009-07-07 20:47:11 UTC
Build: NetBeans IDE Dev (Build 090704)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.0-b05, Java(TM) SE Runtime Environment, 1.7.0-ea-b63
OS: Windows Vista, 6.0, amd64

User Comments: 
On opening main window. Definitely looks like a regression to me. I saw this during in daily builds of 6.7.

Stacktrace: 
java.lang.IllegalArgumentException: Already listening to C:\home\a0796942\projects\ffabmit\apps\ee\pmsystem\core\test
        at org.openide.filesystems.FileUtil.addFileChangeListener(FileUtil.java:242)
        at org.netbeans.modules.java.api.common.SourceRoots$ProjectMetadataListener.add(SourceRoots.java:511)
        at org.netbeans.modules.java.api.common.SourceRoots$4.run(SourceRoots.java:257)
        at org.netbeans.modules.java.api.common.SourceRoots$4.run(SourceRoots.java:235)
        at org.openide.util.Mutex.readAccess(Mutex.java:285)
        at org.netbeans.modules.java.api.common.SourceRoots.getRootURLs(SourceRoots.java:235)
Comment 14 giorgio42 2009-07-07 20:47:18 UTC
Created attachment 84466 [details]
stacktrace
Comment 15 Exceptions Reporter 2009-07-07 20:47:25 UTC
This issue already has 51 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=151487
Comment 16 Ivan Sidorkin 2009-07-09 12:34:59 UTC
Build: NetBeans IDE Dev (Build 200907060200)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b02
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.IllegalArgumentException: Already listening to C:\Documents and Settings\is153249\My Documents\NetBeansProjects\JavaApplication6\test
        at org.openide.filesystems.FileUtil.addFileChangeListener(FileUtil.java:242)
        at org.netbeans.modules.java.api.common.SourceRoots$ProjectMetadataListener.add(SourceRoots.java:511)
        at org.netbeans.modules.java.api.common.SourceRoots$4.run(SourceRoots.java:257)
        at org.netbeans.modules.java.api.common.SourceRoots$4.run(SourceRoots.java:235)
        at org.openide.util.Mutex.readAccess(Mutex.java:285)
        at org.netbeans.modules.java.api.common.SourceRoots.getRootURLs(SourceRoots.java:235)
Comment 17 Ivan Sidorkin 2009-07-09 12:35:04 UTC
Created attachment 84539 [details]
stacktrace
Comment 18 Martin Schovanek 2009-07-13 17:55:30 UTC
Build: NetBeans IDE Dev (Build 200907130200)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02-83, Java(TM) SE Runtime Environment, 1.6.0_13-b03-211
OS: Mac OS X, 10.5.7, x86_64

User Comments: 
Just started IDE with opened Web Project.

Stacktrace: 
java.lang.IllegalArgumentException: Already listening to /Users/ms113234/NetBeansProjects/javapetstore-2.0-ea5/src/java
        at org.openide.filesystems.FileUtil.addFileChangeListener(FileUtil.java:242)
        at org.netbeans.modules.java.api.common.SourceRoots$ProjectMetadataListener.add(SourceRoots.java:511)
        at org.netbeans.modules.java.api.common.SourceRoots$4.run(SourceRoots.java:257)
        at org.netbeans.modules.java.api.common.SourceRoots$4.run(SourceRoots.java:235)
        at org.openide.util.Mutex.readAccess(Mutex.java:285)
        at org.netbeans.modules.java.api.common.SourceRoots.getRootURLs(SourceRoots.java:235)
Comment 19 Martin Schovanek 2009-07-13 17:55:37 UTC
Created attachment 84670 [details]
stacktrace
Comment 20 Jiri Prox 2009-07-15 10:41:21 UTC
Build: NetBeans IDE 6.7.1 RC (Build 200907150227)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.24-23-generic, i386

User Comments: 
IAE when starting ide

Stacktrace: 
java.lang.IllegalArgumentException: Already listening to /space/projects/JavaLibrary1/test<br/>
        at org.openide.filesystems.FileUtil.addFileChangeListener(FileUtil.java:242)<br/>
        at org.netbeans.modules.java.api.common.SourceRoots$ProjectMetadataListener.add(SourceRoots.java:511)<br/>
        at org.netbeans.modules.java.api.common.SourceRoots$4.run(SourceRoots.java:257)<br/>
        at org.netbeans.modules.java.api.common.SourceRoots$4.run(SourceRoots.java:235)<br/>
        at org.openide.util.Mutex.readAccess(Mutex.java:285)<br/>
        at org.netbeans.modules.java.api.common.SourceRoots.getRootURLs(SourceRoots.java:235)<br/>
Comment 21 Jiri Prox 2009-07-15 10:41:43 UTC
Created attachment 84760 [details]
stacktrace
Comment 22 giorgio42 2009-07-20 20:29:41 UTC
This bug report exists since May and the exception reporter counted more than 50 duplicates, yet nobody cares (i.e.
kicks Jan's butt ;-)). All that ever happened was that somebody changed it from P1 to P2.

Sometimes I miss Kurt Olson.
Comment 23 Martin Schovanek 2009-07-21 09:10:34 UTC
By Bug Priority Guidelines 85 duplicates is P1 and should be fixed for Nb6.8 M1.
Comment 24 David Strupl 2009-07-21 12:11:28 UTC
Georg, I have changed the priority and I will try to kick Jan's butt but I cannot promise any outcome ;-) BTW who is
Kurt Olson? Is it this person http://en.wikipedia.org/wiki/Kurt_Olson ?
Comment 25 Jan Jancura 2009-07-21 13:18:32 UTC
I have improved some logging, but I have no idea how to fix it now.

- Can you attach IDE log, please?
- is it regular, or random?
- can you attach some "how to reproduce" + content of your userdir, please?
Thanks
Comment 26 Ivan Sidorkin 2009-07-21 13:26:08 UTC
jjancura, you can check ide log on http://statistics.netbeans.org/exceptions/detail.do?id=151487
Comment 27 Exceptions Reporter 2009-07-29 09:39:02 UTC
This issue already has 100 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=151487
Comment 28 Marian Mirilovic 2009-07-29 09:55:07 UTC
1. 100 duplicates and no request in Exceptions report
2. there are also reports from builds after jjancura's latest changes

1 & 2 -> can't be INCOMPLETE

Comment 29 Exceptions Reporter 2009-07-29 10:03:45 UTC
This issue already has 101 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=151487
Comment 30 Exceptions Reporter 2009-07-29 18:04:19 UTC
This issue already has 103 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=151487
Comment 31 Jan Jancura 2009-07-30 13:38:36 UTC
fixed in: 4abc689511d6
Comment 32 Quality Engineering 2009-07-31 06:01:28 UTC
Integrated into 'main-golden', will be available in build *200907310201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/4abc689511d6
User: Jan Jancura <jjancura@netbeans.org>
Log: #165869: IllegalArgumentException: Already listening to /Users/tor/designer/clone/Tool/test
Comment 33 Jiri Skrivanek 2009-08-14 09:03:55 UTC
*** Issue 170353 has been marked as a duplicate of this issue. ***
Comment 34 Jan Lahoda 2009-08-21 15:19:47 UTC
*** Issue 170691 has been marked as a duplicate of this issue. ***
Comment 35 Jan Lahoda 2009-08-21 15:20:14 UTC
A more correct fix, IMO:
http://hg.netbeans.org/jet-main/rev/e10e4a963224
Comment 36 Jan Lahoda 2009-08-21 15:25:10 UTC
*** Issue 169008 has been marked as a duplicate of this issue. ***
Comment 37 Quality Engineering 2009-08-25 02:45:57 UTC
Integrated into 'main-golden', will be available in build *200908242212* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e10e4a963224
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #165869: addFileChangeListener at most once for each file.
Comment 38 Jan Lahoda 2009-08-27 09:57:34 UTC
*** Issue 170873 has been marked as a duplicate of this issue. ***
Comment 39 Jan Lahoda 2009-09-24 09:11:25 UTC
*** Issue 172760 has been marked as a duplicate of this issue. ***