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 216069 - IllegalArgumentException: Was not listening to C:\Users\SXR3727\Documents\NetBeansProjects\ESBRepo\Alignment\src\wsdl
Summary: IllegalArgumentException: Was not listening to C:\Users\SXR3727\Documents\Net...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 214389 216496 219604 220123 220129 222421 223157 225040 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-27 13:52 UTC by sreder
Modified: 2013-02-11 10:30 UTC (History)
21 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 190885


Attachments
stacktrace (3.69 KB, text/plain)
2012-07-27 13:52 UTC, sreder
Details
stacktrace (3.75 KB, text/plain)
2012-07-30 16:06 UTC, Jesse Glick
Details
stacktrace (3.75 KB, text/plain)
2012-07-30 16:18 UTC, Jesse Glick
Details
stacktrace (3.41 KB, text/plain)
2012-07-31 01:42 UTC, Michel Graciano
Details
project to reproduce the issue (4.06 KB, application/x-zip-compressed)
2012-09-20 12:53 UTC, Milos Kleint
Details
stacktrace (1.23 KB, text/plain)
2012-09-26 13:26 UTC, mienamoo
Details
stacktrace (1.51 KB, text/plain)
2012-09-28 11:17 UTC, aldobrucale
Details
stacktrace (1.23 KB, text/plain)
2012-09-28 20:05 UTC, javydreamercsw
Details
stacktrace (1.20 KB, text/plain)
2012-10-04 08:59 UTC, lforet
Details
stacktrace (3.67 KB, text/plain)
2012-10-21 21:56 UTC, sunbiz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sreder 2012-07-27 13:52:08 UTC
Build: NetBeans IDE 7.2 (Build 201207171143)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.6-b01, Java(TM) SE Runtime Environment, 1.6.0_31-b05
OS: Windows 7

User Comments:
maximax: pom.xml:

<packaging>test-jar</packaging>

sreder: Added prerequisite to my pom.xml and saved it

GUEST: This happens if there is an error in a maven POM file




Stacktrace: 
java.lang.IllegalArgumentException: Was not listening to C:\Users\SXR3727\Documents\NetBeansProjects\ESBRepo\Alignment\src\wsdl
   at org.openide.filesystems.FileUtil.removeFileChangeListenerImpl(FileUtil.java:314)
   at org.openide.filesystems.FileUtil.removeRecursiveListener(FileUtil.java:423)
   at org.netbeans.modules.maven.cos.CopyResourcesOnSave.refresh(CopyResourcesOnSave.java:139)
   at org.netbeans.modules.maven.cos.CopyResourcesOnSave$1.propertyChange(CopyResourcesOnSave.java:91)
   at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
   at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
Comment 1 sreder 2012-07-27 13:52:11 UTC
Created attachment 122463 [details]
stacktrace
Comment 2 Jesse Glick 2012-07-30 16:06:35 UTC
Created attachment 122540 [details]
stacktrace

Changed parent POM version and did a clean build.
Comment 3 Exceptions Reporter 2012-07-30 16:06:45 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=190885
Comment 4 Jesse Glick 2012-07-30 16:18:40 UTC
Created attachment 122543 [details]
stacktrace
Comment 5 Michel Graciano 2012-07-31 01:42:33 UTC
Created attachment 122550 [details]
stacktrace
Comment 6 Exceptions Reporter 2012-08-06 07:45:48 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=190885
Comment 7 Milos Kleint 2012-09-20 12:37:40 UTC
*** Bug 216496 has been marked as a duplicate of this bug. ***
Comment 8 Milos Kleint 2012-09-20 12:53:19 UTC
Created attachment 124647 [details]
project to reproduce the issue

sample project demonstrating the issue.

1. open the project. please note that CoS is enabled. Build the project.
2. open pom.xml file. scroll to <build><resources> section.
3. comment the first <resource> with directory == src/main. Save pom file.
4. comment the second <resource> with directory == src/main/resources2. Save the pom. Error exception shows up.

please note that the main cause of the exception is that the 2 roots are in child parent relationship and the CopyResourcesOnSave class will attach the same listener to both of these roots to get notified of file changes (via FileUtil.addRecursiveListener())

when the first root gets commented out, the listener is removed from the entire tree and no more events are coming for changes in src/main/resources2 which I consider the main issue here. Not the exception thrown.
Comment 9 Milos Kleint 2012-09-20 12:53:52 UTC
reassigning to filesystems
Comment 10 mienamoo 2012-09-26 13:26:11 UTC
Created attachment 124940 [details]
stacktrace

I deleted some source files in one of my open projects and then switched project groups.
Comment 11 Jaroslav Tulach 2012-09-27 13:53:43 UTC
ergonomics#e1f659071a03
Comment 12 aldobrucale 2012-09-28 11:17:14 UTC
Created attachment 125067 [details]
stacktrace

editing /tmp/temp/pom.xml
Comment 13 javydreamercsw 2012-09-28 20:05:13 UTC
Created attachment 125078 [details]
stacktrace

Closing 28 Maven projects
Comment 14 Quality Engineering 2012-10-01 12:07:12 UTC
Integrated into 'main-golden', will be available in build *201210010929* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e1f659071a03
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #216069: IllegalArgumentException: Was not listening to C:\Users\SXR3727\Documents\NetBeansProjects\ESBRepo\Alignment\src\wsdl
#216069: Although the unit tests do not fully simulate the issue, let's mark this fixed, as I am unable to reproduce the issue anymore after the change in DeepListener's constructor.
Comment 15 lforet 2012-10-04 08:59:13 UTC
Created attachment 125364 [details]
stacktrace

I was closing maven project
Comment 16 Milos Kleint 2012-10-16 14:07:35 UTC
issue 220129 and issue 220123 demonstrate that the problem is still persisting in latest dev builds, reopening
Comment 17 Milos Kleint 2012-10-16 14:08:12 UTC
*** Bug 220123 has been marked as a duplicate of this bug. ***
Comment 18 Milos Kleint 2012-10-16 14:08:29 UTC
*** Bug 220129 has been marked as a duplicate of this bug. ***
Comment 19 sunbiz 2012-10-21 21:56:19 UTC
Created attachment 126277 [details]
stacktrace
Comment 20 Jaroslav Tulach 2012-10-30 09:53:59 UTC
*** Bug 219604 has been marked as a duplicate of this bug. ***
Comment 21 Jaroslav Tulach 2012-10-30 10:14:08 UTC
The problem is that we no longer have reproducible test case - the sample project scenario seems to work fine. I'll add more logging and one fix.
Comment 22 Jaroslav Tulach 2012-10-30 10:15:30 UTC
ergonomics#c3f0c08ebb62
Comment 23 Quality Engineering 2012-11-01 02:43:50 UTC
Integrated into 'main-golden', will be available in build *201211010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c3f0c08ebb62
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #216069: IllegalArgumentException: Was not listening to C:\Users\SXR3727\Documents\NetBeansProjects\ESBRepo\Alignment\src\wsdl
#216069: Logging of add/remove listener and immutable hashCode() of DeepListener
Comment 24 Milos Kleint 2012-11-20 09:28:59 UTC
*** Bug 222421 has been marked as a duplicate of this bug. ***
Comment 25 Tomas Zezula 2012-11-21 21:16:57 UTC
*** Bug 214389 has been marked as a duplicate of this bug. ***
Comment 26 Milos Kleint 2012-12-03 08:49:07 UTC
*** Bug 223157 has been marked as a duplicate of this bug. ***
Comment 27 Milos Kleint 2013-02-11 10:30:31 UTC
*** Bug 225040 has been marked as a duplicate of this bug. ***