KER-295: Test failures and errors with Oracle java >= 1.7.0_25

https://jira.exoplatform.org/browse/KER-295