For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 11 replies, 4 voices, and was last updated 20 years, 4 months ago by
Brian Fernandes.
-
AuthorPosts
-
rwnevingerMemberAnyone experiencing this?
The editor works fine until I start Tomcat and deploy, then things get weird.
I return to my HTML work, and when I type, the text is entered backwards. When I block a piece of text and attempt to Cut, I receive a “Java Null Pointer Exception” in an alert box.
Robert.
July 26, 2005 at 1:50 pm #233669
Brian FernandesModeratorRobert,
This thread – https://www.genuitec.com/forums/topic/problems-with-html-editor/&postdays=0&postorder=asc&start=60
has a workaround mentioned for the problem you’re experiencing, until we release the fix in the upcoming milestone build.Can you please try it out and see if it works for you?
Sorry for the inconvenience caused, let us know if you experience any issues.
Best,
Brian.July 26, 2005 at 2:37 pm #233673
rwnevingerMemberBrian:
I did search for this behavior before I posted to bugs, sorry about that.
Nope; that doesn’t do it, but thanks for the effort. For now, I am just using another editor.July 26, 2005 at 2:55 pm #233674
Brian FernandesModeratorRobert,
Can you please state your Eclipse, MyEclipse and Java versions so that we know what to expect?
If the properties view fix in the other thread didn’t work for you, does the other option not work either?
If you open the file you are editing once, but do not close it for your entire eclipse session, it really should work. Can you please confirm this for us, it will help a great deal.
I re-read your part about Tomcat, so, if you restart eclipse, you can edit the file just fine; now with file open you deploy the application and then experience the issue with characters being entered backwards?
We appreciate your time and assistance,
Brian.November 9, 2005 at 8:26 am #241117
cmccormickMemberBrian,
I’m having the same problem so these details might help:
Eclipse 3.1.0
MyEclipse 3.9.210
Tomcat 5.5
SDK 1.5.0_02The workaround linked above does not work and the problem does appear to only occur when files are reopened.
–Chip
November 9, 2005 at 8:37 am #241118
Brian FernandesModeratorChip,
You’re using a milestone version of MyEclipse- version 4.0M2.
That’s really old – we just released a maintanence release ME 4.0GA – MyEclipse 4.0.3.
I strongly recommend downloading 4.0.3 and using that instead, there are a ton of new features and fixes (for this issue too 🙂 )Also note that there is no “upgrade” available from your version to 4.0.3, so you will have to download the new version completely and install that to a fresh location. After installing it, restart eclipse once with a -clean flag to clear the plugin cache and you should be good to go.
Please let us know if you need any further assistance,
Best,
Brian.November 22, 2005 at 2:39 pm #241960
gdifforMemberI have been experiencing the same problem.
I am using:
eclipse 3.1.1
MyEclipse build 20051025-4.0.3 GA
Java js2dk 1.5the issue existed with earlier releases of myEclipse and java as well.
It only happens when I am editing JSPs and it doesn’t matter if I have tomcat started or not.
When I type my CPU cooling fan kicks into high speed and memory usage for the java process running eclipse goes through the roof.
What happens is that my cursor doesn’t move when I type. This causes all subsequent characters to display in reverse order.
I looked in my eclipse log file and found many instances (over 100) of the following dump with the same time stamp (which explains the high CPU I guess):
!ENTRY com.ibm.sse.model 4 4 2005-11-22 14:18:33.990
!MESSAGE null
!STACK 0
org.eclipse.jface.text.BadLocationException
at com.ibm.sse.model.internal.text.MinimalDocument.get(MinimalDocument.java:77)
at com.ibm.sse.model.internal.text.BasicStructuredDocumentRegion.getText(BasicStructuredDocumentRegion.java:203)
at com.ibm.sse.model.jsp.text.rules.StructuredTextPartitionerForJSP.isAction(StructuredTextPartitionerForJSP.java:72)
at com.ibm.sse.model.jsp.text.rules.StructuredTextPartitionerForJSP.isDocumentRegionBasedPartition(StructuredTextPartitionerForJSP.java:92)
at com.ibm.sse.model.text.rules.StructuredTextPartitioner.internalGetPartition(StructuredTextPartitioner.java:306)
at com.ibm.sse.model.text.rules.StructuredTextPartitioner.computePartitioning(StructuredTextPartitioner.java:93)
at com.ibm.sse.editor.style.Highlighter.lineGetStyle(Highlighter.java:178)
at com.ibm.sse.editor.style.Highlighter.lineGetStyle(Highlighter.java:126)
at org.eclipse.swt.custom.StyledTextListener.handleEvent(StyledTextListener.java:49)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:660)
at org.eclipse.swt.custom.StyledText.sendLineEvent(StyledText.java:3799)
at org.eclipse.swt.custom.StyledText.getLineStyleData(StyledText.java:3851)
at org.eclipse.swt.custom.DisplayRenderer.getLineStyleData(DisplayRenderer.java:178)
at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:418)
at org.eclipse.swt.custom.StyledText.redrawLines(StyledText.java:6084)
at org.eclipse.swt.custom.StyledText.internalRedrawRange(StyledText.java:4957)
at org.eclipse.swt.custom.StyledText.redrawRange(StyledText.java:6210)
at org.eclipse.jface.text.source.AnnotationPainter$SquigglesStrategy.draw(AnnotationPainter.java:106)
at org.eclipse.jface.text.source.AnnotationPainter.handleDrawRequest(AnnotationPainter.java:1226)
at org.eclipse.jface.text.source.AnnotationPainter.enablePainting(AnnotationPainter.java:353)
at org.eclipse.jface.text.source.AnnotationPainter.updatePainting(AnnotationPainter.java:788)
at org.eclipse.jface.text.source.AnnotationPainter.access$1(AnnotationPainter.java:780)
at org.eclipse.jface.text.source.AnnotationPainter$1.run(AnnotationPainter.java:908)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3057)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2716)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
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.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)I had reported this on the eclipse bugzilla report forum and was told that someone else had inappropriately distributed the com.ibm.sse.* packages, so they didn’t look into it any further.
When the problem is occuring, the cut/paste functionality doesn’t work. Cuts don’t get put on the clipboard, so when I paste, it only pastes my previous cut from the clipboard.
Also, when I press the delete key, I get a windows style dialog box that states:
“Delete” did not complete normally. Please see the log for more information. Reason: java.lang.NullPointerException
I look at the log after that, and see the following:
!ENTRY org.eclipse.ui 4 4 2005-11-22 14:42:28.787
!MESSAGE “Delete” did not complete normally. Please see the log for more information.!ENTRY org.eclipse.ui 4 0 2005-11-22 14:42:28.787
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at org.eclipse.jface.text.DefaultPositionUpdater.update(DefaultPositionUpdater.java:227)
at org.eclipse.jface.text.AbstractDocument.updatePositions(AbstractDocument.java:1161)
at org.eclipse.jface.text.AbstractDocument.updateDocumentStructures(AbstractDocument.java:663)
at org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(AbstractDocument.java:751)
at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1112)
at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1119)
at com.ibm.sse.model.internal.text.BasicStructuredDocument.updateParentDocument(BasicStructuredDocument.java:1981)
at com.ibm.sse.model.jsp.parser.JSPReParser.reparse(JSPReParser.java:124)
at com.ibm.sse.model.internal.text.StructuredDocumentReParser.reparse(StructuredDocumentReParser.java:1259)
at com.ibm.sse.model.internal.text.BasicStructuredDocument.updateModel(BasicStructuredDocument.java:1963)
at com.ibm.sse.model.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:1744)
at com.ibm.sse.editor.StructuredDocumentToTextAdapter.replaceTextRange(StructuredDocumentToTextAdapter.java:952)
at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5787)
at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6625)
at org.eclipse.swt.custom.StyledText.doDelete(StyledText.java:2688)
at org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:5671)
at org.eclipse.jface.text.TextViewer.doOperation(TextViewer.java:3521)
at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:801)
at com.ibm.sse.editor.StructuredTextViewer.doOperation(StructuredTextViewer.java:787)
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:996)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:182)
at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:108)
at org.eclipse.core.commands.Command.execute(Command.java:311)
at org.eclipse.core.commands.ParameterizedCommand.execute(ParameterizedCommand.java:396)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:459)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:781)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:828)
at org.eclipse.ui.internal.keys.OutOfOrderListener.handleEvent(OutOfOrderListener.java:76)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:880)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:876)
at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1475)
at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:3348)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3067)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1656)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2711)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
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.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)– Greg
November 22, 2005 at 2:49 pm #241964
Brian FernandesModeratorGreg,
Is this a fresh install of MyEclipse or did you install it over an existing installation – can you restart eclipse with a “-clean” flag and see if that helps clear things up?
Which JSP editor are you using? the Classic JSP editor or the new JSP Designer (this one has 4 pages)? Does this happen for all the JSP files you’re editing or just one particular file?
Do you think you could help us with a reproducable test case?I would appreciate it if you answer all the questions here – besides those you’ve answered already, of course – Posting Guidelines
Best,
Brian.November 22, 2005 at 4:05 pm #241976
gdifforMemberBrian,
I’ve tried both installing over top of existing and doing a fresh install.
I’m currently using the JSP Designer, but I’m pretty sure the problem occurred using the other also. Speaking of the Classic JSP editor: can I still use that one? I don’t use the designer/previewer and the thing takes so long to load when I open my JSPs.
JSP file doesn’t seem to matter.
I have not noticed a pattern of occurrence. The problem doesn’t happen right away, but the odds of it happening seem to be greater the longer I’m in the editor. If I close the JSP and then open it back up, the problem comes back more quickly.
That being said, I don’t know if I can give a reproducible test case or not.
– Greg
November 22, 2005 at 4:23 pm #241982
gdifforMemberI just ran another test (with a different computer) and realized that the problem might be on my machine.
I am using a Dell Inspiron 9100 laptop running Windows XP Pro service pack 2. This is the machine experiencing the problem.
I used another laptop (Dell Inspiron 8200) also running XP SP2 and that machine seems to be fine.
Both machines are running the same version of Java.
I just started typing gibberish in the JSP editor and the 8200 had no problem keeping up.
When I did the same thing on the 9100, it wasn’t long before the CPU fans kicked in and the backwards typing began.
I can’t imagine why a hardware difference should cause this issue, but I don’t as of now know of any software differences that would cause problems with myeclipse.
I know this wasn’t an exhaustive test, but those are my preliminary findings. Any clues?
– Greg
November 22, 2005 at 4:23 pm #241983
Brian FernandesModeratorGreg,
I’m assuming you’re using Windows and experience the problem on a fresh eclipse install with only MyEclipse installed. Please correct me if I’m wrong.
Anything out of the ordinary with your JSP files (very large for instance)? Also, do you use the XML editor frequently, if so – no problems with that?
Just to help track this down, can you try turning off JSP validation and turn off Build Automatically for a while as well and see if the problem still occurs?
Finally – what is the command line you’re using to start eclipse? We recommend something like this:eclipse -vmargs -Duser.language=en -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128MLet us know how it goes,
Best,
Brian.November 22, 2005 at 4:28 pm #241985
Brian FernandesModeratorGreg,
I read your last post after posting my previous response – are both computers running fresh, identical eclipse and MyEclipse installs and being started in exactly same way?
I’d suggest trying the command line string – how much RAM do each of the machines have?Thanks for following up and helping run this down.
Brian. -
AuthorPosts
