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 211588 - IAE: ProblemReporterImpl$2 was not listening to .../repository/.../art-1.2.3.jar; only to [.../repository_test/.../art-1.2.3.jar]
Summary: IAE: ProblemReporterImpl$2 was not listening to .../repository/.../art-1.2.3....
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
: 212979 214046 214047 214566 214838 214840 215395 215631 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-23 12:33 UTC by jmborer
Modified: 2012-07-18 07:06 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 183525


Attachments
stacktrace (3.46 KB, text/plain)
2012-04-23 12:33 UTC, jmborer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jmborer 2012-04-23 12:33:01 UTC
Build: NetBeans IDE Dev (Build 201204170400)
VM: Java HotSpot(TM) Client VM, 20.5-b03, Java(TM) SE Runtime Environment, 1.6.0_30-b12
OS: Windows XP

User Comments:
jmborer: Occured after having save Maven's settings.xml file




Stacktrace: 
java.lang.IllegalArgumentException: org.netbeans.modules.maven.problems.ProblemReporterImpl$2@1879313 was not listening to H:\projects\maven\.m2\repository\ch\skyguide\nimbus\nimbus-isup\1.2.9-SNAPSHOT\nimbus-isup-1.2.9-SNAPSHOT.jar; only to [H:\projects\maven\.m2\repository_test\ch\skyguide\nimbus\nimbus-isup\1.2.9-SNAPSHOT\nimbus-isup-1.2.9-SNAPSHOT.jar]
   at org.openide.filesystems.FileUtil.removeFileChangeListenerImpl(FileUtil.java:316)
   at org.openide.filesystems.FileUtil.removeFileChangeListener(FileUtil.java:305)
   at org.netbeans.modules.maven.problems.ProblemReporterImpl.clearReports(ProblemReporterImpl.java:254)
   at org.netbeans.modules.maven.NbMavenProjectImpl.fireProjectReload(NbMavenProjectImpl.java:405)
   at org.netbeans.modules.maven.api.NbMavenProject.fireProjectReload(NbMavenProject.java:497)
   at org.netbeans.modules.maven.api.NbMavenProject.fireMavenProjectReload(NbMavenProject.java:516)
Comment 1 jmborer 2012-04-23 12:33:06 UTC
Created attachment 118631 [details]
stacktrace
Comment 2 Jesse Glick 2012-04-23 13:15:08 UTC
Presumably after changing local repository location.

I guess ProblemReporterImpl needs to listen to changes in this location, and just throw away everything it knows in such a case (let listeners be GC'd but do not try to detach them).
Comment 3 jmborer 2012-04-23 15:28:17 UTC
Exactly, before the error I just changed the local repository path in my settings.xml file.
Comment 4 jmborer 2012-04-23 15:29:37 UTC
Maybe I was not clear. The error occured as I tried to save my setting.xml file where I just changed the path of the local repository.
Comment 5 Milos Kleint 2012-04-25 12:37:28 UTC
always remove from the same location that was added:
http://hg.netbeans.org/core-main/rev/637a2be0dda0
Comment 6 Quality Engineering 2012-04-26 10:33:26 UTC
Integrated into 'main-golden', will be available in build *201204260400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/637a2be0dda0
User: Milos Kleint <mkleint@netbeans.org>
Log: #211588 always remove listener from the same file that was used for adding
Comment 7 Jesse Glick 2012-05-25 16:12:44 UTC
*** Bug 212979 has been marked as a duplicate of this bug. ***
Comment 8 Jesse Glick 2012-06-12 16:50:48 UTC
*** Bug 214046 has been marked as a duplicate of this bug. ***
Comment 9 Jesse Glick 2012-06-12 16:53:27 UTC
*** Bug 214047 has been marked as a duplicate of this bug. ***
Comment 10 Milos Kleint 2012-06-21 10:25:45 UTC
*** Bug 214566 has been marked as a duplicate of this bug. ***
Comment 11 Milos Kleint 2012-06-27 07:24:38 UTC
*** Bug 214840 has been marked as a duplicate of this bug. ***
Comment 12 Milos Kleint 2012-07-16 08:00:59 UTC
*** Bug 215395 has been marked as a duplicate of this bug. ***
Comment 13 Milos Kleint 2012-07-16 13:48:41 UTC
*** Bug 214838 has been marked as a duplicate of this bug. ***
Comment 14 Milos Kleint 2012-07-18 07:06:42 UTC
*** Bug 215631 has been marked as a duplicate of this bug. ***