- This topic has 36 replies, 15 voices, and was last updated 19 years, 6 months ago by Riyad Kalla.
-
AuthorPosts
-
mrothMember– System Setup ——————————-
Operating System and version: XP SP2
Eclipse version: 3.0.1
Eclipse build id:
Fresh Eclipse install (y/n): y
If not, was it upgraded to its current version using the update manager?
Other installed external plugins:
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*:
MyEclipse version: 3.8.4
Eclipse JDK version: 1.4.2
Application Server JDK version:
Are there any exceptions in the Eclipse log file?If this is a DB related question please answer the following:
RDBMS vendor and version:
JDBC driver vendor and version, and access type (thin, type-2, etc):
Connection URL:
Eclipse error logs related to com.genuitec.eclipse.sqlexplorer packages:– Message Body ——————————-
Hi. Since upgrading to 3.8.4 sometimes the Editor starts writing BACKWARDS after opening a JSP. The only way to fix is to restart Eclipse. This happens about 30% when opening JSPs so I am not too thrilled while implementing a new web app…
Thanks / m
Riyad KallaMemberm,
We are trying to reproduce this internally and have been unable to, but we had 1 other user that had the exact same problem and rolling back to version 3.8.3 of MyEclipse fixed it.I am going to add a note to our issue tracking this that it is still happening and see if there is anything we can do.
I need you to check your log file (<workspace dir>\.metadata\.log) for any exceptions that may be related to the backward-typing issue and paste them here for me.
msmottParticipantif i use jdk5 with javaw.exe (however 1.4.2/javaw/java and 1.5/java.exe works fine!) I get the error too only when i update that jsp from cvs….
!ENTRY org.eclipse.ui 4 4 Mar 04, 2005 18:10:36.828
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 Mar 04, 2005 18:10:36.828
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at org.eclipse.jface.text.reconciler.AbstractReconciler$Listener.documentChanged(AbstractReconciler.java:236)
at com.ibm.sse.model.internal.text.BasicStructuredDocument._fireDocumentChanged(Unknown Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(Unknown Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocument.replaceText(Unknown Source)
at com.ibm.sse.editor.StructuredDocumentToTextAdapter.replaceTextRange(Unknown Source)
at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5601)
at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6441)
at org.eclipse.swt.custom.StyledText.doContent(StyledText.java:2536)
at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:4979)
at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5002)
at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4747)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1734)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1730)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3067)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2970)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1473)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2429)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
arjan.tijmsMemberWell, make that atleast 5 other users that have and had this problem. Personally, I have seen this problem since 3.8.0. Three of my coworkers have the same problem (on vastly different machines, with different OS and different VM), and I can remember atleast one other guy posting about this particular problem.
(see my previous postings)
Riyad KallaMemberGuys thank you for posting to this thread, this helps us to bump down feature work and fix this ASAP. I will add your comments to the issue so we know “too damn many” people are running into this.
henkMemberI would like to add to this that unlike the topic starter, I never need to completely close eclipse. Just closing the editor always fixes the problem, that is, until I run into it again of course. The bug also only affects a single jsp editor at a time.
Max NamMemberHappens to me as well – normally goes away after I save it, though sometimes I need to close the editor.
Øyvind JohansenMemberSys: WinXP SP2 Norwegian
I use: eclipse: Version: 3.0.1
Build id: 200409161125and myEclipse: Version: 3.8.4
Build id: 200501171200-3.8.4Uses Java J2SE5 (1.5.0) and J2EE 1.4
I have previously reported this bug, but now it is even more mean than ever. Now the error ALWAYS comes back, even after restart of app. It is also enough for me to start typing in a random JSP file. Also seems that I can’t turn off validation of my JSP files (when I type <% the editor flickers and multiple errors appear). This really slows down the editor untill I manage to type %>.
In the error log:
!SESSION Mar 11, 2005 13:20:35.546 ———————————————
eclipse.buildId=M200409161125
java.version=1.5.0_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_NO!ENTRY org.eclipse.ui 4 4 Mar 11, 2005 13:20:35.546
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 Mar 11, 2005 13:20:35.546
!MESSAGE java.lang.NegativeArraySizeException
!STACK 0
java.lang.NegativeArraySizeException
at com.ibm.sse.model.internal.text.SubSetTextStore._get(Unknown Source)
at com.ibm.sse.model.internal.text.SubSetTextStore.get(Unknown Source)
at com.ibm.sse.model.internal.text.MinimalDocument.get(Unknown Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocumentRegion.
getText(Unknown Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocumentRegion.
sameTextAs(Unknown Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocumentRegion.sameAs(Unknown
Source)
at com.ibm.sse.model.internal.text.StructuredDocumentReParser.
regionCheck(Unknown Source)
at com.ibm.sse.model.internal.text.StructuredDocumentReParser.
regionCheck(Unknown Source)
at com.ibm.sse.model.internal.text.StructuredDocumentReParser.
minimumEvent(Unknown Source)
at com.ibm.sse.model.internal.text.StructuredDocumentReParser.
_core_reparse_update_model(Unknown Source)
at com.ibm.sse.model.internal.text.StructuredDocumentReParser.
core_reparse(Unknown Source)
at com.ibm.sse.model.jsp.parser.JSPReParser.reparse(Unknown Source)
at com.ibm.sse.model.internal.text.StructuredDocumentReParser.reparse(Unknown
Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocument.updateModel(Unknown
Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocument.replaceText(Unknown
Source)
at com.ibm.sse.editor.StructuredDocumentToTextAdapter.replaceTextRange(Unknown
Source)
at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5601)
at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6441)
at org.eclipse.swt.custom.StyledText.doBackspace(StyledText.java:2488)
at org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:5482)
at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:4983)
at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5002)
at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4747)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1734)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1730)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3067)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2970)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1473)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2429)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.
java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)!ENTRY org.eclipse.ui 4 4 Mar 11, 2005 13:20:35.671
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 Mar 11, 2005 13:20:35.671
!MESSAGE Index out of bounds
!STACK 0
java.lang.IllegalArgumentException: Index out of bounds
at org.eclipse.swt.SWT.error(SWT.java:2677)
at org.eclipse.swt.SWT.error(SWT.java:2616)
at org.eclipse.swt.SWT.error(SWT.java:2587)
at org.eclipse.swt.graphics.TextLayout._getOffset(TextLayout.java:1041)
at org.eclipse.swt.graphics.TextLayout.getPreviousOffset(TextLayout.java:1250)
at org.eclipse.swt.custom.StyledText.doBackspace(StyledText.java:2483)
at org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:5482)
at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:4983)
at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5002)
at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4747)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1734)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1730)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3067)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2970)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1473)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2429)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.
java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688),
————————————————————————-
This is when I try to restart eclipse and reopen my file and do some changes
(typing).When the dialog box appeared, this log entry came up:
!ENTRY org.eclipse.ui 4 4 Mar 11, 2005 12:55:07.359
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 Mar 11, 2005 12:55:07.359
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at org.eclipse.jface.text.reconciler.AbstractReconciler$Listener.
documentChanged(AbstractReconciler.java:236)
at com.ibm.sse.model.internal.text.BasicStructuredDocument.
_fireDocumentChanged(Unknown Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocument.
fireStructuredDocumentEvent(Unknown Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocument.replaceText(Unknown
Source)
at com.ibm.sse.editor.StructuredDocumentToTextAdapter.replaceTextRange(Unknown
Source)
at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5601)
at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6441)
at org.eclipse.swt.custom.StyledText.doContent(StyledText.java:2536)
at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:4979)
at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5002)
at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4747)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1734)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1730)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3067)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2970)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1473)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2429)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.
java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)!ENTRY org.eclipse.ui 4 4 Mar 11, 2005 12:55:11.578
!MESSAGE The command for the key you pressed failed!ENTRY org.eclipse.ui 4 0 Mar 11, 2005 12:55:11.578
!MESSAGE The command for the key you pressed failed
!STACK 0
java.lang.NullPointerException
at org.eclipse.jface.text.reconciler.AbstractReconciler$Listener.
documentChanged(AbstractReconciler.java:236)
at com.ibm.sse.model.internal.text.BasicStructuredDocument.
_fireDocumentChanged(Unknown Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocument.
fireStructuredDocumentEvent(Unknown Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocument.replaceText(Unknown
Source)
at com.ibm.sse.editor.StructuredDocumentToTextAdapter.replaceTextRange(Unknown
Source)
at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5601)
at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6441)
at org.eclipse.swt.custom.StyledText.paste(StyledText.java:5638)
at org.eclipse.jface.text.TextViewer.doOperation(TextViewer.java:3417)
at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:
757)
at com.ibm.sse.editor.StructuredTextViewer.doOperation(Unknown Source)
at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.
java:122)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:
120)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:143)
at org.eclipse.ui.internal.commands.Command.execute(Command.java:132)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.
executeCommand(WorkbenchKeyboard.java:453)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:
871)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.
processKeyEvent(WorkbenchKeyboard.java:912)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.
filterKeySequenceBindings(WorkbenchKeyboard.java:530)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$2(WorkbenchKeyboard.
java:478)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$1.
handleEvent(WorkbenchKeyboard.java:243)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:740)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:795)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1734)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1730)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3067)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2970)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1473)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2429)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.
java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)Additionally, an exception occurs on minimizing,changing focus, etc on the
application after the before mentioned exceptions:!ENTRY com.ibm.sse.model 4 4 Mar 11, 2005 13:31:36.671
!MESSAGE null
!STACK 0
org.eclipse.jface.text.BadLocationException
at com.ibm.sse.model.internal.text.MinimalDocument.get(Unknown Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocumentRegion.
getText(Unknown Source)
at com.ibm.sse.model.jsp.text.rules.StructuredTextPartitionerForJSP.
isAction(Unknown Source)
at com.ibm.sse.model.jsp.text.rules.StructuredTextPartitionerForJSP.
isDocumentRegionBasedPartition(Unknown Source)
at com.ibm.sse.model.text.rules.StructuredTextPartitioner.
internalGetPartition(Unknown Source)
at com.ibm.sse.model.text.rules.StructuredTextPartitioner.
computePartitioning(Unknown Source)
at com.ibm.sse.editor.style.Highlighter.lineGetStyle(Unknown Source)
at com.ibm.sse.editor.style.Highlighter.lineGetStyle(Unknown Source)
at org.eclipse.swt.custom.StyledTextListener.handleEvent(StyledTextListener.
java:49)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:613)
at org.eclipse.swt.custom.StyledText.sendLineEvent(StyledText.java:3741)
at org.eclipse.swt.custom.StyledText.getLineStyleData(StyledText.java:3793)
at org.eclipse.swt.custom.DisplayRenderer.getLineStyleData(DisplayRenderer.
java:180)
at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.
java:418)
at org.eclipse.swt.custom.StyledTextRenderer.drawLine(StyledTextRenderer.java:
114)
at org.eclipse.swt.custom.StyledText.performPaint(StyledText.java:5689)
at org.eclipse.swt.custom.StyledText.handlePaint(StyledText.java:5072)
at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4752)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:803)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3020)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1473)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2429)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
at org.eclipse.jface.window.Window.open(Window.java:648)
at org.eclipse.ui.internal.about.AboutAction.run(AboutAction.java:66)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
at org.eclipse.jface.action.ActionContributionItem.
handleWidgetSelection(ActionContributionItem.java:915)
at org.eclipse.jface.action.ActionContributionItem.
access$2(ActionContributionItem.java:866)
at org.eclipse.jface.action.ActionContributionItem$7.
handleEvent(ActionContributionItem.java:785)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.
java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
Øyvind JohansenMemberOk, here’s a slighty new thing that started happening right now:
I tried to type in JSP editor: <code><% if (detour</code>
I ended up with
<code><%i(dturoe f</code>In the logg, about 5 of these came up:
!ENTRY org.eclipse.ui 4 4 Mar 11, 2005 13:55:32.187
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 Mar 11, 2005 13:55:32.203
!MESSAGE java.lang.NegativeArraySizeException
!STACK 0
java.lang.NegativeArraySizeException
at com.ibm.sse.model.internal.text.SubSetTextStore._get(Unknown Source)
at com.ibm.sse.model.internal.text.SubSetTextStore.get(Unknown Source)
at com.ibm.sse.model.internal.text.MinimalDocument.get(Unknown Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocumentRegion.getText(Unknown Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocumentRegion.sameTextAs(Unknown Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocumentRegion.sameAs(Unknown Source)
at com.ibm.sse.model.internal.text.StructuredDocumentReParser.regionCheck(Unknown Source)
at com.ibm.sse.model.internal.text.StructuredDocumentReParser.regionCheck(Unknown Source)
at com.ibm.sse.model.internal.text.StructuredDocumentReParser.minimumEvent(Unknown Source)
at com.ibm.sse.model.internal.text.StructuredDocumentReParser._core_reparse_update_model(Unknown Source)
at com.ibm.sse.model.internal.text.StructuredDocumentReParser.core_reparse(Unknown Source)
at com.ibm.sse.model.jsp.parser.JSPReParser.reparse(Unknown Source)
at com.ibm.sse.model.internal.text.StructuredDocumentReParser.reparse(Unknown Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocument.updateModel(Unknown Source)
at com.ibm.sse.model.internal.text.BasicStructuredDocument.replaceText(Unknown Source)
at com.ibm.sse.editor.StructuredDocumentToTextAdapter.replaceTextRange(Unknown Source)
at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5601)
at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6441)
at org.eclipse.swt.custom.StyledText.doContent(StyledText.java:2536)
at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:4979)
at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5002)
at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4747)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1734)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1730)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3067)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2970)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1473)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2429)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
Øyvind JohansenMemberThis does not happen when the <% is ended by %> before inserting something inside the tag.
arjan.tijmsMemberIs there already an ETA for the myeclipse update that will fix this problem? I keep running into this. I surely kill the fun in working at the JSP level.
What I usually do these days is type the %> first and then quickly the <% before it. If I type in the natural order, there is a high risk the editor freaks out before I’m able to type in the closing %>.
Scott AndersonParticipantArjan,
Unfortunately, running down this particular issue, when a reproducable test case can’t readily be created is difficult at best, especially when dealing with JSP syntax which is nothing but a hodge-podge of about five different grammars. We’re doing the best we can on the problem while trying to balance resources with getting release 4.0 out the door on time. In the worst case scenario, the issue will be reinvestigated and addressed in 4.0, but we hope to get something out sooner. In the interim, I’d suggest the simple workaround of simply pasting in a start/end scriptlet tag pair before trying to add a bunch of scriptlet code into a complex JSP page, as this seems to workaround the issue effectively, as you’ve found out. However, if you can create a reproducable test case for the issue it will naturally enhance our ability to resolve it more effectively. Thanks in advance for your help and understanding on this.
csbrownMemberI’m also experiencing this unpleasant bug. Man it makes it really painful to try to build anything using JSPs.
Thanks in advance to the dev team for putting in the time to fix this one.
Just in case no one else has stated, it appears that for each keystroke there is an automatic backspace that places the cursor in front of the character just typed. With some of the code-completion features in Eclipse/MyEclipse I could imagine that there is some bit of code like that trying to “help”, but causing grief instead.
Thanks again,
Colby
Michael FlanakinMemberThis is just a suggestion for anyone who receives this error often… Can somebody post a JSP file that they find creates this problem often? I haven’t worked in the same JSP file since I started this project, so there isn’t a single file that I’ve found recreates the problem often. I’m wondering if it’s something in the files that gets parsed wrong. Not that I know, but I want to get to the bottom of this just as much as everyone else 😉 I will definitely do the same if I find a page that seems to recreate the error somewhat frequently.
Riyad KallaMemberI’m curious if these is related to JavaScript heavy pages… we know the bug is related to the reconciler having died and getting NPE’s in the editor base code… we just don’t know what causes this to happen, I’ve never run across it myself and I never use JavaScript in my pages… so I’m wonder if htese more complex (multi partitions) pages are the culprit? Especially <script> blocks…
-
AuthorPosts