The issue was resolved by taking the latest image of s390x. The issue was with java. The updated version of java has resolved these issue.