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 129787 - ClassCastException: javax.swing.text.PlainDocument
Summary: ClassCastException: javax.swing.text.PlainDocument
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: issues@editor
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2008-03-11 15:38 UTC by Roman Mostyka
Modified: 2009-11-02 10:57 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 35469


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2008-03-11 15:38:56 UTC
Build: NetBeans IDE Dev (Build 200803110005)
VM: Java HotSpot(TM) Client VM, 1.5.0_13-121
OS: Mac OS X, 10.4.11, i386

User comments: 
1. Create web application with "Visual Web JSF" framework.
2. Add Button component to the page.
3. Doubleclick it.

Result: ClassCastException arises.
STACKTRACE: (first 10 lines)
java.lang.ClassCastException: javax.swing.text.PlainDocument
        at org.netbeans.editor.BaseKit$SelectLineAction.actionPerformed(BaseKit.java:2408)
        at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:290)
        at org.netbeans.editor.BaseCaret.mouseClicked(BaseCaret.java:1210)
        at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
        at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
        at java.awt.Component.processMouseEvent(Component.java:5586)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
        at java.awt.Component.processEvent(Component.java:5348)
        at java.awt.Container.processEvent(Container.java:2010)
        at java.awt.Component.dispatchEventImpl(Component.java:4050)
Comment 1 Vitezslav Stejskal 2008-03-12 11:17:09 UTC
I can't reproduce it in a dev build. Is this Mac OS specific? Do you have a chance to test this on other OSes?

Product Version: NetBeans IDE Dev (Build 080312)
Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/vita/devel/netbeans/main/nbbuild/testuserdir
Comment 2 Roman Mostyka 2008-03-12 17:52:43 UTC
I wasn't able to reproduce this issue on other platforms, but on latest build I'm not able to reproduce it also on Mac
OS X. So I mark this issue as FIXED, but if I'm able to reproduce it again, I'll reopen it.
Comment 3 Roman Mostyka 2008-03-12 17:54:38 UTC
Verified with build 080312.
Comment 4 Exceptions Reporter 2008-10-13 03:32:23 UTC
Reopening - reproduced in NetBeans IDE 6.5 Beta (Build 200808111757)
http://statistics.netbeans.org/exceptions/detail.do?id=127153
Comment 5 Vitezslav Stejskal 2008-10-13 12:04:40 UTC
I can't reproduce it in a recent dev build.
Comment 6 Max Sauer 2008-11-27 13:31:55 UTC
Will be resolved LATER.
Comment 7 Quality Engineering 2009-11-02 10:57:56 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX