facebook

Out of memory error when using struts-config editor

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

    redsofa
    Member

    Hi,

    Using:
    eclipse 3.1.1
    eclipse.buildId=M20050929-0840
    java.version=1.5.0_06
    java.vendor=Sun Microsystems Inc.

    on WinXP

    and
    MyEclipse 4.1.1

    When I use the JSP editor and the struts-config editor, after a while I get a “Out of memory error. .. Please shutdown the workbench”-Error.

    In the log file is this:
    !ENTRY org.eclipse.ui 4 0 2006-05-03 11:53:16.312
    !MESSAGE Warning: Detected recursive attempt by part com.genuitec.eclipse.struts.editor.multipage.StrutsConfigEditor to create itself (this is probably, but not necessarily, a bug)
    !STACK 1
    org.eclipse.ui.PartInitException: Warning: Detected recursive attempt by part com.genuitec.eclipse.struts.editor.multipage.StrutsConfigEditor to create itself (this is probably, but not necessarily, a bug)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:543)
    at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:223)
    at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:477)
    at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:402)
    at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:372)
    at org.eclipse.ui.internal.WorkbenchPage.findEditor(WorkbenchPage.java:1780)
    at com.genuitec.eclipse.core.util.EditorUtil.getEditorForInput(EditorUtil.java:158)
    at com.genuitec.eclipse.core.util.EditorUtil.checkConflictingEditor(EditorUtil.java:219)
    at com.genuitec.eclipse.struts.editor.multipage.StrutsConfigEditor.init(StrutsConfigEditor.java:445)
    at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:778)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:384)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
    at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:223)
    at org.eclipse.ajdt.internal.builder.AJModelUtils$RefreshOutlinePagesJob.runInUIThread(AJModelUtils.java:78)
    at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:93)
    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)

    #251556 Reply

    Riyad Kalla
    Member

    Give this tip a try and see if it helps:
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-10087.html

    #251563 Reply

    redsofa
    Member

    Changing the memory settings does not help.

    !ENTRY com.genuitec.eclipse.struts 1 0 2006-05-04 10:13:34.636
    !MESSAGE
    !STACK 0
    java.lang.reflect.InvocationTargetException
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:359)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:830)
    at org.easystruts.eclipse.xslgen.EclipseJdtWriter.write(EclipseJdtWriter.java:226)
    at org.easystruts.xslgen.JavaClass.write(JavaClass.java:330)
    at org.easystruts.xslgen.struts.XsltStrutsGenerator.createActionForm(XsltStrutsGenerator.java:109)
    at com.genuitec.eclipse.struts.wizards.NewActionAndFormCreationWizard.performCreateForm(NewActionAndFormCreationWizard.java:152)
    at com.genuitec.eclipse.struts.wizards.NewActionAndFormCreationWizard.perform(NewActionAndFormCreationWizard.java:64)
    at com.genuitec.eclipse.struts.wizards.NewEasyStrutsWizard.performFinish(NewEasyStrutsWizard.java:563)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:676)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:349)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
    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.Display.runDeferredEvents(Display.java:3080)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
    at org.eclipse.jface.window.Window.open(Window.java:787)
    at com.genuitec.eclipse.struts.editor.outline.BasicOpenWizardActionDelegate$1.run(BasicOpenWizardActionDelegate.java:113)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at com.genuitec.eclipse.struts.editor.outline.BasicOpenWizardActionDelegate.launchWizard(BasicOpenWizardActionDelegate.java:117)
    at com.genuitec.eclipse.struts.editor.outline.BasicOpenWizardActionDelegate.run(BasicOpenWizardActionDelegate.java:54)
    at com.genuitec.eclipse.struts.editor.outline.OpenActionAndFormWizardActionDelegate.run(OpenActionAndFormWizardActionDelegate.java:32)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
    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.Display.runDeferredEvents(Display.java:3080)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
    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)
    Caused by: java.lang.OutOfMemoryError: PermGen space
    Root exception:
    java.lang.OutOfMemoryError: PermGen space

    !ENTRY org.eclipse.ui 4 4 2006-05-04 10:13:37.621
    !MESSAGE Unhandled event loop exception

    !ENTRY org.eclipse.ui 4 0 2006-05-04 10:13:37.621
    !MESSAGE PermGen space
    !STACK 0
    java.lang.OutOfMemoryError: PermGen space

    !ENTRY org.eclipse.ui 4 4 2006-05-04 10:13:43.998
    !MESSAGE Unhandled event loop exception

    !ENTRY org.eclipse.ui 4 0 2006-05-04 10:13:43.998
    !MESSAGE PermGen space
    !STACK 0
    java.lang.OutOfMemoryError: PermGen space

    !ENTRY org.eclipse.ui 4 4 2006-05-04 10:13:46.952
    !MESSAGE Unhandled event loop exception

    !ENTRY org.eclipse.ui 4 0 2006-05-04 10:13:46.952
    !MESSAGE PermGen space
    !STACK 0
    java.lang.OutOfMemoryError: PermGen space 😥

    #251564 Reply

    redsofa
    Member

    And sometimes eclipse crashed completely, when it tries to open the PageDesigner.

    !ENTRY org.eclipse.ui 4 4 2006-05-04 10:38:10.723
    !MESSAGE Unhandled event loop exception

    !ENTRY org.eclipse.ui 4 0 2006-05-04 10:38:12.238
    !MESSAGE PermGen space
    !STACK 0
    java.lang.OutOfMemoryError: PermGen space

    #251566 Reply

    Riyad Kalla
    Member

    What did you change the settings to? Looks like you are still running out of permSpace, just keep bumping up the perm space until the error goes away.

    #251568 Reply

    redsofa
    Member

    And another crash when I tried to work with JSF.

    !ENTRY org.eclipse.ui 4 4 2006-05-04 11:24:31.951
    !MESSAGE Unhandled event loop exception

    !ENTRY org.eclipse.ui 4 0 2006-05-04 11:24:31.966
    !MESSAGE PermGen space
    !STACK 0
    java.lang.OutOfMemoryError: PermGen space
    !SESSION Thu May 04 11:24:45 EST 2006 ——————————————
    !ENTRY org.eclipse.core.launcher 4 0 2006-05-04 11:24:45.966
    !MESSAGE Exception launching the Eclipse Platform:
    !STACK
    java.lang.OutOfMemoryError: PermGen space

    #251608 Reply

    Riyad Kalla
    Member

    You ignoring my questions isn’t helping us get to a solution any faster. I will work with you to fix this problem, but you need to respond to my questions and follow my instructions as best you can and ask me to clarify if something I suggest isn’t making sense.

    First, try restarting using the -clean command line argument as per this tip and instructions:
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-10280.html

    If that doesn’t help, do the following:
    1) Paste the entire command line you use to launch Eclipse with here. If you use a shortcut on windows, paste the entire “Command” here from the shortcut.
    2) Paste the contents of eclipse.ini, this file is in your Eclipse directory.
    3) Go to your MyEclipse menu, click “About MyEclipse” then click the “Configuration Summary” button and paste the result here.

    If all the information above looks good to me, the next thing I will ask you to do is

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Out of memory error when using struts-config editor

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