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 67848 - [50cat] ClassCast Exception in code completion in jsp's with javascript
Summary: [50cat] ClassCast Exception in code completion in jsp's with javascript
Status: RESOLVED DUPLICATE of bug 67697
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-31 16:04 UTC by rdowney
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Mressages log for classcast exception (27.28 KB, text/plain)
2005-10-31 16:05 UTC, rdowney
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rdowney 2005-10-31 16:04:01 UTC
[ BUILD # : 200510301900 ]
[ JDK VERSION : 1.5.0_04 ]

For builds 200510261858 & 200510301900 , when editing javascript areas of jsp's when you type a dot eg document.images , it triggers code completion (not normally present for javascript) and you get a class cast exception.

Within a javascript area just type abc. and you get the crash when you hit ok on the crash box everything is ok until you type the next dot.

I can recreate on both solaris and windows across these two builds of NB , with the beta and other builds typing a . in a javascript area is ignored/no suggestions.

In my testing it only affects .jsp files , .html and .java were fine 

The classcast exception follows and I will attache messages log after

java.lang.ClassCastException: org.netbeans.modules.web.core.syntax.JspSyntaxSupport
	at org.netbeans.modules.editor.java.JavaCompletionProvider.getAutoQueryTypes(JavaCompletionProvider.java:51)
	at org.netbeans.modules.editor.completion.CompletionImpl.insertUpdate(CompletionImpl.java:194)
	at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.insertUpdate(PriorityDocumentListenerList.java:42)
	at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:184)
	at org.netbeans.editor.BaseDocument.fireInsertUpdate(BaseDocument.java:1296)
	at org.netbeans.editor.BaseDocument.insertString(BaseDocument.java:626)
	at org.netbeans.editor.BaseKit$DefaultKeyTypedAction.insertString(BaseKit.java:903)
	at org.netbeans.editor.BaseKit$DefaultKeyTypedAction.actionPerformed(BaseKit.java:867)
	at org.netbeans.editor.ext.ExtKit$ExtDefaultKeyTypedAction.actionPerformed(ExtKit.java:838)
	at org.netbeans.modules.web.core.syntax.JSPKit$JspDefaultKeyTypedAction.actionPerformed(JSPKit.java:426)
	at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:194)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1571)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2763)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2798)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2726)
	at java.awt.Component.processEvent(Component.java:5265)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:672)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:920)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:798)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:636)
	at java.awt.Component.dispatchEventImpl(Component.java:3841)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 rdowney 2005-10-31 16:05:29 UTC
Created attachment 26493 [details]
Mressages log for classcast exception
Comment 2 Martin Roskanin 2005-11-01 10:24:09 UTC
already fixed, thanks for the report

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