NPE on build - IntelliJ IDEA 2024.3.3
hi,
Any idea to solve the below build NPE for IntelliJ IDEA Community 2024.3.3 ? another version 2024.2.1 works fine in the same env.
tried reinstall / invalidate caches / disabled all plugins / delete IdeaIC2024.3 folder of Local / Roaming but no luck.
i can simply produce the error by doing below
1. create new empty project test_2024.3.3
2. Build → Build Project , then throw below errors.
At the beginning the version 2024.3.3 worked well but after a few bounces(ide / OS) or maybe some config update then started seeing those NPEs and then cannot run any test/app any more.
and tried to load the 2024.2.1's fine projects and also met the same NPE.
#########################################
Executing pre-compile tasks…
java.lang.NullPointerException
at org.jetbrains.ide.BuiltInServerManagerImpl.createServerBootstrap(BuiltInServerManagerImpl.kt:93)
at com.intellij.compiler.server.BuildManager.startListening(BuildManager.java:1867)
at com.intellij.compiler.server.BuildManager.ensureListening(BuildManager.java:1136)
at com.intellij.compiler.server.BuildManager.launchBuildProcess(BuildManager.java:1358)
at com.intellij.compiler.server.BuildManager.lambda$scheduleBuild$17(BuildManager.java:1006)
at com.intellij.openapi.progress.util.BackgroundTaskUtil.lambda$submitTask$8(BackgroundTaskUtil.java:266)
at com.intellij.openapi.progress.util.BackgroundTaskUtil.lambda$createBackgroundTask$10(BackgroundTaskUtil.java:302)
at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:98)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:223)
at com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.use(trace.kt:45)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:222)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$14(CoreProgressManager.java:674)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:749)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:705)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:673)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:203)
at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:98)
at com.intellij.openapi.progress.util.BackgroundTaskUtil.lambda$createBackgroundTask$11(BackgroundTaskUtil.java:297)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:103)
at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:103)
at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:109)
at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:103)
at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:249)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:30)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.executeFirstTaskAndHelpQueue(BoundedTaskExecutor.java:227)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:218)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:212)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
at java.base/java.lang.Thread.run(Thread.java:842)
Executing post-compile tasks…
Synchronizing output directories…
4/3/2025 2:08 PM - Build completed with 1 error and 0 warnings in 162 ms
Please sign in to leave a comment.
Hi Ma Jun Z ,
I am also facing the same issue. Please let me know if you have a solution for this.
Please upload the zip file to https://uploads.jetbrains.com/, and share the Upload ID with us.
Hi Jerome Guan ,
I tried collecting full logs via Help | Collect Logs and Diagnostic Data. But, the generated folder is empty. I have uploaded the console logs and screenshot of the error I got when restarting Intellij. Below is the upload ID:
Upload id: 2025_04_07_nAPSDWpCKi8SvxMjzMGyaT (file: Intellij_NPE_Issue_7thApr.zip)
FYI, Intellij details:
IntelliJ IDEA 2024.3.4.1 (Community Edition)
Build #IC-243.25659.59, built on March 5, 2025
Runtime version: 21.0.6+8-b631.39 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.X11.XToolkit
Linux 5.15.0-52-generic
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 8
Registry:
ide.experimental.ui=true
llm.show.ai.promotion.window.on.start=false
Non-Bundled Plugins:
com.squaretest.Squaretest (1.8.14)
Kotlin: 243.25659.59-IJ
Current Desktop: ubuntu:GNOME
hi Jerome Guan,
Please find Upload id: 2025_04_07_k9xRZ6HCdo4h3kXepnH1DM (file: idea-logs.zip). have masked some inner text due to the compliance policy . let me know if you cannot parse the zip file.
Ankitha Codes, thanks. will let you know if its solved.
Hi Ma Jun Z , I see the JRE of your IDE is not JetBrains Built-in JBR “JRE: 17.0.14+8-LTS-191, amd64 (Oracle Corporation)”, please try to switch to the default one and restart IDE https://www.jetbrains.com/help/idea/switching-boot-jdk.html
Hi Ankitha Codes , please use command line to start your IDE (https://intellij-support.jetbrains.com/hc/en-us/articles/360011901879-How-to-start-IDE-from-the-command-line), and share the full output with us:https://uploads.jetbrains.com/
Meanwhile, please also manually compress the log folder (https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#logs-directory) and share with us, thank you.
Work like a charm. all good now. thanks Jerome Guan .
Hi Jerome Guan ,
Please find the output when Intellij is opened in terminal and complete log folder in under below upload ID:
Upload id: 2025_04_12_2CDPMahbmqsrWGSDUKC335 (files: log.zip, intellijLogs_when_Open_from_terminal_12thApr.txt)
Hi Ankitha Codes , please back up and remove the following directory:
~/.config/JetBrains/IdeaIC2024.3
~/.local/share/JetBrains/IdeaIC2024.3
Hi Jerome Guan ,
Removing the above folders worked. Thank you so much.
Btw, what was the issue?
Hi Ankitha Codes , I found the IDE is trying to read some old configurations but stuck on something, so clearing the config folder and cache folder would help.
Hi All,
I'm facing the below issue, When i try to run my service starter file, Its a maven project i deal with, maven build is successful, But when i run the service the below error i do see.
I tried running with the jar file on the cmd prompt, then i'm able to run the service. then here i got to know the problem is clearly with the jetbrains setup.
I have seen the above resolution. But i dont see .config and .share file in my program data or appdata folders or in C:
Could some one please help. and the version of Intellij i'm using is 2024.3.3
Also when i restart the ID, I see an error alert, HTTP Git integration failed ,check with th firewall settings………
Please help.
If you cannot start the IntelliJ IDEA, a full reinstallation is recommended:
Back up and remove the https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#config-directory and https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#system-directory, then uninstall IntelliJ IDEA, then reinstall it.
if the issue persists after reinstallation, please try to start it from command line and share all the output with us, thank you.
https://intellij-support.jetbrains.com/hc/en-us/articles/360011901879-How-to-start-IDE-from-the-command-line
Hi jerome,
Thanks for helping me out, Below are the finding. Could you please help me to resolve this.
When i open the IntelliJ without any project opened, I gives a alert in the right corner: Http Git integration error, Check firewall settings…
And when i run my service/ Project, It gives the above pasted error of BuiltInServerMangerImpl……..(Last Thread Screenshot)
I reinstalled my IntelliJ,
And when i start with the CMD . Below is the error.
Could you please help to try the following suggestion:
The path to the selected runtime is stored in the idea.jdk or idea64.jdk file in the IntelliJ IDEA configuration directory (https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#config-directory). If there are problems with the selected runtime, you can delete this file to revert to the default runtime.
https://www.jetbrains.com/help/idea/switching-boot-jdk.html
Hi Jerome Guan and Team,
I'm getting Nullpointer Exception while running my application in IntelliJ Community Edition-2024.3.3
Maven - 3.9.9
JDK - 17.0.16
Upload ID: 2025_10_09_QuwHoHGqWNEqgYojcuaapq
Can you please assist me on this issue.
Thanks,
Sudhakar D
@Sudhakar What build system are you using? Could you please share more contexts? Please try:
Reset system/caches:
If the issue persists, better share the project with us for further troubleshooting.