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 38844 - Exception when editing JSP file during debugging
Summary: Exception when editing JSP file during debugging
Status: RESOLVED DUPLICATE of bug 38568
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-15 17:31 UTC by Chris Kutler
Modified: 2006-06-04 23:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file (122.01 KB, text/plain)
2004-01-15 17:31 UTC, Chris Kutler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Kutler 2004-01-15 17:31:01 UTC
1. Execute web app in debug mode. JSP had
breakpoints set, but got 500 error before hit
breakponts. Error:
org.apache.jasper.JasperException:
/BabyGame.jsp(5,0) Page directive: invalid value
for buffer

(<%@ page language="java" buffer="8k" %>)

2. Edited page directive to remove buffer
argument. The following output appeared (exception
dialog) and the edited line disappeared in from
the code in the source editor.

(Can send WAR of web app upon request)

Annotation: Exception occurred in Request Processor
java.lang.ArrayIndexOutOfBoundsException: 1523
	at
org.netbeans.editor.ext.html.HTMLSyntax.parseToken(HTMLSyntax.java:107)
	at
org.netbeans.editor.Syntax.nextToken(Syntax.java:173)
	at
org.netbeans.modules.web.core.syntax.JspMultiSyntax.parseToken(JspMultiSyntax.java:585)
	at
org.netbeans.editor.Syntax.nextToken(Syntax.java:173)
	at
org.netbeans.editor.LineRootElement.getValidSyntaxStateInfoLineElement(LineRootElement.java:311)
	at
org.netbeans.editor.LineRootElement.getTokenSafeOffset(LineRootElement.java:468)
	at
org.netbeans.editor.BaseDocument.getTokenSafeOffset(BaseDocument.java:1256)
	at
org.netbeans.editor.DrawEngine.initInfo(DrawEngine.java:258)
	at
org.netbeans.editor.DrawEngine.draw(DrawEngine.java:1094)
	at
org.netbeans.editor.DrawEngineLineView.getModel2ViewRect(DrawEngineLineView.java:263)
	at
org.netbeans.editor.DrawEngineLineView.modelToView(DrawEngineLineView.java:284)
	at
org.netbeans.lib.editor.view.GapBoxView.modelToView(GapBoxView.java:1418)
	at
org.netbeans.editor.view.spi.LockView.modelToView(LockView.java:364)
	at
javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.java:1394)
	at
javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:936)
	at
javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:911)
	at
org.netbeans.editor.BaseTextUI.getYFromPos(BaseTextUI.java:191)
	at
org.netbeans.editor.EditorUI.repaintBlock(EditorUI.java:1044)
	at
org.netbeans.editor.BaseTextUI.changedUpdate(BaseTextUI.java:345)
	at
javax.swing.text.AbstractDocument.fireChangedUpdate(AbstractDocument.java:213)
	at
org.netbeans.editor.BaseDocument.fireChangedUpdate(BaseDocument.java:1019)
	at
org.netbeans.editor.BaseDocument.repaintBlock(BaseDocument.java:815)
	at
org.netbeans.editor.BaseDocument.invalidateSyntaxMarks(BaseDocument.java:975)
	at
org.netbeans.modules.web.core.syntax.JSPKit$ColoringListener.recolor(JSPKit.java:128)
	at
org.netbeans.modules.web.core.syntax.JSPKit$ColoringListener.propertyChange(JSPKit.java:147)
	at
org.openide.util.WeakListener$PropertyChange.propertyChange(WeakListener.java:349)
	at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:252)
	at
org.netbeans.modules.web.core.syntax.spi.JSPColoringData.applyParsedData(JSPColoringData.java:127)
	at
org.netbeans.modules.web.core.jsploader.TagLibParseSupport$ParsingRunnable.run(TagLibParseSupport.java:241)
	at org.openide.util.Task.run(Task.java:136)
	at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:678)
Comment 1 Chris Kutler 2004-01-15 17:31:56 UTC
Created attachment 12908 [details]
log file
Comment 2 Petr Pisl 2004-01-15 17:53:45 UTC
The exception is the same as in #38568. I'm working on it.

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