Spring boot 带有Spring Boot devtools的Spring STS 3.9.0出现问题

Spring boot 带有Spring Boot devtools的Spring STS 3.9.0出现问题,spring-boot,spring-tool-suite,spring-boot-devtools,Spring Boot,Spring Tool Suite,Spring Boot Devtools,我本周升级到了SpringSTS的新3.9.0版本。一切都很好,除了启动SpringBootWeb应用程序(SpringBootVersion1.5.3)时出错 An internal error occurred during: "Ready state poller". com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException at com.google.

我本周升级到了SpringSTS的新3.9.0版本。一切都很好,除了启动SpringBootWeb应用程序(SpringBootVersion1.5.3)时出错

An internal error occurred during: "Ready state poller".
com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2199)
    at com.google.common.cache.LocalCache.get(LocalCache.java:3932)
    at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3936)
    at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4806)
    at org.springframework.ide.eclipse.boot.dash.model.LocalCloudServiceDashElement.getLaunchConfigs(LocalCloudServiceDashElement.java:144)
    at org.springframework.ide.eclipse.boot.dash.model.AbstractLaunchConfigurationsDashElement$4.stateChanged(AbstractLaunchConfigurationsDashElement.java:434)
    at org.springframework.ide.eclipse.boot.dash.model.AbstractLaunchConfigurationsDashElement$4.stateChanged(AbstractLaunchConfigurationsDashElement.java:1)
    at org.springframework.ide.eclipse.boot.dash.util.RunStateTracker.updateOwnerStatesAndFireEvents(RunStateTracker.java:216)
    at org.springframework.ide.eclipse.boot.dash.util.RunStateTracker.access$0(RunStateTracker.java:208)
    at org.springframework.ide.eclipse.boot.dash.util.RunStateTracker$1.gotValue(RunStateTracker.java:151)
    at org.springframework.ide.eclipse.boot.dash.util.RunStateTracker$1.gotValue(RunStateTracker.java:1)
    at org.springsource.ide.eclipse.commons.livexp.core.LiveExpression.changed(LiveExpression.java:114)
    at org.springsource.ide.eclipse.commons.livexp.core.LiveExpression.refresh(LiveExpression.java:71)
    at org.springsource.ide.eclipse.commons.livexp.core.LiveVariable.setValue(LiveVariable.java:46)
    at org.springframework.ide.eclipse.boot.dash.util.AbstractPollingAppReadyStateMonitor$1.run(AbstractPollingAppReadyStateMonitor.java:51)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Caused by: java.lang.NullPointerException
    at org.eclipse.debug.internal.core.LaunchManager.isValidLaunchConfigurationName(LaunchManager.java:2706)
    at org.eclipse.debug.internal.core.LaunchConfigurationType.newInstance(LaunchConfigurationType.java:473)
    at org.springframework.ide.eclipse.boot.launch.cli.CloudCliServiceLaunchConfigurationDelegate.createLaunchConfig(CloudCliServiceLaunchConfigurationDelegate.java:156)
    at org.springframework.ide.eclipse.boot.dash.model.LocalCloudServiceDashElement$1.load(LocalCloudServiceDashElement.java:68)
    at org.springframework.ide.eclipse.boot.dash.model.LocalCloudServiceDashElement$1.load(LocalCloudServiceDashElement.java:1)
    at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3522)
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2315)
    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278)
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2193)
    ... 15 more
会话数据:

eclipse.buildId=3.9.0.201707061823-RELEASE-e47
java.version=1.8.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.springsource.sts.ide -product org.springsource.sts.ide
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.springsource.sts.ide -data C:\Jeff Local\Workspace\gisp_3.9.0 -product org.springsource.sts.ide
除了我更改代码,devtools不会重新加载应用程序之外,服务器上的一切都正常工作。我必须手动重新启动它

我最初使用的是一个现有的工作区(它会自动升级),但我也尝试过:

  • -clean
    启动eclipse
  • 切换到全新的工作区,并导入首选项和相同的项目
  • 切换到一个没有首选项但项目相同的全新工作区,然后手动导入首选项
  • 将Spring Boot升级到1.5.6(包括devtools)
如果我切换到一个全新的工作区,导入项目,并且从未导入我的设置,那么它最终会毫无错误地启动


我希望能够导入我的设置,因为我已发送了几个月的邮件,使其处于该状态。

我认为您在本期中发布的堆栈跟踪:


我建议在GitHub上继续关注这个问题。

我曾经遇到过同样的问题,但在将spring boot cli版本从boot 1.5.4.RELEASE更改为boot 1.5.8.RELEASE后,它对我来说运行良好。
下载自

将其保存到本地文件夹并添加到此处。清理并重建项目。就这些


谢谢。不知道我怎么错过了。希望你能弄明白。