简体   繁体   English

Eclipse - JUnit - 在“启动 MyMavenModule”期间发生内部错误。 空指针异常

[英]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?我究竟做错了什么?

EDIT:编辑: 在此处输入图像描述

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.

相关问题 JUnit4 + Eclipse“启动期间发生内部错误” - JUnit4 + Eclipse “An internal error occurred during Launching” 在Eclipse中启动testng时发生内部错误 - An internal error occurred during launching testng in eclipse 在以下过程中发生内部错误:“启动MyFirstApp”。 java.lang.NullPointerException - An internal error occurred during: “Launching MyFirstApp”. java.lang.NullPointerException TestNG 启动时发生内部错误 - TestNG An internal error occurred during launching JRE 系统库在 Eclipse 中总是未绑定? (在“启动主程序”期间发生内部错误。模型不适用于 helloWorld) - JRE System Library is always unbound in Eclipse? (An internal error occurred during: "Launching Main". Model not available for helloWorld) 在以下过程中发生内部错误:“启动 <myApp> ”。 Java堆空间 - An internal error occurred during: “Launching <myApp>”. Java heap space 在以下过程中发生内部错误:“正在为…… java.lang.NullPointerException 加载描述符 - An internal error occurred during: "Loading descriptor for … java.lang.NullPointerException 启动eclipse时出错:初始化Java工具时发生内部错误 - Error launching eclipse : An internal error occured during initializing java tooling 期间发生内部错误:“启动<My_APP> &quot;. ATTR_EXCLUDE_TEST_CODE - An internal error occurred during: "Launching <My_APP>". ATTR_EXCLUDE_TEST_CODE 在以下过程中发生内部错误:“构建” - An internal error occurred during: "Building"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM