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

问题描述

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

如下图:

解决STS的Boot Dashboard挂掉,报无法加载BootDashTreeView的问题_第1张图片

异常信息:

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即可。

解决STS的Boot Dashboard挂掉,报无法加载BootDashTreeView的问题_第2张图片

 

文章结束。

你可能感兴趣的:(IDE)