JAVA Issues and Solutions

JAVA Most Common Issues/Exception Solutions

[Solved] NullPointerException In Java

[Solved] JAVA java.lang.StringIndexOutOfBoundsException: String index out of range: -1 Example

[Solved] CloneNotSupportedException

[Solved] java.lang.ArithmeticException: / by zero in JAVA

[Solved] ClassCastException :A cannot be cast to B : Example

[Solved] Exception UnsupportedOperationException Example

[Solved] ArrayIndexOutOfBoundException in JAVA

[Solved] JAVA java.lang.StringIndexOutOfBoundsException: String index out of range: -1 Example

[Solved] java.lang.NoClassDefFoundError: org/apache/logging/log4j/core/config/Configurator

JAVA Date Time Solutions

[Solved] java.time.DateTimeException: Invalid date ‘February 29’ as ‘2014’ is not a leap year

[Solved] java.time.DateTimeException: Invalid value for HourOfDay (valid values 0 – 23): 24

[Solved] java.time.DateTimeException: Invalid value for NanoOfSecond (valid values 0 – 999999999): -1

[Solved] Unknown time-zone ID: IST

Regular Expression Issues/Exception Solutions

[Solved] java.lang.IllegalStateException: No match found : Regular Expression

[Solved] Invalid escape sequence (valid ones are  \b  \t  \n  \f  \r  \’  \”;  \ )

[Solved] javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher[Solved] Exception Cannot find any provider supporting AES/ECB/PKCS7Padding

JDBC Most Common Issues Solutions

[Solved] JDBC, “Invalid argument value:; nested exception is java.sql.SQLException”

[Solved] JDBC “java.sql.SQLException: ORA-01005: null password given; logon denied”

[Solved] JDBC “java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver”

Maven Most Common Issues Solutions

[Solved] Maven: No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK

Maven Connect Timeout from/to Central “”

Tomcat Most Common Issues Solutions

[Solved] Tomcat : Address already in use: bind


“Learn From Others Experience"

%d bloggers like this: