内部错误(NullPointerException)intellij在编译时引发了Idea

时间:2018-01-25 08:06:38

标签: java intellij-idea nullpointerexception

我在完成构建后尝试在java上启动项目(groovy + 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并返回完全重建。

1 个答案:

答案 0 :(得分:0)

最新github.com/osp/osp.tools.html2print解决了问题(谢谢,@ Marcel)