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.
Summary: | IllegalArgumentException: Was not listening to C:\Users\SXR3727\Documents\NetBeansProjects\ESBRepo\Alignment\src\wsdl | ||
---|---|---|---|
Product: | platform | Reporter: | sreder |
Component: | Filesystems | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | 452, aldobrucale, cdicarlo, crazyjavahacking, davotoula, ehsavoie, emiddio, exceptions_reporter, hmichel, i30817, javydreamercsw, jglick, KhArtNJava, lforet, lolo_101, maximax, medeag, mienamoo, mkleint, rptmaestro, sunbiz |
Priority: | P3 | ||
Version: | 7.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 190885 |
Attachments: |
stacktrace
stacktrace stacktrace stacktrace project to reproduce the issue stacktrace stacktrace stacktrace stacktrace stacktrace |
Description
sreder
2012-07-27 13:52:08 UTC
Created attachment 122463 [details]
stacktrace
Created attachment 122540 [details]
stacktrace
Changed parent POM version and did a clean build.
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=190885 Created attachment 122543 [details]
stacktrace
Created attachment 122550 [details]
stacktrace
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=190885 *** Bug 216496 has been marked as a duplicate of this bug. *** 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.
reassigning to filesystems Created attachment 124940 [details]
stacktrace
I deleted some source files in one of my open projects and then switched project groups.
ergonomics#e1f659071a03 Created attachment 125067 [details]
stacktrace
editing /tmp/temp/pom.xml
Created attachment 125078 [details]
stacktrace
Closing 28 Maven projects
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. Created attachment 125364 [details]
stacktrace
I was closing maven project
issue 220129 and issue 220123 demonstrate that the problem is still persisting in latest dev builds, reopening *** Bug 220123 has been marked as a duplicate of this bug. *** *** Bug 220129 has been marked as a duplicate of this bug. *** Created attachment 126277 [details]
stacktrace
*** Bug 219604 has been marked as a duplicate of this bug. *** 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. ergonomics#c3f0c08ebb62 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 *** Bug 222421 has been marked as a duplicate of this bug. *** *** Bug 214389 has been marked as a duplicate of this bug. *** *** Bug 223157 has been marked as a duplicate of this bug. *** *** Bug 225040 has been marked as a duplicate of this bug. *** |