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 204432 - editor.lib2.highlighting.SyntaxHighlighting: IllegalArgumentException & ClassCastException@18bb555
Summary: editor.lib2.highlighting.SyntaxHighlighting: IllegalArgumentException & Class...
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 204482 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-31 10:39 UTC by Vladimir Voskresensky
Modified: 2011-11-21 14:40 UTC (History)
11 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 182230


Attachments
stacktrace (519 bytes, text/plain)
2011-10-31 10:39 UTC, Vladimir Voskresensky
Details
stacktrace (519 bytes, text/plain)
2011-10-31 14:41 UTC, Jiri Prox
Details
stacktrace (518 bytes, text/plain)
2011-11-01 11:32 UTC, Vladimir Riha
Details
stacktrace (519 bytes, text/plain)
2011-11-03 08:45 UTC, Marek Fukala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2011-10-31 10:39:43 UTC
Build: NetBeans IDE Dev (Build 20111031-1f97da8e2d49)
VM: Java HotSpot(TM) Server VM, 20.4-b02, Java(TM) SE Runtime Environment, 1.6.0_29-b11
OS: SunOS

User Comments:
vv159170: Tools->Options->Fonts&Colors, change item in Language combo

GUEST: What I was doing at the moment when this happened, was just setting a new theme and playing with the colors.

GUEST: Opening a .cpp file from the Projects panel




Stacktrace: 
java.lang.IllegalArgumentException: java.lang.ClassCastException@18bb555
   at sun.reflect.GeneratedMethodAccessor56.invoke(GeneratedMethodAccessor56.java:0)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.openide.util.WeakListenerImpl$ListenerReference.run(WeakListenerImpl.java:599)
   at org.openide.util.lookup.implspi.ActiveQueue$Impl.run(ActiveQueue.java:109)
   at java.lang.Thread.run(Thread.java:662)
Comment 1 Vladimir Voskresensky 2011-10-31 10:39:46 UTC
Created attachment 112589 [details]
stacktrace
Comment 2 Marian Mirilovic 2011-10-31 14:37:42 UTC
Core guys please reassign accurately, thanks in advance.
Comment 3 Jiri Prox 2011-10-31 14:41:51 UTC
Created attachment 112601 [details]
stacktrace

IAE when changing color setting (userdir imported from 6.9.1)
Comment 4 Antonin Nebuzelsky 2011-10-31 15:02:29 UTC
Jardo, any clue why this is not caught in the catch block inside ActiveQueue$Impl.run()?

Does the exception mean someone put something in the queue which is not Runnable? Any way to tell the culprit?
Comment 5 Vladimir Voskresensky 2011-10-31 15:49:16 UTC
I had never imported any settings...
Comment 6 Vladimir Riha 2011-11-01 11:32:53 UTC
Created attachment 112651 [details]
stacktrace

Going to Tools|Options|Fonts&Colors|Syntax, changed language to Cascading Style Sheet and focusing randomly items in Category
Comment 7 Vladimir Voskresensky 2011-11-02 07:33:56 UTC
*** Bug 204482 has been marked as a duplicate of this bug. ***
Comment 8 Marek Fukala 2011-11-03 08:45:23 UTC
Created attachment 112763 [details]
stacktrace

went through items in coloring preferences
Comment 9 MackSix 2011-11-13 01:39:54 UTC
MackSix: Tools>>Options>>Fonts & Colors>>Syntax tab>>Category:

Click up each category one at a time from bottom and this exception is thrown. 

Choose items in Language combo box one at a time and this exception is thrown.

This is repeatable.

Product Version: NetBeans IDE Dev (Build 201111110600)
Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 10 Jaroslav Tulach 2011-11-13 08:08:15 UTC
Problem encountered while calling class org.netbeans.modules.editor.lib2.highlighting.SyntaxHighlighting$FCSInfo.removeChangeListener(...) on class org.netbeans.modules.editor.lib2.highlighting.SyntaxHighlighting$FCSInfo
Comment 11 Svata Dedic 2011-11-14 15:43:14 UTC
Changeset: 00c46090d629
Author:    Svata Dedic <sdedic@netbeans.org>
Date:      2011-11-14 16:43
Message:   #204432: Events must carry correct source object otherwise WeakListener support may fail.
Issue #204432 - editor.lib2.highlighting.SyntaxHighlighting: IllegalArgumentException & ClassCastException@18bb555: fixed
Comment 12 Quality Engineering 2011-11-16 15:47:59 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/00c46090d629
User: Svata Dedic <sdedic@netbeans.org>
Log: #204432: Events must carry correct source object otherwise WeakListener support may fail.
Issue #204432 - editor.lib2.highlighting.SyntaxHighlighting: IllegalArgumentException & ClassCastException@18bb555: fixed
Comment 13 Vladimir Riha 2011-11-21 14:40:50 UTC
verified

Product Version: NetBeans IDE Dev (Build 201111200600)