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 230466 - IllegalArgumentException: Listener not registered.
Summary: IllegalArgumentException: Listener not registered.
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-29 15:04 UTC by alied
Modified: 2013-06-05 09:34 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 200562


Attachments
stacktrace (711 bytes, text/plain)
2013-05-29 15:04 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alied 2013-05-29 15:04:35 UTC
Build: NetBeans IDE Dev (Build 201305212300)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Windows 7

User Comments:
sony3002: opened ide and this exception poped up

chrisbad: startup after install and auto open some xhtml-files

alied: Did clean and build on a top mavem project.




Stacktrace: 
java.lang.IllegalArgumentException: Listener not registered.
   at java.util.prefs.AbstractPreferences.removePreferenceChangeListener(AbstractPreferences.java:1061)
   at org.netbeans.modules.maven.queries.Info.removePropertyChangeListener(Info.java:197)
   at sun.reflect.GeneratedMethodAccessor59.invoke(GeneratedMethodAccessor59.java:0)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.openide.util.WeakListenerImpl$ListenerReference.run(WeakListenerImpl.java:592)
Comment 1 alied 2013-05-29 15:04:37 UTC
Created attachment 135080 [details]
stacktrace
Comment 2 Milos Kleint 2013-06-04 11:48:25 UTC
http://hg.netbeans.org/core-main/rev/9a90f95e19df

make sure we only remove listener when our own count reaches zero, not when it already was before.
Comment 3 Quality Engineering 2013-06-05 09:34:31 UTC
Integrated into 'main-golden', will be available in build *201306050626* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9a90f95e19df
User: Milos Kleint <mkleint@netbeans.org>
Log: #230466 only remove the external listeners when our listener list shrinks to zero, not when external code is calling it repeatedly on empty list.