When your Spring application startup, you may sometimes encounter such exceptions. org.springframework.beans.factory.BeanDefinitionStoreException. And the error message maybe like below. Failed to read candidate component class: file nested exception is org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file – probably due to a new Java class file version that isn’t supported yet: nested exception is java.lang.IllegalArgumentException …
When you operate java collection object use iterator, you may always meet java.util.ConcurrentModificationException error. It is because the java collection object has been changed while others still use iterator.next() to loop in it. Below is just an example code which can throw concurrent modification exception.
The exception mechanism is how the program is handled when the program meet an error. It provides a safe exit method for java program. When an error occurs, the program executing process changes, and the control of the program is transferred to the exception handler.
When you run a program in Eclipse or command line. You may encounter following exception. java.lang.UnsupportedClassVersionError: Unsupported major.minor version 51.0.