- This topic has 4 replies, 3 voices, and was last updated 19 years, 9 months ago by
Riyad Kalla.
-
AuthorPosts
-
Chris BaconMemberMy JSP editor started to act strangely, typing characters backwards and other bizarre things. The log is below. I don’t know why it’s saying java.version=1.4.2_06 because I’m using 1.4.2_05.
Any thoughts?
Thanks,
Chris!SESSION Mar 30, 2005 16:19:22.640 ———————————————
eclipse.buildId=I200406251208
java.version=1.4.2_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US!ENTRY org.eclipse.ui 4 4 Mar 30, 2005 16:19:22.640
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 Mar 30, 2005 16:19:22.718
!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:3339)
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:2430)
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:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)!ENTRY org.eclipse.ui 4 4 Mar 30, 2005 16:19:22.890
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 Mar 30, 2005 16:19:22.890
!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)there is more, but it’s repetitive.
Riyad KallaMemberI don’t know why it’s saying java.version=1.4.2_06 because I’m using 1.4.2_05.
You likely have two versions install and it just happens to be picking this one up (from path). We are tracking this issue and I will add your comments to it because it certainly isn’t acceptable behavior. Sorry you had to run intot his.
Chris BaconMemberRiyad,
Thanks for your response. The problem went away when I restarted Eclipse. From other posts it looks like the JSP editor has several problems.
I checked and I have only 1.4.2_05 installed.
Chris
arjan.tijmsMember@ChrisBacon wrote:
Riyad,
Thanks for your response. The problem went away when I restarted Eclipse.Most of the time that is only temporary. The problem never really goes away, it’s just lurking in a dark corner of eclipse, waiting to strike when you’re on a tight dead line.
FYI, you normally don’t have to restart eclipse. Just closing the editor and reopening it wil usually work too.
Riyad KallaMemberGood News
Alright this is some good news. One of our developers, Brian, was filled with a rage that burns like a 1000x suns last week and this weekend and actually dug down into the editors to figure out what is causing this problem and figured it out. We aren’t certain yet who’s fault the problem is, BUT the workaround is as follows:Workaround for Backwards Typing
The issue seems to go away IF the first thing you do when you start up MyEclipse is to make sure no editors are open (if they are, close all of them, and restart) then open up the Properties View (Window > Show View > Other > Basic > Properties) and make sure it is active or “ontop” where ever it is open. Now open up an HTML or JSP file with the Properties view still showing. Once you have done this, the interaction that was previously causing the “Backwards typing” will disappear for the remainder of your Eclipse session. The Properties view does not need to be active anymore once you have done this BUT you cannot close it.Targetted Release for Fix
We will be targetting the public 4.0 M1 release next week with a fix for the backwards typing that will no longer need the workaround given above. We appreciate all the patience and error reports and details everyone has filed that made this possible tofix. -
AuthorPosts