Actually, I searched lot from internet and in stackoverflow too for this,
Initially I don\'t used padding in my encryption and decryption,
But Finally I got
I've seen CipherInputStream fail with padding problems too. This behaviour varied across different versions of the JVM. Eg 7u55 32 bit my code worked fine, 7u55 64 bit same code failed... and I also saw failures on later 32 bit JVMs. Workaround was to use byte array methods and avoid CipherInputStream.