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 149765 - ClassCastException: org.netbeans.modules.ruby.rubyproject.GotoTest cannot be cast to javax.swing.Action
Summary: ClassCastException: org.netbeans.modules.ruby.rubyproject.GotoTest cannot be ...
Status: RESOLVED DUPLICATE of bug 149764
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jiri Rechtacek
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-10 13:38 UTC by Lukas Hasik
Modified: 2009-02-19 22:53 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 7452


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2008-10-10 13:38:24 UTC
Build: NetBeans Ruby IDE 20071012130128
VM: Java HotSpot(TM) Client VM, 1.6.0-b105
OS: Linux, 2.6.20-16-386, i386
User comments: 
STACKTRACE: (first 10 lines)
java.lang.ClassCastException: org.netbeans.modules.ruby.rubyproject.GotoTest cannot be cast to javax.swing.Action
        at org.netbeans.core.ShortcutsFolder.readShortcuts(ShortcutsFolder.java:159)
        at org.netbeans.core.ShortcutsFolder.refresh(ShortcutsFolder.java:142)
        at org.netbeans.core.ShortcutsFolder.<init>(ShortcutsFolder.java:108)
        at org.netbeans.core.ShortcutsFolder.initShortcuts(ShortcutsFolder.java:89)
        at org.netbeans.core.NonGui.initializeMainWindow(NonGui.java:171)
        at org.netbeans.core.NonGui.run(NonGui.java:106)
        at org.netbeans.core.startup.Main.start(Main.java:332)
        at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:110)
        at java.lang.Thread.run(Thread.java:619)
Comment 1 Martin Krauskopf 2008-11-27 11:49:01 UTC
I'm not sure why ShortcutsFolder tries to sometime cast GotoTest class to Action. Reassigning to core for evaluation. I
cannot find anything wrong on Ruby side. Let us know if there is something, thanks.
Comment 2 mjr_1974 2008-11-27 12:40:56 UTC
I just have the base IDE for Java, with no Ruby modules installed. Then I don't think the problem is on Ruby side.
Comment 3 mjr_1974 2008-11-27 12:45:54 UTC
I think it might be related to issue #153494
Comment 4 pz0513 2008-11-28 02:14:21 UTC
This exception occurs every time I turn on NetBeans6.5
Comment 5 Exceptions Reporter 2008-12-08 19:30:45 UTC
This issue has already 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=145123
Comment 6 Jiri Rechtacek 2008-12-09 10:59:25 UTC
Almost all duplicates are about java.lang.ClassCastException:
org.netbeans.modules.java.hints.introduce.IntroduceAction$GlobalAction which is declared as action in layer but it's not
a Swing Action.

*** This issue has been marked as a duplicate of 149764 ***