LPS-48808 better JSONWS exception report, maintaining the compatibility with the 6.2.x