Fix the security issue casused by java-sdk.