This was coming because there was version mismatch between jars application classpath. I needed to dig deep using intellij debugger to find out what was happening. I upgraded the version of apache axis and other apache jars to resolve the issue.