Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSP Edit causes null pointer exception

75867May 19 2006 — edited May 23 2006
Several times ( but not always) I have experienced this problem:

While editing a jsp file the jsp editor hangs and the IDE is blocked for mouse and keybord input. If the editor regains focus it is not able to receive keybord input. If the quit the IDE it hangs while restarting in the project initialization process with and endless loop stacktracing a null pointer exception.

Here is the part of a stacktrance:

Forcing RowMap rebuild
Exception occurred updating RowMap: 16
startRow: 0
numRows: 1
startLine: 0
numLines: 15
_rowCount: 15
lineCount: 15

Stack trace follows
java.lang.ArrayIndexOutOfBoundsException: 16
at oracle.javatools.buffer.ArrayLineMap.getLineEndOffset(ArrayLineMap.java:326)
at oracle.javatools.editor.BasicView$LineRowMap.recalculateLineWidths(BasicView.java:3576)
at oracle.javatools.editor.BasicView$LineRowMap.recalculateRows(BasicView.java:3487)
at oracle.javatools.editor.BasicView$LineRowMap.handleInsert(BasicView.java:3315)
at oracle.javatools.editor.BasicView$LineRowMap.rebuildRowMap(BasicView.java:3286)
at oracle.javatools.editor.BasicView$LineRowMap.recalculateRows(BasicView.java:3524)
at oracle.javatools.editor.BasicView$LineRowMap.handleInsert(BasicView.java:3315)
at oracle.javatools.editor.BasicView$LineRowMap.rebuildRowMap(BasicView.java:3286)
at oracle.javatools.editor.BasicView$LineRowMap.recalculateRows(BasicView.java:3524)
at oracle.javatools.editor.BasicView$LineRowMap.handleInsert(BasicView.java:3315)
at oracle.javatools.editor.BasicView$LineRowMap.rebuildRowMap(BasicView.java:3286)
at oracle.javatools.editor.BasicView$LineRowMap.recalculateRows(BasicView.java:3524)
at oracle.javatools.editor.BasicView$LineRowMap.handleInsert(BasicView.java:3315)
at oracle.javatools.editor.BasicView$LineRowMap.rebuildRowMap(BasicView.java:3286)
at oracle.javatools.editor.BasicView$LineRowMap.recalculateRows(BasicView.java:3524)
at oracle.javatools.editor.BasicView$LineRowMap.handleInsert(BasicView.java:3315)
at oracle.javatools.editor.BasicView$LineRowMap.rebuildRowMap(BasicView.java:3286)
at oracle.javatools.editor.BasicView$LineRowMap.recalculateRows(BasicView.java:3524)
at oracle.javatools.editor.BasicView$LineRowMap.handleInsert(BasicView.java:3315)
at oracle.javatools.editor.BasicView$LineRowMap.rebuildRowMap(BasicView.java:3286)
at oracle.javatools.editor.BasicView$LineRowMap.recalculateRows(BasicView.java:3524)
at oracle.javatools.editor.BasicView$LineRowMap.handleInsert(BasicView.java:3315)
at oracle.javatools.editor.BasicView$LineRowMap.rebuildRowMap(BasicView.java:3286)
at oracle.javatools.editor.BasicView$LineRowMap.recalculateRows(BasicView.java:3524)
at oracle.javatools.editor.BasicView$LineRowMap.handleInsert(BasicView.java:3315)
at oracle.javatools.editor.BasicView$LineRowMap.rebuildRowMap(BasicView.java:3286)
at oracle.javatools.editor.BasicView$LineRowMap.recalculateRows(BasicView.java:3524)

If I remove the offending jsp file from the project I am able to restart the IDE.

Regards

Flemming
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 20 2006
Added on May 19 2006
2 comments
307 views