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 252618 - IllegalArgumentException: java.lang.ClassCastException@2d12f719
Summary: IllegalArgumentException: java.lang.ClassCastException@2d12f719
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Diff (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-27 13:19 UTC by Ondrej Brejla
Modified: 2015-09-17 09:01 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 217552


Attachments
stacktrace (480 bytes, text/plain)
2015-05-27 13:19 UTC, Ondrej Brejla
Details
stacktrace (479 bytes, text/plain)
2015-09-04 22:27 UTC, inonit
Details
stacktrace (480 bytes, text/plain)
2015-09-10 11:13 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Brejla 2015-05-27 13:19:40 UTC
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)
Comment 1 Ondrej Brejla 2015-05-27 13:19:42 UTC
Created attachment 153902 [details]
stacktrace
Comment 2 Milutin Kristofic 2015-07-16 15:24:31 UTC
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)
Comment 3 Milutin Kristofic 2015-07-16 15:24:43 UTC
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)
Comment 4 Tomas Mysik 2015-07-29 06:00:44 UTC
In the stacktrace, there is no relation with JS testing. Unfortunately, it is not clear to me where to reassign. Please evaluate, thanks.
Comment 5 Ondrej Vrabec 2015-07-29 09:03:02 UTC
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.
Comment 6 Quality Engineering 2015-07-30 01:24:09 UTC
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.
Comment 7 Petah 2015-08-13 06:20:51 UTC
Reopening this bug based on new exception report: http://statistics.netbeans.org/exceptions/exception.do?id=789175
Comment 8 Exceptions Reporter 2015-08-31 17:45:16 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=217552
Comment 9 inonit 2015-09-04 22:27:40 UTC
Created attachment 155912 [details]
stacktrace

Editing Java code
Comment 10 Exceptions Reporter 2015-09-10 11:13:06 UTC
Created attachment 156048 [details]
stacktrace

coding
Comment 11 Ondrej Vrabec 2015-09-14 15:31:39 UTC
Fix: http://hg.netbeans.org/core-main/rev/ee5560692523
Comment 12 Quality Engineering 2015-09-16 01:27:23 UTC
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.