NullPointerExceptionNullPointerException
A null reference is used where an object is required.
Java 예외의 80개 에러 코드를 원인, 수정 방법, 예제와 함께 둘러보세요.
NullPointerExceptionA null reference is used where an object is required.
ArrayIndexOutOfBoundsExceptionAn array is accessed with an index that is negative or greater than or equal to the array length.
ClassCastExceptionAn object is cast to a type that it is not an instance of.
IllegalArgumentExceptionA method receives an argument that is not valid for its expected range or format.
IOExceptionAn I/O operation fails or is interrupted.
FileNotFoundExceptionThe specified file path does not exist or cannot be opened.
StackOverflowErrorThe call stack has exceeded its maximum size, usually due to deep or infinite recursion.
OutOfMemoryErrorThe JVM has exhausted its available heap memory.
ConcurrentModificationExceptionA collection is modified while being iterated over.
ClassNotFoundExceptionA class cannot be found on the classpath at runtime.
NoSuchMethodExceptionA method with the specified name and parameter types cannot be found via reflection.
UnsupportedOperationExceptionAn operation is not supported by the implementation.
IllegalStateExceptionA method is called at an inappropriate time or the object is in an invalid state.
NumberFormatExceptionA string cannot be parsed as a number.
SecurityExceptionAn operation is denied by the security manager.
NoClassDefFoundErrorA class was found at compile time but cannot be loaded at runtime.
ArithmeticExceptionAn arithmetic operation produces an undefined result, such as division by zero.
StringIndexOutOfBoundsExceptionA string is accessed with an index that is outside its valid range.
IndexOutOfBoundsExceptionA collection is accessed with an index that is outside its valid range.
NegativeArraySizeExceptionAn array is created with a negative size.
ArrayStoreExceptionAn object of the wrong type is stored in an array.
InterruptedExceptionA thread is interrupted while it is waiting, sleeping, or blocked.
CloneNotSupportedExceptionThe clone() method is called on an object whose class does not implement Cloneable.
IllegalAccessExceptionCode attempts to access a class, field, or method that it does not have permission to access.
InstantiationExceptionAn attempt to create an instance of an abstract class or interface using reflection.
NoSuchFieldErrorA field is referenced at runtime but does not exist in the class.
NoSuchMethodErrorA method is called at runtime but does not exist in the class.
IllegalThreadStateExceptionA thread operation is performed when the thread is not in an appropriate state.
IllegalMonitorStateExceptionA thread attempts a monitor operation (wait, notify) without owning the object's monitor.
InputMismatchExceptionA Scanner token does not match the expected type.
NoSuchElementExceptionAn attempt to retrieve an element from an empty collection or exhausted iterator.
EmptyStackExceptionAn operation is attempted on an empty Stack.
SocketExceptionA socket operation fails, such as creating or accessing a socket.
SocketTimeoutExceptionA socket read or connection operation times out.
ConnectExceptionA connection to a remote host cannot be established.
UnknownHostExceptionThe hostname cannot be resolved to an IP address.
MalformedURLExceptionA URL string is not in a valid format.
EOFExceptionEnd of file or stream is reached unexpectedly.
ClosedChannelExceptionAn operation is attempted on a channel that has been closed.
SQLExceptionA database access error occurs during SQL operations.
AccessControlExceptionA security check fails for a specific permission.
InvocationTargetExceptionA method invoked via reflection throws an exception.
UnsatisfiedLinkErrorA native method cannot find its native library implementation.
ExceptionInInitializerErrorAn exception is thrown during the execution of a static initializer block.
IncompatibleClassChangeErrorA class has changed in an incompatible way since the calling code was compiled.
AbstractMethodErrorAn abstract method is called that has no implementation.
VerifyErrorThe bytecode verifier detects malformed or illegal bytecode.
OutOfMemoryError: MetaspaceThe JVM has exhausted its Metaspace memory area where class metadata is stored.
OutOfMemoryError: GC OverheadThe garbage collector is spending too much time collecting with too little memory reclaimed.
DeadlockTwo or more threads are blocked forever, each waiting for the other to release a lock.
ClassPath ErrorThe classpath is misconfigured, preventing classes from being loaded.
UnsupportedEncodingExceptionA character encoding is not supported by the JVM.
DateTimeParseExceptionA date/time string cannot be parsed according to the expected format.
PatternSyntaxExceptionA regular expression has invalid syntax.
LinkageErrorA class has a dependency on another class that has an incompatible change.
ClassCircularityErrorA circular dependency is detected in class inheritance.
ClassFormatErrorA class file has an invalid format or structure.
MissingResourceExceptionA resource bundle or resource key cannot be found.
SAXParseExceptionAn XML document has a parsing error.
ReflectiveOperationExceptionA reflection operation throws an exception.
TimeoutExceptionAn operation timed out waiting for a result.
ExecutionExceptionAn exception occurred during the execution of a task submitted to an executor.
RejectedExecutionExceptionA task cannot be accepted by the executor for execution.
BrokenBarrierExceptionA CyclicBarrier is in a broken state when a thread tries to await.
CompletionExceptionA CompletableFuture completed with an exception.
BufferUnderflowExceptionA read operation on a buffer exceeds the remaining data.
BufferOverflowExceptionA write operation on a buffer exceeds its capacity.
ReadOnlyBufferExceptionA write operation is attempted on a read-only buffer.
CharConversionExceptionA character encoding or decoding operation encounters an invalid byte sequence.
ObjectStreamExceptionAn exception occurred during Java object serialization or deserialization.
NotSerializableExceptionAn object that does not implement Serializable is being serialized.
InvalidClassExceptionA serialized class has an incompatible version or invalid format.
CertificateExceptionA certificate-related error occurred during SSL/TLS operations.
SSLHandshakeExceptionThe SSL/TLS handshake failed between client and server.
ProtocolExceptionAn HTTP or network protocol violation occurred.
BindExceptionA socket cannot be bound to the requested address or port.
AccessDeniedExceptionA file system operation is denied due to insufficient permissions.
NoSuchFileExceptionThe file or directory at the specified path does not exist.
FileAlreadyExistsExceptionA file creation or move operation fails because the target file already exists.
DirectoryNotEmptyExceptionA directory deletion fails because the directory is not empty.