MongoDB has vast support for arrays but syntax seems to be complicated at first glance. Performing array operations using MongoDB Java driver abstractions is a bit trickier.
Continue reading “MongoDB array $push tutorial for Java”Java
httpcomponents:httpcore ThreadSafe class not found solution
@ThreadSafe class not found compilation error occurs after updating your org.apache.httpcomponents:httpcore dependency version to 4.4.11 or above.
This httpcore version comes with:
-
Class org.apache.http.annotation.Immutable removed
Class org.apache.http.annotation.NotThreadSafe removed
Class org.apache.http.annotation.ThreadSafe removed
…
Continue reading “httpcomponents:httpcore ThreadSafe class not found solution”
Java: local and remote JVM debugging — JDK 8, 9 and later
There is no need to tell about importance of JVM debugging some feature at development, test or sometimes even at production environment.
The Java Debug Wire Protocol (JDWP) and java agent library included into JDK provides the ability to debug java applications.
Continue reading “Java: local and remote JVM debugging — JDK 8, 9 and later”
How to fix Unsupported major.minor version 52.0 in Java
java.lang.UnsupportedClassVersionError: Test : Unsupported major.minor version 52.0 and similar exceptions occur when the JDK version, more specifically javac version, the code is compiled with is newer then JVM used for running it.
Continue reading “How to fix Unsupported major.minor version 52.0 in Java”