Mac上的STS启动问题 [英] STS launch issue on Mac

查看:68
本文介绍了Mac上的STS启动问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天开始STS,并弹出错误警报,要求我查看/Users/salman/springsource/sts-2.6.0.RELEASE/configuration下的错误日志.该日志文件具有以下堆栈跟踪:

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)

我尝试了此线程上列出的几种解决方案 Eclipse在启动时冻结-之前正在加载工作区,但没有任何效果.

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.

这是我的STS.ini.这对kadaj有意义吗?

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

推荐答案

我能够通过删除配置下的'org.eclipse.osgi'文件夹并重新启动STS来解决此问题.在配置文件夹中获得了此捆绑包的全新版本.我认为那是被破坏的东西.

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.

这篇关于Mac上的STS启动问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆