Details
Description
On redeployment of the bing campaigns its throwing NullPointerException due to target sync property enabled.
As Alok's Mail describes
Error: Bing:type=Campaign, code=-1, errorCode=Internal Error [java.lang.NullPointerException]null,
Description: Getting Null Pointer exception while syncing (adding/updating) Bing targets
Root Cause:
After all the analysis, we found that the property “com.thesearchagency.admaxlistener.TargetSyncDisabled=false” in admaxjmslistener.properties is causing this issue. We had updated this property from “true” to “false” during google upgrade v201302 release to make sure radius updates are processed fine. (we found the same issue in st2 and made the same changes to ensure radii updates are processed)
As this property is set to “false”, Bing campaigns tries to update the targets during redeployment and fails as those targets were not in DB at first place. The reason for these missing targets in Db for Bing is due to this property being set to “true” since 16th April 2013. I am not sure why this property was set to “true” on 16th April 2013.
Validation of v201302:
We also tested this scenario with old build (v201209) and with this property set to false (com.thesearchagency.admaxlistener.TargetSyncDisabled=false), we got the same issue (Null pointer Exception during bing target Add). So this issue is not related to v201302.
Summary:
1)if we set com.thesearchagency.admaxlistener.TargetSyncDisabled=false
Error: we get Null Pointer exception for Bing while updating targets
2) if we set com.thesearchagency.admaxlistener.TargetSyncDisabled=true
We will not be able to process radii updates.