Sometimes the following error message (screenshot attached below) is shown when I run my code. But every thing will be OK after I re-run. Who knows why? Thanks.
The version is:
java version "1.8.0" Java(TM) SE Runtime Environment (build 1.8.0-b132) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
Advertisement
Answer
It is probably this bug: https://bugs.openjdk.java.net/browse/JDK-7142035.
The bug is described as fixed in Java 9, and the fix has been backported to Java 8 and Java 7. We can’t say much more than what the bug report says.
Solution: upgrade.
(The build numbers you need are in the bug report, but upgrading to “the latest” builds of Java 7 or 8, or any version/build of Java after 8 should be sufficient.)