IntelliJ spring unable to build project

Answered

Since upgraded to 2017.3.2, I was unable to build and run my spring project.

System Information:

IntelliJ IDEA 2017.3.2 (Ultimate Edition)
Build #IU-173.4127.27, built on December 26, 2017
Licensed to Derek CHAN
Subscription is active until February 10, 2018
For educational use only.
JRE: 1.8.0_152-release-1024-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

 

Error Trace:

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:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

2
6 comments
Avatar
Permanently deleted user

Same issue for me. Reproduced on 2017.3.1, 2017.3.2 and 2017.3 EAP

Issue is not there when downgrading to 2017.2.6

My build is Maven based. The failure is when I run a Tomcat Local Server run configuration

0

Please report at https://youtrack.jetbrains.com/issues/IDEA with the steps to reproduce and the logs.

0
Avatar
Permanently deleted user

I also see it in 2017.3.2 with my Gradle project.  Disabling "Store generated project files externally" fixed things for me.

1
Avatar
Permanently deleted user

Also seen in 2017.3.2 with my Gradle project, also worked around by disabling "Store generated project files externally".

0

Please sign in to leave a comment.