Java - Internal Error when evaluating stream expressions
When debugging, if I try using Evaluate Expression on a stream, I get "Internal Error" (no additional description or stackstrace on intellij UI)
Arrays.asList("item1", "item1", "item1", "item1")
.stream()
.map(a -> "ds" + a)
.collect(Collectors.toList())
I have some colleagues that have the same IntelliJ and JDK version as me, and they don't get this error.
I was able to narrow the issue down to the installation folder. When I get the issue, I installed IntelliJ on a custom folder (i.e. C:/dev/IntelliJ); I have reinstalled IntelliJ on the same machine, but kept the default installation folder, and now it works, but still not 100% sure about that.
On the logs I see the following:
2020-03-12 08:58:33,070 [ 397634] INFO - rationStore.ComponentStoreImpl - Saving appPropertiesComponent took 13 ms
2020-03-12 08:58:33,222 [ 397786] INFO - rationStore.ComponentStoreImpl - Saving Project (name=Automation, containerState=ACTIVE, componentStore=C:\dev\workspace\automation\LDPOC) libraryTable took 102 ms
2020-03-12 09:00:28,065 [ 512629] INFO - rationStore.ComponentStoreImpl - Saving Project (name=Automation, containerState=ACTIVE, componentStore=C:\dev\workspace\automation\LDPOC) libraryTable took 36 ms
2020-03-12 09:00:30,980 [ 515544] INFO - xtractLightMethodObjectHandler - Use reflection to evaluate inaccessible members
2020-03-12 09:00:31,011 [ 515575] INFO - ject.ExtractGeneratedClassUtil - Replace method: invoke
2020-03-12 09:00:31,028 [ 515592] ERROR - lij.debugger.impl.InvokeThread - Could not initialize class org.jetbrains.jps.incremental.java.JavaBuilder
java.lang.NoClassDefFoundError: Could not initialize class org.jetbrains.jps.incremental.java.JavaBuilder
at com.intellij.debugger.ui.impl.watch.CompilingEvaluatorImpl.compile(CompilingEvaluatorImpl.java:78)
at com.intellij.debugger.ui.impl.watch.CompilingEvaluator.evaluate(CompilingEvaluator.java:65)
at com.intellij.debugger.ui.impl.watch.EvaluationDescriptor.calcValue(EvaluationDescriptor.java:90)
at com.intellij.debugger.ui.impl.watch.ValueDescriptorImpl.setContext(ValueDescriptorImpl.java:190)
at com.intellij.debugger.engine.JavaDebuggerEvaluator$1.threadAction(JavaDebuggerEvaluator.java:89)
at com.intellij.debugger.engine.events.DebuggerContextCommandImpl.contextAction(DebuggerContextCommandImpl.java:71)
at com.intellij.debugger.engine.events.SuspendContextCommandImpl.action(SuspendContextCommandImpl.java:57)
at com.intellij.debugger.engine.events.DebuggerCommandImpl.run(DebuggerCommandImpl.java:43)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:151)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:29)
at com.intellij.debugger.impl.InvokeThread.run(InvokeThread.java:138)
at com.intellij.debugger.impl.InvokeThread.access$100(InvokeThread.java:19)
at com.intellij.debugger.impl.InvokeThread$WorkerThreadRequest.lambda$run$0(InvokeThread.java:49)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:221)
at com.intellij.debugger.impl.InvokeThread$WorkerThreadRequest.run(InvokeThread.java:48)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:238)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2020-03-12 09:00:31,034 [ 515598] ERROR - lij.debugger.impl.InvokeThread - IntelliJ IDEA 2019.3.3 Build #IC-193.6494.35
2020-03-12 09:00:31,034 [ 515598] ERROR - lij.debugger.impl.InvokeThread - JDK: 11.0.5; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2020-03-12 09:00:31,034 [ 515598] ERROR - lij.debugger.impl.InvokeThread - OS: Windows 10
2020-03-12 09:00:31,034 [ 515598] ERROR - lij.debugger.impl.InvokeThread - Last Action: EvaluateExpression
2020-03-12 09:00:32,623 [ 517187] INFO - rationStore.ComponentStoreImpl - Saving Project (name=Automation, containerState=ACTIVE, componentStore=C:\dev\workspace\automation\LDPOC) RunManager took 28 ms, libraryTable took 50 ms
For the project I am using jdk1.8.0_231
IntelliJ info:
IntelliJ IDEA 2019.3.3 (Community Edition)
Build #IC-193.6494.35, built on February 11, 2020
Runtime version: 11.0.5+10-b520.38 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 2014M
Cores: 4
Registry:
Non-Bundled Plugins: Lombook Plugin, org.intellij.scala
Please sign in to leave a comment.
Please provide idea.log (Help | Show log...).
There you go:
Does it help if you enable plugin "DevKit"?
It was already enabled
I just ran into the same issue. Was this ever resolved?
Eperret Could you please share your code sample and “Help | Collect Logs and Diagnostic Data” in a new YouTrack ticket? It could be due to https://youtrack.jetbrains.com/issue/IDEA-214738