Issues with building project on IBM JDK
Hi There,
I've a project which has requirement to use with IBM JDK 7. I'm using Intellij Idea 15.0.2 on windows 7. My project is multi-module maven project and uses some groovy features and also uses gradle to flatten the POMs using maven org.fortasoft:gradle-maven-plugin. Now when I try to build my application, I get a one liner error in Messages window
Error:java.lang.NullPointerException
When I check build.log (C:\Users\<USER>\.IntelliJIdea15\system\log\build-log\build.log), I see following exception. As soon as I change the project SDK to Oracle JDK 7, everything works fine. Any idea on whats going wrong here?
2015-12-22 14:16:23,343 [ 4126] INFO - .incremental.IncProjectBuilder - java.lang.NullPointerException org.jetbrains.jps.incremental.ProjectBuildException: java.lang.NullPointerException at org.jetbrains.jps.incremental.groovy.GroovyBuilder.build(GroovyBuilder.java:142) at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1230) at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:904) at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:976) at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:870) at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:695) at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:386) at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:193) at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:137) at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:294) at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:125) at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:232) at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:42) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:482) at java.util.concurrent.FutureTask.run(FutureTask.java:273) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1176) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:795) Caused by: java.lang.NullPointerException at java.lang.ClassLoader.loadClass(ClassLoader.java:731) at java.lang.ClassLoader.loadClass(ClassLoader.java:707) at org.jetbrains.jps.incremental.groovy.InProcessGroovyc.createCompilationClassLoader(InProcessGroovyc.java:179) at org.jetbrains.jps.incremental.groovy.InProcessGroovyc.runGroovyc(InProcessGroovyc.java:76) at org.jetbrains.jps.incremental.groovy.GroovyBuilder.runGroovycOrContinuation(GroovyBuilder.java:201) at org.jetbrains.jps.incremental.groovy.GroovyBuilder.build(GroovyBuilder.java:117) ... 17 more
Cheers,
Jay
Please sign in to leave a comment.
Same issue here, which makes v15 a no-go so far :( any updates?
Looks like this resolved with 15.0.3 release - https://confluence.jetbrains.com/display/IDEADEV/IntelliJ+IDEA+15+143.1653.2+Release+Notes. Waiting for official release.
cool, thanks for the heads up. I upgraded a little too early from v14 it seems
well if you "have to" use IBM JDK only, then yes, else v15 is quite stable.
officially yes I need to use IBM. In the meanwhile, I will cheat by using Oracle JDK :) until I have the fix
LOL. I also did the same. Btw there is a work around provided in the bug ticket till the time you get 15.0.3 is out. Add -Didea.parallel.class.loader=false to File | Settings | Build, Execution, Deployment | Compiler | User-local build process VM options. It worked for me