Posts related to tag: Exception


Global Exception Handling in Spring Boot

Global Exception Handling in Spring Boot is a mechanism that allows you to centrally manage and handle exceptions that occur […] Continue reading »

ConcurrentModificationException in Java

ConcurrentModificationException is a runtime exception in Java that arises when multiple threads try to modify a collection at the same […] Continue reading »

Spring @RestControllerAdvice Annotation Example

Spring Framework, with its extensive support for building RESTful APIs, offers a convenient way to handle exceptions using the @RestControllerAdvice […] Continue reading »

java.lang.NoClassDefFoundError: org/bouncycastle/crypto/generators/SCrypt

While encoding your password/data with SCryptPasswordEncoder, you might be getting the below exception: java.lang.NoClassDefFoundError: org/bouncycastle/crypto/generators/SCrypt at org.springframework.security.crypto.scrypt.SCryptPasswordEncoder.digest(SCryptPasswordEncoder.java:195) ~[spring-security-crypto-6.0.3.jar:6.0.3] at org.springframework.security.crypto.scrypt.SCryptPasswordEncoder.encode(SCryptPasswordEncoder.java:150) […] Continue reading »

Best practices to avoid NullPointerException in Java

In this tutorial, we will discuss the best practices to avoid or handle NullPointerException in Java. NullPointerException generally threw when […] Continue reading »