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 117659 - JSP Editor keep throwing exception
Summary: JSP Editor keep throwing exception
Status: RESOLVED DUPLICATE of bug 117509
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 117657 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-03 15:49 UTC by Winston Prakash
Modified: 2007-10-03 22:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
JSP Editor screwed up by this bug (348.85 KB, application/octet-stream)
2007-10-03 16:00 UTC, Winston Prakash
Details
Attaching PNG image (255.30 KB, image/png)
2007-10-03 18:09 UTC, Winston Prakash
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Winston Prakash 2007-10-03 15:49:59 UTC
Every time, I type a character in the JSP editor, it throws the following exception.

Windows Vista
Build 20071003

java.lang.NullPointerException
	at org.netbeans.modules.languages.features.SemanticHighlightsLayer.getHighlights(SemanticHighlightsLayer.java:75)
	at
org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.updateCache(CompoundHighlightsContainer.java:288)
	at
org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.getHighlights(CompoundHighlightsContainer.java:164)
	at org.netbeans.editor.HighlightingDrawLayer.processOffset(HighlightingDrawLayer.java:565)
	at org.netbeans.editor.HighlightingDrawLayer.isActive(HighlightingDrawLayer.java:292)
	at org.netbeans.editor.DrawEngine.drawArea(DrawEngine.java:863)
	at org.netbeans.editor.DrawEngine.drawInternal(DrawEngine.java:1139)
	at org.netbeans.editor.DrawEngine.draw(DrawEngine.java:1045)
	at org.netbeans.editor.DrawEngineLineView.getModel2ViewRect(DrawEngineLineView.java:413)
	at org.netbeans.editor.DrawEngineLineView.modelToView(DrawEngineLineView.java:478)
	at org.netbeans.editor.DrawEngineLineView.modelToView(DrawEngineLineView.java:441)
	at org.netbeans.lib.editor.view.GapBoxView.modelToView(GapBoxView.java:1503)
	at org.netbeans.editor.view.spi.LockView.modelToView(LockView.java:420)
	at javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.java:1496)
	at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1034)
	at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1009)
	at org.netbeans.editor.CodeFoldingSideBar.collectPaintInfos(CodeFoldingSideBar.java:324)
	at org.netbeans.editor.CodeFoldingSideBar.getPaintInfo(CodeFoldingSideBar.java:428)
	at org.netbeans.editor.CodeFoldingSideBar.paintComponent(CodeFoldingSideBar.java:531)
	at javax.swing.JComponent.paint(JComponent.java:1027)
	at javax.swing.JComponent.paintChildren(JComponent.java:864)
	at javax.swing.JComponent.paint(JComponent.java:1036)
	at javax.swing.JComponent.paintChildren(JComponent.java:864)
	at javax.swing.JComponent.paint(JComponent.java:1036)
	at javax.swing.JComponent.paintChildren(JComponent.java:864)
	at javax.swing.JComponent.paint(JComponent.java:1036)
	at javax.swing.JViewport.paint(JViewport.java:747)
	at javax.swing.JComponent.paintChildren(JComponent.java:864)
	at javax.swing.JComponent.paint(JComponent.java:1036)
	at javax.swing.JComponent.paintChildren(JComponent.java:864)
	at javax.swing.JComponent.paint(JComponent.java:1036)
	at javax.swing.JComponent.paintChildren(JComponent.java:864)
	at javax.swing.JComponent.paint(JComponent.java:1036)
	at javax.swing.JComponent.paintChildren(JComponent.java:864)
	at javax.swing.JComponent.paint(JComponent.java:1036)
	at javax.swing.JComponent.paintChildren(JComponent.java:864)
	at javax.swing.JComponent.paint(JComponent.java:1036)
	at javax.swing.JComponent.paintChildren(JComponent.java:864)
	at javax.swing.JComponent.paint(JComponent.java:1036)
	at javax.swing.JComponent.paintChildren(JComponent.java:864)
	at javax.swing.JComponent.paint(JComponent.java:1036)
	at javax.swing.JComponent.paintChildren(JComponent.java:864)
	at javax.swing.JComponent.paint(JComponent.java:1036)
	at javax.swing.JComponent.paintChildren(JComponent.java:864)
	at javax.swing.JComponent.paint(JComponent.java:1036)
	at javax.swing.JComponent.paintChildren(JComponent.java:864)
	at javax.swing.JComponent.paint(JComponent.java:1036)
	at javax.swing.JComponent.paintChildren(JComponent.java:864)
	at javax.swing.JComponent.paint(JComponent.java:1036)
	at org.netbeans.core.windows.view.ui.MultiSplitPane.paint(MultiSplitPane.java:316)
	at javax.swing.JComponent.paintChildren(JComponent.java:864)
	at javax.swing.JComponent.paint(JComponent.java:1036)
	at javax.swing.JComponent.paintChildren(JComponent.java:864)
	at javax.swing.JComponent.paint(JComponent.java:1036)
	at javax.swing.JLayeredPane.paint(JLayeredPane.java:564)
	at javax.swing.JComponent.paintChildren(JComponent.java:864)
	at javax.swing.JComponent.paint(JComponent.java:1036)
	at javax.swing.JComponent.paintToOffscreen(JComponent.java:5122)
	at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:285)
	at javax.swing.RepaintManager.paint(RepaintManager.java:1128)
	at javax.swing.JComponent._paintImmediately(JComponent.java:5070)
	at javax.swing.JComponent.paintImmediately(JComponent.java:4880)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:723)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:679)
	at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:659)
[catch] at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:128)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.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 Winston Prakash 2007-10-03 15:58:42 UTC
I'm making this P1 because it does not let me edit JSP page and
when I switch tab it doesn't allow the page to repaint. See the 
attached picture. This ought to be fixed soon.
Comment 2 Winston Prakash 2007-10-03 16:00:03 UTC
Created attachment 50114 [details]
JSP Editor screwed up by this bug
Comment 3 Winston Prakash 2007-10-03 18:06:52 UTC
This is blocking my work.

To exactly reproduce

- Create a Web Application 
- Select Visual Web JSF Framework
- Go to the JSP editor of the opened Page
- Type anything between the <webui:form> tag

This annoying bug doesn't let me do any kind of typing in the JSP Editor.
I'm totally blocked.
 
Comment 4 Winston Prakash 2007-10-03 18:09:13 UTC
Created attachment 50131 [details]
Attaching PNG image
Comment 5 Marek Fukala 2007-10-03 18:38:35 UTC
Schlieman's issue, should be fixed already.

*** This issue has been marked as a duplicate of 117509 ***
Comment 6 Winston Prakash 2007-10-03 18:45:10 UTC
Good to know it is already fixed. It drove me so crazy,
I was about to throw my laptop out of my office window.

Who ever fixed it thanks a billion for saving my sanity.
Comment 7 Winston Prakash 2007-10-03 22:16:56 UTC
*** Issue 117657 has been marked as a duplicate of this issue. ***