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 119197 - [60cat] NPE when editing JSP file
Summary: [60cat] NPE when editing JSP file
Status: RESOLVED DUPLICATE of bug 120451
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 6.x
Hardware: Other Linux
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-17 12:23 UTC by piero
Modified: 2007-11-05 21:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stacktrace (115.76 KB, text/plain)
2007-10-17 12:25 UTC, piero
Details

Note You need to log in before you can comment on or make changes to this bug.
Description piero 2007-10-17 12:23:41 UTC
[ BUILD # : 200710090000 ]
[ JDK VERSION : 1.6.0_03 ]

After deleting html code from a jsp file the 
following exception was caught. After trying 
again there was another error (I will attach the 
2. stacktrace since it is quite big).

java.lang.NullPointerException
        at 
org.netbeans.lib.lexer.EmbeddedTokenList.createLexerInputOperation(Emb
eddedTokenList.java:351)
        at 
org.netbeans.lib.lexer.inc.TokenListUpdater.update(TokenListUpdater.ja
va:375)
        at 
org.netbeans.lib.lexer.TokenHierarchyUpdate.updateTokenListByModificat
ion(TokenHierarchyUpdate.java:312)
        at 
org.netbeans.lib.lexer.TokenHierarchyUpdate.access$000
(TokenHierarchyUpdate.java:69)
        at 
org.netbeans.lib.lexer.TokenHierarchyUpdate$TLLInfo.update(TokenHierar
chyUpdate.java:465)
        at 
org.netbeans.lib.lexer.TokenHierarchyUpdate.processLevelInfos(TokenHie
rarchyUpdate.java:303)
        at 
org.netbeans.lib.lexer.TokenHierarchyUpdate.update(TokenHierarchyUpdat
e.java:144)
        at 
org.netbeans.lib.lexer.TokenHierarchyOperation.textModified(TokenHiera
rchyOperation.java:349)
        at 
org.netbeans.spi.lexer.TokenHierarchyControl.textModified(TokenHierarc
hyControl.java:103)
        at 
org.netbeans.lib.lexer.inc.DocumentInput.modified(DocumentInput.java:1
47)
        at 
org.netbeans.lib.lexer.inc.DocumentInput.removeUpdate(DocumentInput.ja
va:135)
        at 
org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.remove
Update(PriorityDocumentListenerList.java:85)
        at 
javax.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.ja
va:243)
        at 
org.netbeans.editor.BaseDocument.fireRemoveUpdate(BaseDocument.java:13
75)
        at 
org.netbeans.editor.BaseDocument.remove(BaseDocument.java:769)
        at 
org.netbeans.editor.BaseKit$DeleteCharAction.actionPerformed(BaseKit.j
ava:1454)
        at 
org.netbeans.modules.web.core.syntax.JSPKit$JspDeleteCharAction.action
Performed(JSPKit.java:569)
        at 
org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:288)
        at 
javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
        at 
javax.swing.JComponent.processKeyBinding(JComponent.java:2849)
        at 
javax.swing.JComponent.processKeyBindings(JComponent.java:2884)
        at 
javax.swing.JComponent.processKeyEvent(JComponent.java:2812)
        at 
java.awt.Component.processEvent(Component.java:5815)
        at 
java.awt.Container.processEvent(Container.java:2058)
        at 
java.awt.Component.dispatchEventImpl(Component.java:4410)
        at 
java.awt.Container.dispatchEventImpl(Container.java:2116)
        at 
java.awt.Component.dispatchEvent(Component.java:4240)
        at 
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.jav
a:1848)
        at 
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardF
ocusManager.java:697)
        at 
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboa
rdFocusManager.java:962)
        at 
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboa
rdFocusManager.java:834)
        at 
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocu
sManager.java:661)
        at 
java.awt.Component.dispatchEventImpl(Component.java:4282)
        at 
java.awt.Container.dispatchEventImpl(Container.java:2116)
        at 
java.awt.Window.dispatchEventImpl(Window.java:2429)
        at 
java.awt.Component.dispatchEvent(Component.java:4240)
[catch] at 
java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThrea
d.java:273)
        at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j
ava:183)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThrea
d.java:173)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at 
java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 piero 2007-10-17 12:25:41 UTC
Created attachment 51103 [details]
Stacktrace
Comment 2 Marek Fukala 2007-10-18 14:31:35 UTC
A bug in lexer, reassigning.
Comment 3 Miloslav Metelka 2007-11-05 21:24:06 UTC
The first exception is dup of issue 120451 and the latter one is dup of issue 120906.

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