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.
This bug was originally marked as duplicate of bug 204432, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 20150518-781e7a6418c6) VM: Java HotSpot(TM) 64-Bit Server VM, 24.80-b11, Java(TM) SE Runtime Environment, 1.7.0_80-b15 OS: Linux User Comments: obrejla: Run JS tests. Stacktrace: java.lang.IllegalArgumentException: java.lang.ClassCastException@2d12f719 at sun.reflect.GeneratedMethodAccessor204.invoke(GeneratedMethodAccessor204.java:0) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.openide.util.WeakListenerImpl$ListenerReference.run(WeakListenerImpl.java:638) at org.openide.util.lookup.implspi.ActiveQueue$Daemon.run(ActiveQueue.java:192)
Created attachment 153902 [details] stacktrace
I don't see a connection with editor. There are other Exceptions in messages.log like java.lang.InterruptedException at java.lang.Object.wait(Native Method) at org.openide.util.Task.waitFinished(Task.java:164) at org.openide.util.RequestProcessor$Task.waitFinished(RequestProcessor.java:1736) at org.openide.util.Task.waitFinished(Task.java:204) [catch] at org.openide.loaders.FolderLookup$ProxyLkp.beforeLookup(FolderLookup.java:428) at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:214) at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:222) at org.openide.filesystems.Repository.getLocalRepository(Repository.java:415) at org.openide.filesystems.FileUtil.getConfigFile(FileUtil.java:2173)
In the stacktrace, there is no relation with JS testing. Unfortunately, it is not clear to me where to reassign. Please evaluate, thanks.
added more logging: #aea717b4afa4 I have no idea how this can happen, it looks as if removePropertyChangeListener was called with non-listener parameter, but who knows how that can happen, i was unable to reproduce.
Integrated into 'main-silver', will be available in build *201507300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/aea717b4afa4 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #252618 - IllegalArgumentException: java.lang.ClassCastException Add more logging to reveal listener's instance.
Reopening this bug based on new exception report: http://statistics.netbeans.org/exceptions/exception.do?id=789175
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=217552
Created attachment 155912 [details] stacktrace Editing Java code
Created attachment 156048 [details] stacktrace coding
Fix: http://hg.netbeans.org/core-main/rev/ee5560692523
Integrated into 'main-silver', will be available in build *201509160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/ee5560692523 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #252618 - IllegalArgumentException: java.lang.ClassCastException@2d12f719 Make sure weak listener is properly instantiated.