解决STS的Boot Dashboard挂掉,报无法加载BootDashTreeView的问题

问题描述

重新启动STS后,Boot Dashboard 显示异常,无法显示可执行的SpringBoot应用。

如下图:

异常信息:

Plug-in org.springframework.ide.eclipse.boot.dash was unable to load class org.springframework.ide.eclipse.boot.dash.views.BootDashTreeView

详细异常信息:

org.eclipse.core.runtime.CoreException: Plug-in org.springframework.ide.eclipse.boot.dash was unable to load class org.springframework.ide.eclipse.boot.dash.views.BootDashTreeView.
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:200)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:182)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:934)
	……
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
Caused by: java.lang.ClassNotFoundException: An error occurred while automatically activating bundle org.springframework.ide.eclipse.boot.dash (509).
	at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:126)
	……
	at org.eclipse.e4.ui.workbench.addons.perspectiveswitcher.PerspectiveSwitcher$4.widgetSelected(PerspectiveSwitcher.java:546)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
	... 26 more
Caused by: org.osgi.framework.BundleException: Exception in org.springframework.ide.eclipse.boot.dash.BootDashActivator.start() of bundle org.springframework.ide.eclipse.boot.dash.
	at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:803)
	……
	at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
	... 134 more
Caused by: java.lang.NoClassDefFoundError: org/springframework/tooling/ls/eclipse/commons/STS4LanguageServerProcessStreamConnector
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	……
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:775)
	... 141 more
Caused by: java.lang.ClassNotFoundException: An error occurred while automatically activating bundle org.springframework.tooling.ls.eclipse.commons (526).
	at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:126)
	……
	at org.eclipse.lsp4e.ConnectDocumentToLanguageServerSetupParticipant$1.run(ConnectDocumentToLanguageServerSetupParticipant.java:75)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: org.osgi.framework.BundleException: Exception in org.springframework.tooling.ls.eclipse.commons.LanguageServerCommonsActivator.start() of bundle org.springframework.tooling.ls.eclipse.commons.
	at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:803)
	……
	at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
	... 25 more
Caused by: org.eclipse.swt.SWTException: Invalid thread access
	at org.eclipse.swt.SWT.error(SWT.java:4595)
	……
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:775)
	... 32 more

 

 

分析

百度无法找到解决方法。

google的信息也很少,主要集中在stackoverflow,不过依然找到了答案。

martinlippert  commented [on 4 Dec 2018]
    
    Beyond the observation and comment from Kris about Lombok, 
    you also might want to try to start STS4 with the `-clean` option from the command line. 
    Sometimes that helps in those situation. If not (and Lombok is not the cause), 
    we would need to dive deeper into this (or you could try a fresh distribution install and double check that).

原来eclipse启动,还可以进行clean。也算是又学到了一招。

 

解决

在cmd中执行SpringToolSuite4.exe -clean即可。

 

文章结束。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值