sharepoint online – AADSTS50008: The SAML token is not valid

Get this error when you try to connect to an online share point via a java soap request. Any idea on how to solve this problem.

10x800488000x80045c17PROD-WST-004.ProdSlices Updated: c1133e37-6817-4c4a-912a-ad6eaff3ba00S: Sent: Failed to Authenticate