I am using Eclipse to develop Android apps. Things seem to run along smoothly while I'm debugging and then Eclipse seems to hang up - a "Not Responding" error. I looked in the log files and I get this timeout error every 3 seconds. Anyone else seen this?
I have to keep restarting my machine.
!ENTRY org.eclipse.jdt.debug 4 125 2014-03-12 10:18:19.417
!MESSAGE Internal error logged from JDI Debug:
!STACK 0
org.eclipse.jdi.TimeoutException: Timeout occurred while waiting for packet 12963.
at org.eclipse.jdi.internal.connect.PacketReceiveManager.getReply(PacketReceiveManager.java:186)
at org.eclipse.jdi.internal.connect.PacketReceiveManager.getReply(PacketReceiveManager.java:197)
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:191)
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:226)
at org.eclipse.jdi.internal.VirtualMachineImpl.classesBySignature(VirtualMachineImpl.java:638)
at org.eclipse.jdi.internal.VirtualMachineImpl.classesByName(VirtualMachineImpl.java:667)
at org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget.jdiClassesByName(JDIDebugTarget.java:1596)
at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager.filterUnloadedTypes(JavaHotCodeReplaceManager.java:348)
at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager.notifyUnsupportedHCR(JavaHotCodeReplaceManager.java:379)
at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager$2.run(JavaHotCodeReplaceManager.java:322)
at org.eclipse.debug.core.DebugPlugin$AsynchRunner.run(DebugPlugin.java:1068)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.debug.core.DebugPlugin$AsynchRunner.async(DebugPlugin.java:1051)
at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:405)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
!SESSION 2014-03-12 10:30:21.771 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64
I suggest you clean up your eclipse using terminal
Mine directory
cd /Applications/eclipse_juno/Eclipse.app/Contents/MacOS
Clean command
./eclipse -clean
OR
Open up eclipse.ini in your eclipse folder.
Change this line
-Xms512m
-Xmx1024m
into this
-Xms768m
-Xmx768m
eclipse.ini
-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20120913-144807
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=192m
-Xms768m
-Xmx768m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
If still happen, restart your machine.
http://blog.revivalx.com/2014/03/15/your-eclipse-always-crash-how-to-fix-and-enhance-to-do-list/
You can increase a value of debugging time out in Eclipse.
Go to Window/Preferences. In the Java/Debug you'll see Debugger Time out parameter.
You need to run -clean, then use Task Manager (in Windows) to stop adb.exe. Once you do this, things run smoothly.
Unselect Window->Preferences->Java->Debug, "Suspend execution on uncaught exceptions"
Try this for eclipse
Menu -> Run-> Remove All BreakPoints
Related
I have built up an eclipse headless application, but while running it ends up with Stackoverflow error.
!SESSION 2020-06-24 16:24:05.556 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_251
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -application com.headless.application indir C:\workspace\TestData
Command-line arguments: -os win32 -ws win32 -arch x86_64 -application com.headless.application -consoleLog indir C:\workspace\TestData
!ENTRY org.eclipse.osgi 4 0 2020-06-24 18:43:21.315
!MESSAGE Application error
!STACK 1
java.lang.StackOverflowError
at org.eclipse.emf.ecore.resource.impl.BinaryResourceImpl$EObjectOutputStream.saveEObject(BinaryResourceImpl.java:1236)
at org.eclipse.emf.ecore.resource.impl.BinaryResourceImpl$EObjectOutputStream.saveEObjects(BinaryResourceImpl.java:1003)
Perhaps I thought this is because of memory issues so I tried to increase the memory in eclipse.ini file:
-vmargs
-Xmx16G
-Xms3G
-Xss16M
-XX:MinHeapFreeRatio=50
-XX:MaxHeapFreeRatio=60
-XX:+UseParallelGC
But still it fails with same Stackoverflow error.
I'm running my headless eclipse application via a batch file. The content of batch file looks like this:
#echo off
start eclipse -application com.headless.application -consoleLog indir C:\workspace\TestData
So my first doubt is that whether my headless application is considering the eclipse.ini file or not? If not what are other ways to pass eclipse.ini file directly in above eclipse call?
In case if it is considering the eclipse.ini file, what other options can be tried?
Note: In case of same GUI application, it is working fine.
I am using Eclipse 4.4.1 and i always encounter this error, i can not work with eclipse.
Is there any way to fix it?
My eclipse.ini:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
2048m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:+UseParallelGC
-XX:PermSize=512M
-XX:MaxPermSize=2048m
-Xms512m
-Xmx2048m
Exception stack trace:
java.lang.OutOfMemoryError: Java heap space
at org.eclipse.ui.part.ResourceTransfer.nativeToJava(ResourceTransfer.java:162)
at org.eclipse.swt.dnd.Clipboard.getContents(Clipboard.java:330)
at org.eclipse.swt.dnd.Clipboard.getContents(Clipboard.java:241)
at org.eclipse.ui.internal.navigator.resources.actions.PasteAction$1.run(PasteAction.java:192)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:187)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:156)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4590)
at org.eclipse.ui.internal.navigator.resources.actions.PasteAction.updateSelection(PasteAction.java:186)
at org.eclipse.ui.actions.BaseSelectionListenerAction.selectionChanged(BaseSelectionListenerAction.java:124)
at org.eclipse.ui.internal.navigator.resources.actions.EditActionGroup.updateActionBars(EditActionGroup.java:153)
at org.eclipse.ui.internal.navigator.resources.actions.EditActionGroup.fillActionBars(EditActionGroup.java:99)
at org.eclipse.ui.internal.navigator.resources.actions.EditActionProvider.fillActionBars(EditActionProvider.java:49)
at org.eclipse.ui.navigator.NavigatorActionService$3.run(NavigatorActionService.java:259)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.navigator.NavigatorActionService.fillActionBars(NavigatorActionService.java:253)
at org.eclipse.ui.navigator.CommonNavigatorManager.selectionChanged(CommonNavigatorManager.java:222)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:163)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:178)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2171)
at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1202)
at org.eclipse.ui.navigator.CommonViewer.handleSelect(CommonViewer.java:478)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1231)
at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:242)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:236)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:408)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4454)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799)
Session data:
eclipse.buildId=4.4.1.M20140925-0400
java.version=1.7.0_71
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product
I noticed this behavior after i installed https://extensions.gnome.org/extension/779/clipboard-indicator/. Do you also have this extension installed? When I disable this extension (and restart gnome-shell) the exception in Eclipse is gone. Can you confirm this?
I have made a bug report here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=449902.
You don't say how much memory you have on your computer, but you are very likely specifying overly large memory requirements.
Check this excellent answer:
What are the best JVM settings for Eclipse?
Per your settings, I believe you would need 1GB of free memory to start, and could use much more than that if loading a large project.
If that does not help, then I also noticed that the exception is occurring in a method that would appear to be related to clipboard transfer. Is it possible you have a very large data set in your clipboard? That's just a guess and I don't know why Eclipse would want to transfer data from the clipboard on load.
How do I resolve the above reported Eclipse error message? Additional details are given below.
Exception Stack Trace
java.lang.NullPointerException
at org.eclipse.m2e.jdt.internal.MavenClasspathContainerInitializer.initialize(MavenClasspathContainerInitializer.java:48)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2843)
at org.eclipse.jdt.internal.core.JavaModelManager$11.run(JavaModelManager.java:2749)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeAllContainers(JavaModelManager.java:2789)
at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1873)
at org.eclipse.jdt.core.JavaCore.initializeAfterLoad(JavaCore.java:3886)
at org.eclipse.jdt.internal.ui.InitializeAfterLoadJob$RealJob.run(InitializeAfterLoadJob.java:36)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Session Data
eclipse.buildId=I20120608-1400
java.version=1.7.0_08-ea
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/ravisankars/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -keyring /Users/ravisankars/.eclipse_keyring -showlocation
I did the following:
1) Close eclipse
2) Delete everything from the subfolder
\.metadata\.plugins\org.eclipse.core.resources\.projects in my workspace. In my case this was
folder C:\workspace\.metadata\.plugins\org.eclipse.core.resources\.projects.
3) Restart eclipse
I also set my M2_REPO classpath variable in eclipse (this is a maven based project):
4) In eclipse, select Window - preferences - java - build path - classpath variable - new
5) Set name=M2_REPO
6) Set path=the path to your .m2 folder (you will need to find your .m2 folder and use the correct path for your environment, in my case is was C:\Users\pondolal\.m2\repository).
7) Restart eclipse
8) Clean and build projects
I'm trying to evaluate IBM Worklight, however Eclipse 3.7.2 is not displaying any of the functionality that is supposed to be provided by the IBM Worklight plug-ins.
I installed Worklight from the Eclipse Marketplace and have verified that the plug-ins are actually listed under "About Eclipse SDK". My eclipse.ini is as follows:
-startup
../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.101.v20120109-1504
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512M
--launcher.defaultAction
openFile
-vmargs
-Xms100m
-Xmx1024m
-XX:MaxPermSize=512m
-Djava.util.Arrays.useLegacyMergeSort=true
-Dcom.ibm.ws.management.event.max_polling_interval=1000
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dosgi.requiredJavaVersion=1.6
I have also tried appending -clean to the above list as well as restarting Eclipse, changing workspaces etc. However I'm still totally unable to see Worklight in my toolbar or create Worklight Projects.
Does anyone know what I might be doing wrong?
Update: Added workspace log for a fresh workspace.
!SESSION 2012-07-13 14:44:27.572
----------------------------------------------- eclipse.buildId=M20120208-0800 java.version=1.6.0_33 java.vendor=Apple
Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -keyring /Users/ben/.eclipse_keyring
-showlocation Command-line arguments: -os macosx -ws cocoa -arch x86 -data /Users/ben/Projects/eclipse/worklight -keyring /Users/ben/.eclipse_keyring -showlocation
!ENTRY org.eclipse.core.net 1 0 2012-07-13 14:44:31.545 !MESSAGE
System property http.nonProxyHosts has been set to
local|.local|169.254/16|.169.254/16 by an external source. This
value will be overwritten using the values from the preferences
!ENTRY org.eclipse.ui 4 0 2012-07-13 14:47:09.927 !MESSAGE Unhandled
event loop exception !STACK 0 org.eclipse.swt.SWTException: Device is
disposed at org.eclipse.swt.SWT.error(SWT.java:4282) at
org.eclipse.swt.SWT.error(SWT.java:4197) at
org.eclipse.swt.SWT.error(SWT.java:4168) at
org.eclipse.swt.widgets.Display.error(Display.java:1065) at
org.eclipse.swt.widgets.Display.checkDevice(Display.java:619) at
org.eclipse.swt.widgets.Display.getShells(Display.java:1704) at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72)
at
org.eclipse.equinox.internal.p2.ui.sdk.PreloadingRepositoryHandler.execute(PreloadingRepositoryHandler.java:66)
at
org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
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.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
at
org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:829)
at
org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:815)
at
org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:805)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128) at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457) at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480) at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465) at
org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270) at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) at
org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at
org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
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) !SESSION
2012-07-13 14:47:14.118
----------------------------------------------- eclipse.buildId=M20120208-0800 java.version=1.6.0_33 java.vendor=Apple
Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -keyring /Users/ben/.eclipse_keyring
-showlocation Command-line arguments: -os macosx -ws cocoa -arch x86 -keyring /Users/ben/.eclipse_keyring -showlocation
!ENTRY org.eclipse.core.net 1 0 2012-07-13 14:47:19.044 !MESSAGE
System property http.nonProxyHosts has been set to
local|.local|169.254/16|.169.254/16 by an external source. This
value will be overwritten using the values from the preferences
!SESSION 2012-07-13 14:48:38.988
----------------------------------------------- eclipse.buildId=M20120208-0800 java.version=1.6.0_33 java.vendor=Apple
Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -keyring /Users/ben/.eclipse_keyring
-showlocation Command-line arguments: -os macosx -ws cocoa -arch x86 -keyring /Users/ben/.eclipse_keyring -showlocation
!ENTRY org.eclipse.core.net 1 0 2012-07-13 14:48:42.586 !MESSAGE
System property http.nonProxyHosts has been set to
local|.local|169.254/16|.169.254/16 by an external source. This
value will be overwritten using the values from the preferences
!SESSION 2012-07-13 14:49:29.076
----------------------------------------------- eclipse.buildId=M20120208-0800 java.version=1.6.0_33 java.vendor=Apple
Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -keyring /Users/ben/.eclipse_keyring
-showlocation Command-line arguments: -os macosx -ws cocoa -arch x86 -keyring /Users/ben/.eclipse_keyring -showlocation
!ENTRY org.eclipse.core.net 1 0 2012-07-13 14:49:32.650 !MESSAGE
System property http.nonProxyHosts has been set to
local|.local|169.254/16|.169.254/16 by an external source. This
value will be overwritten using the values from the preferences
!SESSION 2012-07-13 14:49:47.302
----------------------------------------------- eclipse.buildId=M20120208-0800 java.version=1.6.0_33 java.vendor=Apple
Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -showsplash org.eclipse.platform
--launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -keyring /Users/ben/.eclipse_keyring -showlocation Command-line arguments: -os macosx -ws cocoa -arch x86 -showsplash
org.eclipse.platform --launcher.XXMaxPermSize 256m
--launcher.defaultAction openFile -keyring /Users/ben/.eclipse_keyring -showlocation
!ENTRY org.eclipse.core.net 1 0 2012-07-13 14:49:50.918 !MESSAGE
System property http.nonProxyHosts has been set to
local|.local|169.254/16|.169.254/16 by an external source. This
value will be overwritten using the values from the preferences
!SESSION 2012-07-13 14:52:52.544
----------------------------------------------- eclipse.buildId=M20120208-0800 java.version=1.6.0_33 java.vendor=Apple
Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -keyring /Users/ben/.eclipse_keyring
-showlocation Command-line arguments: -os macosx -ws cocoa -arch x86 -keyring /Users/ben/.eclipse_keyring -showlocation
!ENTRY org.eclipse.core.net 1 0 2012-07-13 14:52:55.949 !MESSAGE
System property http.nonProxyHosts has been set to
local|.local|169.254/16|.169.254/16 by an external source. This
value will be overwritten using the values from the preferences
Update 2: Based on the little information I can find this may be caused by some sort of incompatibility with the latest Android Developer Tools (ADT 20). This is some-what concerning considering Worklight is designed to work in conjunction with ADT.
There is a problem with Eclipse Classic (3.7.2) and Worklight and ADT 20. ADT 20 was released after the current version of Worklight was released.
As a workaround you can install Eclipse IDE for Java EE Developers (Eclipse Indigo or Helios, but not the latest version Juno, which was also released after the current version of Worklight was released).
I started STS today and an error alert popped up asking me to look at the error log under /Users/salman/springsource/sts-2.6.0.RELEASE/configuration. That log file had the following stacktrace:
!SESSION 2012-03-29 10:16:51.910 -----------------------------------------------
eclipse.buildId=2.9.0.201203011000-RELEASE
java.version=1.6.0_29
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product com.springsource.sts.ide -keyring /Users/salmanqureshi/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product com.springsource.sts.ide -keyring /Users/salmanqureshi/.eclipse_keyring -showlocation
!ENTRY org.eclipse.osgi 2 0 2012-03-29 10:16:54.928
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-03-29 10:16:54.928
!MESSAGE Bundle org.codehaus.groovy_1.8.6.xx-20120301-1300-e36-RELEASE [1323] was not resolved.
!SUBENTRY 2 org.codehaus.groovy 2 0 2012-03-29 10:16:54.928
!MESSAGE The bundle is disabled: "org.eclipse.pde.ui:Disabled via PDE"
!ENTRY org.eclipse.osgi 4 0 2012-03-29 10:16:54.930
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
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:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
I tried the few solutions listed on this thread Eclipse freezing at startup - before loading workspace but nothing worked.
While I go and try a few different things and checkout a few more blog posts. I wouldn't mind getting a quick reply here.
EDIT:
Here's my STS.ini. Does this make any sense kadaj?
-startup
../../../plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.2.R36x_v20101019_1345
-product
com.springsource.sts.ide
--launcher.defaultAction
openFile
-vmargs
-clean
-Dosgi.requiredJavaVersion=1.5
-Xmn128m
-Xms256m
-Xmx768m
-Xss1m
-XX:PermSize=128m
-XX:MaxPermSize=384m
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
I was able to resolve it by removing the 'org.eclipse.osgi' folder under configuration and relaunching STS. Got a fresh build of this bundle in configuration folder. I think that is what was corrupted.
Follow the mentioned steps
Open Application
Locate STS
Right click and open package contents
navigate to eclipse folder
open sts.ini
Add -Xss128m -Xmn1024m