We are facing below error when we are embedding image in Eloqua landing page. Image is displaying correctly. But the place holders (for contact details) are not resolving correctly and it is still displaying filed names as {{C_FirstName}}.
Failure case -
[2017-01-31 12:41:19,752 UTC] [DEBUG] [.kernel.Default (self-tuning)'] [oracle.wcsites.eloquaintegration] EloquaIntegrationInstallationManager.getFreshToken: json={"grant_type":"refresh_token","refresh_token":"MzQwMjA3MTU4OjFzNjQ5QW4xODBrR3U5ZThBM0xMOXQtMjFOZXFuTGQyT2dEODh+Y01nMHNEWTFlQndpeG91dTQ1SkphYXhBblhBWi1rT1ZmQ1ZwVTJYMlk3dX5IcEJzYX5pZG1JdGVRSnUtYm0=","scope":"full","redirect_uri":"https:\/\/qaprd.coh.element115.net:443\/cs\/ContentServer?pagename=EloquaIntegration\/Enable"}
[2017-01-31 12:41:19,752 UTC] [DEBUG] [.kernel.Default (self-tuning)'] [oracle.wcsites.eloquaintegration] EloquaIntegrationInstallationManager.getFreshToken: authorizationheader=Basic NzBmYjA4NjUtMTU0ZC00N2NmLTk2NjktZWY3ZGYxYTE2NDQzOjF6eTB+QTVCMlFVcUcyU0p0V3Y2dDBIaGhXYmRQZUgxVUdqYn52Q09+YkdRSU43R2FDOXJZLXY5SkNLM3Ixd2tyN29tdUlTdlRRUE1Wc3YxanNuUVQ3SE5idlBkTFdidXRXdng=
[2017-01-31 12:41:20,156 UTC] [ERROR] [.kernel.Default (self-tuning)'] [oracle.wcsites.eloquaintegration] EloquaIntegrationInstallationManager.getFreshToken: exception thrown making token request
[2017-01-31 12:41:20,156 UTC] [ERROR] [.kernel.Default (self-tuning)'] [oracle.wcsites.eloquaintegration] EloquaIntegrationInstallationManager.getFreshToken: token response={"error":"invalid_grant","error_description":"The refresh token is incorrect, malformed, expired, or has been invalidated."}
If we reinstall cloud app in eloqua, for the first time image is embedding, it is working fine. For the subsequent requests it is throwing above errors.
We are using OOB EloquaIntegration as mentioned in the Eloqua WCS integratio and I don't know what code change we have to make and where to persist the token and reuse it as mentioned in below documents. If we get any code example then we will patch it or if any patch is available then we will update that. We are using Oracle Web center sites 11.1.1.8.1 patch 13 and following code is failing
https://community.oracle.com/thread/3965408
https://community.oracle.com/docs/DOC-1003687
public void selectFields(String installId, String instanceid, String fieldlist)
{
HttpURLConnection conn = null;
EloquaIntegrationInstallationManager eim = new EloquaIntegrationInstallationManager(this.ics, installId);
String[] access_token = eim.getFreshToken();
if (access_token == null) {
logger.error("EloquaInstanceManager.selectFields: no token");
return;
}
................
}