gpt4 book ai didi

java - 编译时引发的内部错误(NullPointerException)intellij Idea

转载 作者:行者123 更新时间:2023-12-05 07:37:39 33 4
gpt4 key购买 nike

我正在尝试在完成构建后启动一个项目(java+groovy on gradle)。但是,我在 main 或单元测试开始时遇到了错误,堆栈跟踪如下:

Error:Internal error: (java.lang.NullPointerException) null
java.lang.NullPointerException
at org.jetbrains.jps.model.serialization.JpsProjectLoader.loadFromDirectory(JpsProjectLoader.java:156)
at org.jetbrains.jps.model.serialization.JpsProjectLoader.loadProject(JpsProjectLoader.java:96)
at org.jetbrains.jps.model.serialization.impl.JpsSerializationManagerImpl.loadModel(JpsSerializationManagerImpl.java:42)
at org.jetbrains.jps.cmdline.JpsModelLoaderImpl.loadModel(JpsModelLoaderImpl.java:50)
at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:79)
at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:280)
at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:138)
at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:235)
at org.jetbrains.jps.service.impl.SharedThreadPoolImpl.lambda$executeOnPooledThread$0(SharedThreadPoolImpl.java:42)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

错误出现在预编译过程中。有错误的图片:

enter image description here

我有 Intellij Idea 2017.3.3(社区版)JRE 1.8.0_152_release-1024-b11 amd64

增加编译器参数 Build process heap size 没有帮助。
所以,没有帮助advice将编译器从 Javac 更改为 Eclipse 并返回完全重建。

最佳答案

最新EAP (173.4548)问题已解决(谢谢,@Marcel)

关于java - 编译时引发的内部错误(NullPointerException)intellij Idea,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48438217/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com