facebook

StringIndexOutOfBoundsException on new servlet

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #213347 Reply

    spob
    Member

    I’m running MyEclipse 3.8.0 on Eclipse 3.0.0. I create a new project. I then try to add a servlet to that project. After hitting “finish” in the servlet window, I get an message saying “Creation of element failed. See log for details.

    The log file contains the following entry:

    !ENTRY org.eclipse.jdt.ui 4 10001 Aug 24, 2004 15:12:48.500
    !MESSAGE Internal Error
    !STACK 0
    java.lang.reflect.InvocationTargetException
        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:314)
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:253)
        at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:752)
        at com.aston.NewCreationWizard.finishPage(Unknown Source)
        at com.aston.wizards.servlet.NewServletCreationWizard.performFinish(Unknown Source)
        at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:609)
        at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:305)
        at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
        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.jface.window.Window.runEventLoop(Window.java:668)
        at org.eclipse.jface.window.Window.open(Window.java:648)
        at org.eclipse.ui.internal.ide.NewWizardShortcutAction.run(NewWizardShortcutAction.java:96)
        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:183)
        at org.eclipse.core.launcher.Main.run(Main.java:644)
        at org.eclipse.core.launcher.Main.main(Main.java:628)
    Caused by: java.lang.StringIndexOutOfBoundsException
        at java.lang.StringBuffer.insert(Unknown Source)
        at com.aston.wizards.servlet.NewWebXmlLinkCreationWizardPage.�(Unknown Source)
        at com.aston.wizards.servlet.NewWebXmlLinkCreationWizardPage.�(Unknown Source)
        at com.aston.wizards.servlet.NewWebXmlLinkCreationWizardPage.doFinish(Unknown Source)
        at com.aston.WizardPage$A.run(Unknown Source)
        at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:67)
        at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:91)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
        at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:105)
        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:303)
        ... 38 more
    Root exception:
    java.lang.StringIndexOutOfBoundsException
        at java.lang.StringBuffer.insert(Unknown Source)
        at com.aston.wizards.servlet.NewWebXmlLinkCreationWizardPage.�(Unknown Source)
        at com.aston.wizards.servlet.NewWebXmlLinkCreationWizardPage.�(Unknown Source)
        at com.aston.wizards.servlet.NewWebXmlLinkCreationWizardPage.doFinish(Unknown Source)
        at com.aston.WizardPage$A.run(Unknown Source)
        at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:67)
        at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:91)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
        at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:105)
        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:303)
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:253)
        at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:752)
        at com.aston.NewCreationWizard.finishPage(Unknown Source)
        at com.aston.wizards.servlet.NewServletCreationWizard.performFinish(Unknown Source)
        at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:609)
        at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:305)
        at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
        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.jface.window.Window.runEventLoop(Window.java:668)
        at org.eclipse.jface.window.Window.open(Window.java:648)
        at org.eclipse.ui.internal.ide.NewWizardShortcutAction.run(NewWizardShortcutAction.java:96)
        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:183)
        at org.eclipse.core.launcher.Main.run(Main.java:644)
        at org.eclipse.core.launcher.Main.main(Main.java:628)
    

    Any ideas?[/b]

    #213349 Reply

    Riyad Kalla
    Member

    spob,
    I believe you have the “Update web.xml” checkbox checked when this is happening, if so please update to version 3.8.1 of ME and apply the hotfix.

    Update instructions here: http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-3469.html
    Hotfix here: http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-3513.html

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: StringIndexOutOfBoundsException on new servlet

You must be logged in to post in the forum log in