Java İstisnaları
Nedenler, düzeltmeler ve örneklerle tüm 80 Java İstisnaları hata koduna göz atın.
NullPointerExceptionNullPointerException
Bir nesne gereken yerde null bir referans kullanılıyor.
ArrayIndexOutOfBoundsExceptionArrayIndexOutOfBoundsException
Bir diziye, negatif ya da dizi uzunluğuna eşit veya ondan büyük bir indeksle erişiliyor.
ClassCastExceptionClassCastException
Bir nesne, örneği olmadığı bir tipe dönüştürülüyor.
IllegalArgumentExceptionIllegalArgumentException
Bir metot, beklenen aralığı ya da biçimi için geçerli olmayan bir argüman alıyor.
IOExceptionIOException
Bir G/Ç işlemi başarısız oluyor veya kesintiye uğruyor.
FileNotFoundExceptionFileNotFoundException
Belirtilen dosya yolu mevcut değil ya da açılamıyor.
StackOverflowErrorStackOverflowError
Çağrı yığını (call stack), genellikle derin ya da sonsuz özyineleme nedeniyle azami boyutunu aştı.
OutOfMemoryErrorOutOfMemoryError — Java Heap Space
JVM, kullanılabilir heap belleğini tüketti.
ConcurrentModificationExceptionConcurrentModificationException
Bir koleksiyon, üzerinde yineleme yapılırken değiştiriliyor.
ClassNotFoundExceptionClassNotFoundException
Bir sınıf, çalışma zamanında classpath üzerinde bulunamıyor.
NoSuchMethodExceptionNoSuchMethodException
Belirtilen ad ve parametre tiplerine sahip bir metot, reflection ile bulunamıyor.
UnsupportedOperationExceptionUnsupportedOperationException
Bir işlem, uygulama (implementation) tarafından desteklenmiyor.
IllegalStateExceptionIllegalStateException
Bir metot uygun olmayan bir zamanda çağrılıyor ya da nesne geçersiz bir durumda.
NumberFormatExceptionNumberFormatException
Bir dize sayı olarak ayrıştırılamıyor.
SecurityExceptionSecurityException
Bir işlem güvenlik yöneticisi tarafından reddediliyor.
NoClassDefFoundErrorNoClassDefFoundError
Bir sınıf derleme zamanında bulundu fakat çalışma zamanında yüklenemiyor.
ArithmeticExceptionArithmeticException
Bir aritmetik işlem, sıfıra bölme gibi tanımsız bir sonuç üretiyor.
StringIndexOutOfBoundsExceptionStringIndexOutOfBoundsException
Bir dizeye, geçerli aralığının dışındaki bir indis ile erişiliyor.
IndexOutOfBoundsExceptionIndexOutOfBoundsException
Bir koleksiyona, geçerli aralığının dışındaki bir indis ile erişiliyor.
NegativeArraySizeExceptionNegativeArraySizeException
Bir dizi negatif boyutla oluşturuluyor.
ArrayStoreExceptionArrayStoreException
Yanlış türden bir nesne diziye saklanıyor.
InterruptedExceptionInterruptedException
Bir iş parçacığı beklerken, uyurken veya bloklanmışken kesintiye uğratılıyor.
CloneNotSupportedExceptionCloneNotSupportedException
Sınıfı Cloneable uygulamayan bir nesne üzerinde clone() metodu çağrılıyor.
IllegalAccessExceptionIllegalAccessException
Kod, erişim iznine sahip olmadığı bir sınıfa, alana veya metoda erişmeye çalışıyor.
- InstantiationException
- NoSuchFieldError
- NoSuchMethodError
- IllegalThreadStateException
- IllegalMonitorStateException
- InputMismatchException
- NoSuchElementException
- EmptyStackException
- SocketException
- SocketTimeoutException
- ConnectException
- UnknownHostException
- MalformedURLException
- EOFException
- ClosedChannelException
- SQLException
- AccessControlException
- InvocationTargetException
- UnsatisfiedLinkError
- ExceptionInInitializerError
- IncompatibleClassChangeError
- AbstractMethodError
- VerifyError
- OutOfMemoryError — Metaspace
- OutOfMemoryError — GC Overhead Limit Exceeded
- Deadlock (Kilitlenme)
- ClassPath Error (Sınıf Yolu Hatası)
- UnsupportedEncodingException
- DateTimeParseException
- PatternSyntaxException
- LinkageError
- ClassCircularityError
- ClassFormatError
- MissingResourceException
- SAXParseException
- ReflectiveOperationException
- TimeoutException
- ExecutionException
- RejectedExecutionException
- BrokenBarrierException
- CompletionException
- BufferUnderflowException
- BufferOverflowException
- ReadOnlyBufferException
- CharConversionException
- ObjectStreamException
- NotSerializableException
- InvalidClassException
- CertificateException
- SSLHandshakeException
- ProtocolException
- BindException
- AccessDeniedException
- NoSuchFileException
- FileAlreadyExistsException
- DirectoryNotEmptyException