From: Simon K. <si...@ec...> - 2003-08-07 05:18:16
|
Hi, I was editing a file, and found that I was getting the following exception (see [1] below) every time I tried to save a particular file I was working on. The file is java source code. I closed all buffers, then reloaded the same file, and found that I could save without generating exceptions. I then used the console plugin to run "ant clean dist", and got another exception (see [2] below), at which point the jedit GUI developed severe redraw problems. I include both problems here, because both include "ArrayOutOfBoundsException" messages; don't know whether they are really related or not. A full log of my current editing session is attached. The plugins I had currently docked include console, errorlist, projectviewer, filesystem-browser. I hope this is helpful. I am happy to raise a bug in the bugtracker if you prefer. Or perform any tests that might help you track down the problem. Or just to wait for the next release if you are aware of these problems... jedit version: 4.2pre4 os: mandrake linux 9.1 jvm: sun 1.4.2-b28 [jedit check version] .version 4.2pre4 .build 04.02.04.00 .stablebuild 04.01.99.00 Regards, Simon ===== exception [1] [error] WorkThread: Exception in work thread: [error] WorkThread: java.lang.ArrayIndexOutOfBoundsException: -702:1024 [error] WorkThread: at org.gjt.sp.jedit.Buffer.getText(Unknown Source) [error] WorkThread: at jane.BufferArtifact$BufferReader.loadSegment(BufferArtifact.java:130) [error] WorkThread: at jane.util.DocumentReader.loadSegment(DocumentReader.java:172) [error] WorkThread: at jane.BufferArtifact$BufferReader.loadSegment(BufferArtifact.java:141) [error] WorkThread: at jane.util.DocumentReader.read(DocumentReader.java:126) [error] WorkThread: at jane.parser.ccparser.JavaCharStream.FillBuff(JavaCharStream.java:135) [error] WorkThread: at jane.parser.ccparser.JavaCharStream.ReadByte(JavaCharStream.java:163) [error] WorkThread: at jane.parser.ccparser.JavaCharStream.readChar(JavaCharStream.java:264) [error] WorkThread: at jane.parser.ccparser.JavaCharStream.BeginToken(JavaCharStream.java:184) [error] WorkThread: at jane.parser.ccparser.JavaParserTokenManager.getNextToken(JavaParserTokenManager.java:1668) [error] WorkThread: at jane.parser.ccparser.JavaParser.jj_ntk(JavaParser.java:3926) [error] WorkThread: at jane.parser.ccparser.JavaParser.CompilationUnit(JavaParser.java:510) [error] WorkThread: at jane.parser.ccparser.JavaParser.parse(JavaParser.java:97) [error] WorkThread: at jane.parser.SourceParser.parse(SourceParser.java:95) [error] WorkThread: at jane.Analyzer.analyze(Analyzer.java:105) [error] WorkThread: at jane.sidekick.JaneSideKickParser.parse(JaneSideKickParser.java:62) [error] WorkThread: at sidekick.SideKick$ParseRequest.run(Unknown Source) [error] WorkThread: at org.gjt.sp.util.WorkThread.doRequest(Unknown Source) [error] WorkThread: at org.gjt.sp.util.WorkThread.doRequests(Unknown Source) [error] WorkThread: at org.gjt.sp.util.WorkThread.run(Unknown Source) ===== exception [2] extract (the bits I think are most interesting) [error] EditBus: Exception while sending message on EditBus: [error] EditBus: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -396 [error] EditBus: at org.gjt.sp.jedit.Buffer.getLineOfOffset(Unknown Source) [error] EditBus: at errorlist.DefaultErrorSource$DefaultError.getLineNumber(Unknown Source) [error] EditBus: at errorlist.ErrorList$ErrorCellRenderer.getTreeCellRendererComponent(Unknown Source) [error] EditBus: at javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:2751) <snip> [error] EditBus: at org.gjt.sp.jedit.EditBus.send(Unknown Source) [error] EditBus: at errorlist.ErrorSource.registerErrorSource(Unknown Source) [error] EditBus: at console.Console$3.run(Unknown Source) [error] EditBus: at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) <snip> -- new exception starts here [error] AWT-EventQueue-0: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -396 [error] AWT-EventQueue-0: at org.gjt.sp.jedit.Buffer.getLineOfOffset(Unknown Source) [error] AWT-EventQueue-0: at errorlist.DefaultErrorSource$DefaultError.getLineNumber(Unknown Source) [error] AWT-EventQueue-0: at errorlist.DefaultErrorSource.findError(Unknown Source) [error] AWT-EventQueue-0: at errorlist.DefaultErrorSource.getLineErrors(Unknown Source) [error] AWT-EventQueue-0: at errorlist.ErrorOverview.paintComponent(Unknown Source) [error] AWT-EventQueue-0: at javax.swing.JComponent.paint(JComponent.java:808) Hi, I was editing a file, and found that I was getting the following exception (see [1] below) every time I tried to save a particular file I was working on. The file is java source code. I closed all buffers, then reloaded the same file, and found that I could save without generating exceptions. I then used the console plugin to run "ant clean dist", and got another exception (see [2] below), at which point the jedit GUI developed severe redraw problems. I include both problems here, because both include "ArrayOutOfBoundsException" messages; don't know whether they are really related or not. A full log of my current editing session is attached. The plugins I had currently docked include console, errorlist, projectviewer, filesystem-browser. I am happy to raise a bug in the bugtracker if you prefer. Or just to wait for the next release if you are aware of these problems. jedit version: 4.2pre4 os: mandrake linux 9.1 jvm: sun 1.4.2-b28 Regards, Simon ===== exception [1] [error] WorkThread: Exception in work thread: [error] WorkThread: java.lang.ArrayIndexOutOfBoundsException: -702:1024 [error] WorkThread: at org.gjt.sp.jedit.Buffer.getText(Unknown Source) [error] WorkThread: at jane.BufferArtifact$BufferReader.loadSegment(BufferArtifact.java:130) [error] WorkThread: at jane.util.DocumentReader.loadSegment(DocumentReader.java:172) [error] WorkThread: at jane.BufferArtifact$BufferReader.loadSegment(BufferArtifact.java:141) [error] WorkThread: at jane.util.DocumentReader.read(DocumentReader.java:126) [error] WorkThread: at jane.parser.ccparser.JavaCharStream.FillBuff(JavaCharStream.java:135) [error] WorkThread: at jane.parser.ccparser.JavaCharStream.ReadByte(JavaCharStream.java:163) [error] WorkThread: at jane.parser.ccparser.JavaCharStream.readChar(JavaCharStream.java:264) [error] WorkThread: at jane.parser.ccparser.JavaCharStream.BeginToken(JavaCharStream.java:184) [error] WorkThread: at jane.parser.ccparser.JavaParserTokenManager.getNextToken(JavaParserTokenManager.java:1668) [error] WorkThread: at jane.parser.ccparser.JavaParser.jj_ntk(JavaParser.java:3926) [error] WorkThread: at jane.parser.ccparser.JavaParser.CompilationUnit(JavaParser.java:510) [error] WorkThread: at jane.parser.ccparser.JavaParser.parse(JavaParser.java:97) [error] WorkThread: at jane.parser.SourceParser.parse(SourceParser.java:95) [error] WorkThread: at jane.Analyzer.analyze(Analyzer.java:105) [error] WorkThread: at jane.sidekick.JaneSideKickParser.parse(JaneSideKickParser.java:62) [error] WorkThread: at sidekick.SideKick$ParseRequest.run(Unknown Source) [error] WorkThread: at org.gjt.sp.util.WorkThread.doRequest(Unknown Source) [error] WorkThread: at org.gjt.sp.util.WorkThread.doRequests(Unknown Source) [error] WorkThread: at org.gjt.sp.util.WorkThread.run(Unknown Source) ===== exception [2] extract (the bits I think are most interesting) [error] EditBus: Exception while sending message on EditBus: [error] EditBus: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -396 [error] EditBus: at org.gjt.sp.jedit.Buffer.getLineOfOffset(Unknown Source) [error] EditBus: at errorlist.DefaultErrorSource$DefaultError.getLineNumber(Unknown Source) [error] EditBus: at errorlist.ErrorList$ErrorCellRenderer.getTreeCellRendererComponent(Unknown Source) [error] EditBus: at javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:2751) <snip> [error] EditBus: at org.gjt.sp.jedit.EditBus.send(Unknown Source) [error] EditBus: at errorlist.ErrorSource.registerErrorSource(Unknown Source) [error] EditBus: at console.Console$3.run(Unknown Source) [error] EditBus: at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) <snip> -- new exception starts here [error] AWT-EventQueue-0: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -396 [error] AWT-EventQueue-0: at org.gjt.sp.jedit.Buffer.getLineOfOffset(Unknown Source) [error] AWT-EventQueue-0: at errorlist.DefaultErrorSource$DefaultError.getLineNumber(Unknown Source) [error] AWT-EventQueue-0: at errorlist.DefaultErrorSource.findError(Unknown Source) [error] AWT-EventQueue-0: at errorlist.DefaultErrorSource.getLineErrors(Unknown Source) [error] AWT-EventQueue-0: at errorlist.ErrorOverview.paintComponent(Unknown Source) [error] AWT-EventQueue-0: at javax.swing.JComponent.paint(JComponent.java:808) Hi, I was editing a file, and found that I was getting the following exception (see [1] below) every time I tried to save a particular file I was working on. The file is java source code. I closed all buffers, then reloaded the same file, and found that I could save without generating exceptions. I then used the console plugin to run "ant clean dist", and got another exception (see [2] below), at which point the jedit GUI developed severe redraw problems. I include both problems here, because both include "ArrayOutOfBoundsException" messages; don't know whether they are really related or not. A full log of my current editing session is attached. The plugins I had currently docked include console, errorlist, projectviewer, filesystem-browser. I am happy to raise a bug in the bugtracker if you prefer. Or just to wait for the next release if you are aware of these problems. jedit version: 4.2pre4 os: mandrake linux 9.1 jvm: sun 1.4.2-b28 Regards, Simon ===== exception [1] [error] WorkThread: Exception in work thread: [error] WorkThread: java.lang.ArrayIndexOutOfBoundsException: -702:1024 [error] WorkThread: at org.gjt.sp.jedit.Buffer.getText(Unknown Source) [error] WorkThread: at jane.BufferArtifact$BufferReader.loadSegment(BufferArtifact.java:130) [error] WorkThread: at jane.util.DocumentReader.loadSegment(DocumentReader.java:172) [error] WorkThread: at jane.BufferArtifact$BufferReader.loadSegment(BufferArtifact.java:141) [error] WorkThread: at jane.util.DocumentReader.read(DocumentReader.java:126) [error] WorkThread: at jane.parser.ccparser.JavaCharStream.FillBuff(JavaCharStream.java:135) [error] WorkThread: at jane.parser.ccparser.JavaCharStream.ReadByte(JavaCharStream.java:163) [error] WorkThread: at jane.parser.ccparser.JavaCharStream.readChar(JavaCharStream.java:264) [error] WorkThread: at jane.parser.ccparser.JavaCharStream.BeginToken(JavaCharStream.java:184) [error] WorkThread: at jane.parser.ccparser.JavaParserTokenManager.getNextToken(JavaParserTokenManager.java:1668) [error] WorkThread: at jane.parser.ccparser.JavaParser.jj_ntk(JavaParser.java:3926) [error] WorkThread: at jane.parser.ccparser.JavaParser.CompilationUnit(JavaParser.java:510) [error] WorkThread: at jane.parser.ccparser.JavaParser.parse(JavaParser.java:97) [error] WorkThread: at jane.parser.SourceParser.parse(SourceParser.java:95) [error] WorkThread: at jane.Analyzer.analyze(Analyzer.java:105) [error] WorkThread: at jane.sidekick.JaneSideKickParser.parse(JaneSideKickParser.java:62) [error] WorkThread: at sidekick.SideKick$ParseRequest.run(Unknown Source) [error] WorkThread: at org.gjt.sp.util.WorkThread.doRequest(Unknown Source) [error] WorkThread: at org.gjt.sp.util.WorkThread.doRequests(Unknown Source) [error] WorkThread: at org.gjt.sp.util.WorkThread.run(Unknown Source) ===== exception [2] extract (the bits I think are most interesting) [error] EditBus: Exception while sending message on EditBus: [error] EditBus: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -396 [error] EditBus: at org.gjt.sp.jedit.Buffer.getLineOfOffset(Unknown Source) [error] EditBus: at errorlist.DefaultErrorSource$DefaultError.getLineNumber(Unknown Source) [error] EditBus: at errorlist.ErrorList$ErrorCellRenderer.getTreeCellRendererComponent(Unknown Source) [error] EditBus: at javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:2751) <snip> [error] EditBus: at org.gjt.sp.jedit.EditBus.send(Unknown Source) [error] EditBus: at errorlist.ErrorSource.registerErrorSource(Unknown Source) [error] EditBus: at console.Console$3.run(Unknown Source) [error] EditBus: at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) <snip> -- new exception starts here [error] AWT-EventQueue-0: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -396 [error] AWT-EventQueue-0: at org.gjt.sp.jedit.Buffer.getLineOfOffset(Unknown Source) [error] AWT-EventQueue-0: at errorlist.DefaultErrorSource$DefaultError.getLineNumber(Unknown Source) [error] AWT-EventQueue-0: at errorlist.DefaultErrorSource.findError(Unknown Source) [error] AWT-EventQueue-0: at errorlist.DefaultErrorSource.getLineErrors(Unknown Source) [error] AWT-EventQueue-0: at errorlist.ErrorOverview.paintComponent(Unknown Source) [error] AWT-EventQueue-0: at javax.swing.JComponent.paint(JComponent.java:808) |