[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-9493) When edit a file and press "End" - I've get "String index out of range: 82" exception

Vitali Yemialyanchyk (JIRA) jira-events at lists.jboss.org
Tue Aug 9 10:12:26 EDT 2011


     [ https://issues.jboss.org/browse/JBIDE-9493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitali Yemialyanchyk updated JBIDE-9493:
----------------------------------------

    Attachment: screenshot-1.jpg


> When edit a file and press "End" - I've get "String index out of range: 82" exception
> -------------------------------------------------------------------------------------
>
>                 Key: JBIDE-9493
>                 URL: https://issues.jboss.org/browse/JBIDE-9493
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Visual Page Editor core
>    Affects Versions: 3.3.0.M3
>            Reporter: Vitali Yemialyanchyk
>            Assignee: Yahor Radtsevich
>         Attachments: quote.tagx, screenshot-1.jpg
>
>
> Problems occurred when invoking code from plug-in: "org.eclipse.wst.sse.ui".
> >>>>>
> java.lang.StringIndexOutOfBoundsException: String index out of range: 82
> 	at java.lang.String.substring(String.java:1934)
> 	at org.jboss.tools.vpe.editor.util.TextUtil.visualPosition(TextUtil.java:346)
> 	at org.jboss.tools.vpe.editor.template.SelectionManager.restoreVisualCursorPosition(SelectionManager.java:263)
> 	at org.jboss.tools.vpe.editor.template.SelectionManager.refreshVisualTextSelection(SelectionManager.java:222)
> 	at org.jboss.tools.vpe.editor.template.SelectionManager.refreshVisualSelection(SelectionManager.java:146)
> 	at org.jboss.tools.vpe.editor.VpeController.sourceSelectionChanged(VpeController.java:880)
> 	at org.jboss.tools.vpe.editor.VpeController.sourceSelectionChanged(VpeController.java:856)
> 	at org.jboss.tools.vpe.editor.VpeController.selectionChanged(VpeController.java:2286)
> 	at org.eclipse.wst.sse.ui.StructuredTextEditor$4.run(StructuredTextEditor.java:592)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> 	at org.eclipse.wst.sse.ui.StructuredTextEditor$StructuredSelectionProvider.fireSelectionChanged(StructuredTextEditor.java:590)
> 	at org.eclipse.wst.sse.ui.StructuredTextEditor$StructuredSelectionProvider.handleSelectionChanged(StructuredTextEditor.java:682)
> 	at org.eclipse.wst.sse.ui.StructuredTextEditor$2.selectionChanged(StructuredTextEditor.java:558)
> 	at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> 	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
> 	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
> 	at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162)
> 	at org.eclipse.jface.text.TextViewer.fireSelectionChanged(TextViewer.java:2732)
> 	at org.eclipse.jface.text.TextViewer.selectionChanged(TextViewer.java:2711)
> 	at org.eclipse.jface.text.TextViewer$4.widgetSelected(TextViewer.java:1830)
> 	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
> 	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
> 	at org.eclipse.ui.texteditor.TextNavigationAction.doFireSelectionChanged(TextNavigationAction.java:69)
> 	at org.eclipse.ui.texteditor.TextNavigationAction.fireSelectionChanged(TextNavigationAction.java:92)
> 	at org.eclipse.ui.texteditor.AbstractTextEditor$LineEndAction.run(AbstractTextEditor.java:1297)
> 	at org.eclipse.ui.texteditor.TextNavigationAction.runWithEvent(TextNavigationAction.java:99)
> 	at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
> 	at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
> 	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
> 	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
> 	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
> 	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
> 	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
> 	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
> 	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
> 	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)
> 	at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
> 	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
> 	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
> 	at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1809)
> 	at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:4892)
> 	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4560)
> 	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
> 	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
> 	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> 	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2530)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3752)
> 	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
> 	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
> 	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
> 	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> 	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
> 	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> 	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
> 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
> 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
> 	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
> 	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
> >>>>>
> "Select Line End" did not complete normally.  Please see the log for more information.
> >>>>>
> An exception stack trace is not available.
> >>>>>
> String index out of range: 82
> >>>>>
> java.lang.StringIndexOutOfBoundsException: String index out of range: 82
> 	at java.lang.String.substring(String.java:1934)
> 	at org.jboss.tools.vpe.editor.util.TextUtil.visualPosition(TextUtil.java:346)
> 	at org.jboss.tools.vpe.editor.template.SelectionManager.restoreVisualCursorPosition(SelectionManager.java:263)
> 	at org.jboss.tools.vpe.editor.template.SelectionManager.refreshVisualTextSelection(SelectionManager.java:222)
> 	at org.jboss.tools.vpe.editor.template.SelectionManager.refreshVisualSelection(SelectionManager.java:146)
> 	at org.jboss.tools.vpe.editor.VpeController.sourceSelectionChanged(VpeController.java:880)
> 	at org.jboss.tools.vpe.editor.VpeController.sourceSelectionChanged(VpeController.java:856)
> 	at org.jboss.tools.vpe.editor.VpeController.widgetSelected(VpeController.java:842)
> 	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
> 	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
> 	at org.eclipse.ui.texteditor.TextNavigationAction.doFireSelectionChanged(TextNavigationAction.java:69)
> 	at org.eclipse.ui.texteditor.TextNavigationAction.fireSelectionChanged(TextNavigationAction.java:92)
> 	at org.eclipse.ui.texteditor.AbstractTextEditor$LineEndAction.run(AbstractTextEditor.java:1297)
> 	at org.eclipse.ui.texteditor.TextNavigationAction.runWithEvent(TextNavigationAction.java:99)
> 	at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
> 	at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
> 	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
> 	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
> 	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
> 	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
> 	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
> 	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
> 	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
> 	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)
> 	at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
> 	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
> 	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
> 	at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1809)
> 	at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:4892)
> 	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4560)
> 	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
> 	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
> 	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> 	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2530)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3752)
> 	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
> 	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
> 	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
> 	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> 	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
> 	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> 	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
> 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
> 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
> 	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
> 	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
> >>>>>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list