Spring Tool Suite
  1. Spring Tool Suite
  2. STS-1948

Frequent errors after installing STS 2.7.1

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.7.1.RELEASE
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I've installed STS 2.7.1 and I get a lot of errors after a short time of using Eclipse. The errors make Eclipse unusable, since immediately after I close the error dialog it reopens. Restarting is the only option.

      Installation details:

      • I have only installed 'SpringSource Tool Suite (required)'.
      • I am running Eclipse Java EE IDE for Web Developers, Build id: 20110615-0604
      • Platform: Linux/GTK/x86_64
      java.lang.NullPointerException
      	at org.eclipse.swt.widgets.MenuItem.getAccelGroup(MenuItem.java:316)
      	at org.eclipse.swt.widgets.MenuItem.setEnabled(MenuItem.java:657)
      	at org.eclipse.ui.menus.CommandContributionItem.updateMenuItem(CommandContributionItem.java:631)
      	at org.eclipse.ui.menus.CommandContributionItem.update(CommandContributionItem.java:580)
      	at org.eclipse.jface.action.MenuManager.update(MenuManager.java:880)
      	at org.eclipse.jface.action.MenuManager.update(MenuManager.java:880)
      	at org.eclipse.jface.action.MenuManager.update(MenuManager.java:880)
      	at org.eclipse.ui.internal.Workbench.updateActiveWorkbenchWindowMenuManager(Workbench.java:3337)
      	at org.eclipse.ui.internal.Workbench.access$0(Workbench.java:3299)
      	at org.eclipse.ui.internal.Workbench$1.windowActivated(Workbench.java:3264)
      	at org.eclipse.ui.internal.Workbench$14.run(Workbench.java:1002)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.ui.internal.Workbench.fireWindowActivated(Workbench.java:1000)
      	at org.eclipse.ui.internal.WorkbenchWindow$28.shellActivated(WorkbenchWindow.java:3141)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:88)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1263)
      	at org.eclipse.swt.widgets.Shell.filterProc(Shell.java:731)
      	at org.eclipse.swt.widgets.Display.filterProc(Display.java:1543)
      	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
      	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2258)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3207)
      	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)
      
      1. .log
        628 kB
        Eugene Batogov
      2. .log
        76 kB
        Eugene Batogov
      3. .log
        669 kB
        Eugene Batogov
      4. STS.log
        76 kB
        Eugene Batogov

        Activity

        Hide
        Eugene Batogov added a comment -

        Hello.
        We have the same problem.
        I have created this bug in swt recently : https://bugs.eclipse.org/bugs/show_bug.cgi?id=348205
        Plus this bug is duplicate of next bug: https://jira.springsource.org/browse/IDE-1205
        I suppose, that it linked with linux-x86-64 arch + swt.
        Please, fix this bug. It very interfere our work.
        Thanks in advance.

        Show
        Eugene Batogov added a comment - Hello. We have the same problem. I have created this bug in swt recently : https://bugs.eclipse.org/bugs/show_bug.cgi?id=348205 Plus this bug is duplicate of next bug: https://jira.springsource.org/browse/IDE-1205 I suppose, that it linked with linux-x86-64 arch + swt. Please, fix this bug. It very interfere our work. Thanks in advance.
        Hide
        Eldar Abdrazakov added a comment -

        Hi,
        I have the same problem.
        This bug is impeding my work.

        Show
        Eldar Abdrazakov added a comment - Hi, I have the same problem. This bug is impeding my work.
        Hide
        Andrew Eisenberg (c) added a comment -

        @Eugene, @Eldar: What versions of Eclipse are you using?
        @Eldar: what architecture are you on?

        Show
        Andrew Eisenberg (c) added a comment - @Eugene, @Eldar: What versions of Eclipse are you using? @Eldar: what architecture are you on?
        Hide
        Eugene Batogov added a comment -

        I downloaded STS-2.7.1 from springsource site with eclipse indigo inside.

        Show
        Eugene Batogov added a comment - I downloaded STS-2.7.1 from springsource site with eclipse indigo inside.
        Hide
        Eugene Batogov added a comment -

        Aptana Studio had this bug in the past: http://jira.appcelerator.org/browse/APSTUD-2322

        Show
        Eugene Batogov added a comment - Aptana Studio had this bug in the past: http://jira.appcelerator.org/browse/APSTUD-2322
        Hide
        Andrew Eisenberg (c) added a comment - - edited

        Thanks for the link. It might be a related problem. However, the aptana bug happened during shutdown and there is no STS code in any of the stack frames of the stack trace provided. I'll see if there's anything that we can do about this, but this does appear to be more of an Eclipse problem than an STS problem.

        Can you look through your error logs for any other entry that might be related? Perhaps there was something earlier or later that was the initial cause of the problem.

        Show
        Andrew Eisenberg (c) added a comment - - edited Thanks for the link. It might be a related problem. However, the aptana bug happened during shutdown and there is no STS code in any of the stack frames of the stack trace provided. I'll see if there's anything that we can do about this, but this does appear to be more of an Eclipse problem than an STS problem. Can you look through your error logs for any other entry that might be related? Perhaps there was something earlier or later that was the initial cause of the problem.
        Hide
        Eugene Batogov added a comment -

        This bug happens when I edit xml file and switch to java code.
        But don't always.
        I will attach full trace log tomorrow from my work.

        Show
        Eugene Batogov added a comment - This bug happens when I edit xml file and switch to java code. But don't always. I will attach full trace log tomorrow from my work.
        Hide
        Eldar Abdrazakov added a comment -

        Eclipse IDE for Java Developers
        Version: Helios Service Release 2
        Build id: 20110218-0911

        architecture: Linux 2.6.39-pf3 #1 SMP Mon Jun 27 12:26:02 MSD 2011 x86_64 Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz GenuineIntel GNU/Linux

        Show
        Eldar Abdrazakov added a comment - Eclipse IDE for Java Developers Version: Helios Service Release 2 Build id: 20110218-0911 architecture: Linux 2.6.39-pf3 #1 SMP Mon Jun 27 12:26:02 MSD 2011 x86_64 Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz GenuineIntel GNU/Linux
        Hide
        Eugene Batogov added a comment -

        Sorry, this log is full.
        I suppose that problem in don't correct use swt.

        Show
        Eugene Batogov added a comment - Sorry, this log is full. I suppose that problem in don't correct use swt.
        Hide
        Eugene Batogov added a comment -

        Please, resolved this problem
        I can't work with STS (

        Show
        Eugene Batogov added a comment - Please, resolved this problem I can't work with STS (
        Hide
        Eugene Batogov added a comment -

        Please, resolved this problem
        I can't work with STS (

        Show
        Eugene Batogov added a comment - Please, resolved this problem I can't work with STS (
        Hide
        Martin Lippert (c) added a comment -

        Do you have more details about the stack trace? Maybe a root exception somewhere?

        Show
        Martin Lippert (c) added a comment - Do you have more details about the stack trace? Maybe a root exception somewhere?
        Hide
        Eugene Batogov added a comment -

        My eclipse log

        Show
        Eugene Batogov added a comment - My eclipse log
        Hide
        Martin Lippert (c) added a comment -

        I see a lot of classloading failures of classes that should be there. Can you try to start STS with the "-clean" option once?

        Show
        Martin Lippert (c) added a comment - I see a lot of classloading failures of classes that should be there. Can you try to start STS with the "-clean" option once?
        Hide
        Steffen Pingel added a comment -

        Hi Eugene,

        can you run "ulimit -a" from a shell and check what the limit for the number of open files is? I would recommend setting it to at least 4096.

        You can do that by running "ulimit -n 4096" and then starting STS from the same shell.

        Please let us know if that makes a difference.

        Thanks,

        Steffen

        Show
        Steffen Pingel added a comment - Hi Eugene, can you run "ulimit -a" from a shell and check what the limit for the number of open files is? I would recommend setting it to at least 4096. You can do that by running "ulimit -n 4096" and then starting STS from the same shell. Please let us know if that makes a difference. Thanks, Steffen
        Hide
        Eugene Batogov added a comment -

        My ulimit -a:

        core file size (blocks, -c) 0
        data seg size (kbytes, -d) unlimited
        scheduling priority (-e) 0
        file size (blocks, -f) unlimited
        pending signals (-i) 31441
        max locked memory (kbytes, -l) 64
        max memory size (kbytes, -m) unlimited
        open files (-n) 300000
        pipe size (512 bytes, -p) 8
        POSIX message queues (bytes, -q) 819200
        real-time priority (-r) 0
        stack size (kbytes, -s) 8192
        cpu time (seconds, -t) unlimited
        max user processes (-u) 31441
        virtual memory (kbytes, -v) unlimited
        file locks (-x) unlimited

        Show
        Eugene Batogov added a comment - My ulimit -a: core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 31441 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 300000 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 31441 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
        Hide
        Steffen Pingel added a comment -

        This problem appears to be an upstream bug in the platform and is also tracked here:

        348205: NullPointerException in xml editor
        https://bugs.eclipse.org/bugs/show_bug.cgi?id=348205

        Show
        Steffen Pingel added a comment - This problem appears to be an upstream bug in the platform and is also tracked here: 348205: NullPointerException in xml editor https://bugs.eclipse.org/bugs/show_bug.cgi?id=348205
        Hide
        Eugene Batogov added a comment -

        new full log with this errors ...

        Show
        Eugene Batogov added a comment - new full log with this errors ...
        Hide
        Eugene Batogov added a comment -

        NEW STS LOG WITH THIS ERRORS ...

        Show
        Eugene Batogov added a comment - NEW STS LOG WITH THIS ERRORS ...
        Hide
        Eugene Batogov added a comment -

        STS log at 2011-10-06

        Show
        Eugene Batogov added a comment - STS log at 2011-10-06
        Hide
        Tomasz Zarna added a comment -

        Eugene, can you please grab an STS with Eclipse 3.7.2 or higher i.e. 3.1.0.RELEASE and give it a try?

        Show
        Tomasz Zarna added a comment - Eugene, can you please grab an STS with Eclipse 3.7.2 or higher i.e. 3.1.0.RELEASE and give it a try?

          People

          • Assignee:
            Unassigned
            Reporter:
            Robert Munteanu
          • Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              First Response Date: