[英]Eclipse - JUnit - An internal error occurred during: “Launching MyMavenModule”. NullPointerException
I recently upgraded to Eclipse 2020-06.我最近升级到 Eclipse 2020-06。 After the upgrade, I'm now unable to run Junit tests in Eclipse while they run smoothly in Maven.
升级后,我现在无法在 Eclipse 中运行 Junit 测试,而它们在 Maven 中运行顺利。
Here is a screenshot of the error:这是错误的屏幕截图:
I tried to delete the .metadata
folder (I made a backup before), start a fresh copy of eclipse and import my project in it and event start another fresh copy of eclipse and create a simple JUnit test in it.我尝试删除
.metadata
文件夹(我之前进行了备份),启动 eclipse 的新副本并将我的项目导入其中,然后事件启动 eclipse 的另一个新副本并在它中创建一个简单的 Z8965A291ED3E84870298E 测试。
All these attempts result in the same error.所有这些尝试都会导致相同的错误。
What am I doing wrong?我究竟做错了什么?
According to the screenshot you did not have Eclipse 2020-06 (4.16.0) , but a kind of beta/preview version which might be unstable :根据屏幕截图,您没有 Eclipse 2020-06 (4.16.0) ,而是一种可能不稳定的 beta/preview 版本:
eclipse.buildId=4.16.0.I20200604-0540
means integration build ( I
) of June 4, 2020 ( 20200604
) at 5:40 ( 0540
). eclipse.buildId=4.16.0.I20200604-0540
表示 2020 年 6 月 4 日 ( 20200604
) 5:40 ( 0540
) 的集成构建 ( I
)。 After this build and before the release there were a couple of integration builds and one release candidate.在此构建之后和发布之前,有几个集成构建和一个候选发布。 It was the second release candidate, one week later, which became the Eclipse 2020-06 release and which was released on June 17, 2020.
这是一周后的第二个候选版本,它成为 Eclipse 2020-06 版本,并于 2020 年 6 月 17 日发布。
If you do not want to have an integration build, make sure that in Window > Preferences: Update/Install > Available Software Sites you don't have an update site with a URL that contains staging
.如果您不想进行集成构建,请确保在Window > Preferences: Update/Install > Available Software Sites中没有包含
staging
的 URL 的更新站点。
I wasn't able to fix the problem.我无法解决问题。 I tried to install Java Development Tool but the installer failed with an OutOfMemoryException.
我尝试安装 Java 开发工具,但安装程序失败并出现 OutOfMemoryException。
So I re -download Eclipse 2020-06 manually, I re -install all my plugins and re -import my projects.所以我手动重新下载 Eclipse 2020-06,重新安装所有插件并重新导入我的项目。
My guess is the ooomph installer messed around somehow during the upgrade from Eclipse 2020-03 to Eclipse 2020-06.我的猜测是 ooomph 安装程序在从 Eclipse 2020-03 升级到 Eclipse 2020-06 期间不知何故搞砸了。
I lost nearly a day to fix this !我花了将近一天的时间来解决这个问题!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.