facebook

MyEclipse settings lost on restart [Closed]

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

    Jan Krag
    Member

    Running:
    OS: Windows XP Pro SP 1
    Eclipse: Version: 2.1.3
    Build id: 200403101828
    MyEclipse: 2.7.1
    Eclipse & MyEclipse freshly installed about 1 week ago.
    No other external plugins installed.
    Running Eclipse with: j2re1.4.2_04
    Running Tomcat5 with: j2sdk1.4.2_04

    ——————————————
    Have been using MyEclipse for a currently rather small Struts/Tiles project deployed on a tomcat5 server.
    Closed down eclipse yesterday with a small hang-up, but it came down eventually.
    When I opened eclipse today, I found that all my MyEclipse settings had gone.
    This includes all configuration of the tomcat5 server (actually it had disabled Tomcat5 and reenabled JBoss3 instead).
    My JDK setup (incl. command-line switches) had also been removed.

    Also gone was my MyEclipse subscription data.

    As far as I can tell, the “damage” was only to MyEclipse related settings. My general project-settings seem unharmed.

    My co-worker has recently experienced a similar situation (though with a different Eclipse version) and slightly less damage (i.e. subscription data was retained).

    I hope that the above provides sufficient information.

    #206304 Reply

    Riyad Kalla
    Member

    Please check your log file and paste it here for us to look over. It is located at: <workspace>\.metadata\.log

    #206305 Reply

    Jan Krag
    Member

    My full logfile is posted below.
    The problem reported was observed during the first session though (from 10:54).
    ——————————————————————-
    !SESSION Apr 22, 2004 10:54:42.436 ———————————————
    java.version=1.4.2_04
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86 -install file:D:/Dev/eclipse/
    !ENTRY org.eclipse.ui 4 4 Apr 22, 2004 10:54:42.436
    !MESSAGE Unable to restore editor – createElement returned null for input element factory: org.eclipse.ui.part.FileEditorInputFactory
    !SESSION Apr 22, 2004 13:22:23.453 ———————————————
    java.version=1.4.2_04
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86 -install file:D:/Dev/eclipse/
    !ENTRY org.eclipse.ui 4 4 Apr 22, 2004 13:22:23.453
    !MESSAGE Unhandled exception caught in event loop.
    !ENTRY org.eclipse.ui 4 0 Apr 22, 2004 13:22:23.453
    !MESSAGE java.lang.NullPointerException
    !STACK 0
    java.lang.NullPointerException
    at org.eclipse.ui.internal.dialogs.AboutFeaturesDialog.buttonPressed(AboutFeaturesDialog.java:136)
    at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
    at org.eclipse.jface.window.Window.open(Window.java:563)
    at org.eclipse.ui.internal.dialogs.AboutDialog$3.widgetSelected(AboutDialog.java:237)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
    at org.eclipse.jface.window.Window.open(Window.java:563)
    at org.eclipse.ui.internal.AboutAction.run(AboutAction.java:47)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403)
    at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397)
    at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
    at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
    at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
    at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
    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:291)
    at org.eclipse.core.launcher.Main.run(Main.java:747)
    at org.eclipse.core.launcher.Main.main(Main.java:583)

    #206306 Reply

    Riyad Kalla
    Member

    This is strange, we will look into it.

    Thank you for the report!

    #206324 Reply

    support-michael
    Keymaster

    In your initial msg you referred to a problem shutting down Eclipse followed by lost MyEclipse preference upon the restart. Can you provide more details re: what activities were you conducting in MyEclipse, e.g., running Tomcat5, and what constituted a glitch, e.g., save dialog followed by unresponsive UI, other.

    MyEclipse runs on top of the Eclipse preference mgmt system. During the shutdown process preferences are flushed to disk. Lose of all MyEclipse prefs indicates a bug in Eclipse 3.0M8 (wouldn’t be the first). Have you already reestablished your ME prefs (I assume yes)? If not or if the problem occurs again please check the directory <your eclipse install>/eclipse/workspace/.metadata/.plugins for the presence of com.genuitec.eclipse.* folders. Eclipse stores your prefs in these folders.

    #206336 Reply

    Sean Dynan
    Member

    I’ve been suffering this behaviour too, though I was attributing it to Eclipse rather than ME.

      Eclipse would suddenly lose its JDK setting; consequently ME wouldn’t deploy the WAR.

      Closing the struts-config.xml file would result in a nasty Eclipse error dialog and I’d have to kill Eclipse from the Windows task manager. Consequently my ME settings were hosed on the next restart. This also happened, though less frequently, with vanilla Java source files.

    A few days ago, in my frustration, I deleted my entire Eclipse .metadata directory and restarted Eclipse.

    <fingers-so-very-tightly-crossed>Eclipse/MyEclipse have been pretty stable ever since</fingers-so-very-tightly-crossed>


    Sean

    8<————
    MyEclipse 3.7.2
    Eclipse 3.0M8
    WinXP Pro SP1
    Sun’s JDK1.4.2_04
    JBoss 3.2.3 + Tomcat 4

    #206337 Reply

    Jan Krag
    Member

    Thanks very much for the frequent responses. This makes it so much more worthwhile to submit bugreports.

    I have a little trouble describing exactly what went wrong during shutdown. This is a case of experiencing trouble when restarting ME at the start of a working day and then trying to remember the circumstances of the previous days shutdown. As far as I remember I had been doing some simple Struts/Tiles development (just initial testing) with a large number of deployments to tomcat5 (both hotdeploy and frequent server restarts). When I closed down, my machine was generally unresponsive so I don’t know if the main problem was with Eclipse/ME og with e.g. my Dreamweaver. But ME froze for a while (no redraw of empty windowframe when shift-tabbing to ME) but came down eventually (in less than a minute I guess) without being manually killed.

    With regard to the storing of settings, I can not say for sure that it was only ME settings that disappeared. While looking over the settings again later, I had the feeling that one or two minor workspace configurations had also disappeared. We are talking about small changes like setting the number of files in the “recently opened files” list and how many editor tabs to keep open, so it is hard to be certain whether I had actually set different values that the ones I found after the “crash”.

    I tried to solve the problem by reestablishing all my prefs, but as I still could’t redeploy my applikation after this, I chose the thorough path and reinstalled both Eclipse and ME.
    Regarding your comment about E3.0M8, I can only say that I am not using this version. As stated in my original post, I am using Eclipse 2.1.3 and ME 2.7.1.

    If the problem occurs again I will first a) weep 😥 and then b) check the .metadata/.plugins directory as you recommend.

    I hope this lengthy post answers some of your questions.

    #206341 Reply

    Riyad Kalla
    Member
    #206357 Reply

    Sean Dynan
    Member

    Yeah, I thought as much. Those Eclipse guys are gonna have their work cut out delivering a stable 3.0 by June 😕

    Sean

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: MyEclipse settings lost on restart [Closed]

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