Uploaded image for project: 'AdMaxLocal'
  1. AdMaxLocal
  2. AML-3782

Bing Deployment fail - java.lang.NullPointerException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: Mercury
    • Fix Version/s: Mercury
    • Labels:
      None
    • Environment:
    • Sprint:
      Sprint 11

      Description

      Steps :

      1.Ran latest amldata tool and migrate it to 1.0.0

      2.Setup realm to have only Bing Distributions

      [amlops@aml-qa4-monman1 groovy]$ groovy setupDistributions.groovy -dh aml-qa4-front1 -dl 8080 -u readwrite -rs b8a7d340-30e0-4369-97d0-8f901d238f86
      DEBUG - Provided Options:
      -dh: aml-qa4-front1
      -dl: 8080
      -u: readwrite
      -rs: b8a7d340-30e0-4369-97d0-8f901d238f86
      DEBUG - Base path: http://aml-qa4-front1:8080/distribution/rest/
      Enter the password for readwrite:

      Would you like to enable distribution "Bing" for reseller b8a7d340-30e0-4369-97d0-8f901d238f86 ? y
      Enter a value for credentials field "BING_USER_NAME" : API_TheSearchAgency
      Enter a value for credentials field "BING_PASSWORD" : Pa55w0rd
      Enter a value for credentials field "BING_DEV_TOKEN" : DN8ELHL3

      Are these credentials values correct? [BING_DEV_TOKEN:DN8ELHL3, BING_PASSWORD:Pa55w0rd, BING_USER_NAME:API_TheSearchAgency] y

      3.Ran setupResellerPropertyOverrides.groovy

      [amlops@aml-qa4-monman1 groovy]$ groovy setupResellerPropertyOverrides.groovy -dh aml-qa4-front1 -dl 8080 -u readwrite -rs b8a7d340-30e0-4369-97d0-8f901d238f86
      DEBUG - Base path: http://aml-qa4-front1:8080/distribution/rest/
      Enter the password for readwrite:

      Would you like to override any Content Editor properties for this reseller?y

      Would you like to override ce.orderID ?y
      Enter a value for CE Property field "ce.orderID" : 3491813825

      Would you like to override ce.defaultBudget ?y
      Enter a value for CE Property field "ce.defaultBudget" : 9000000

      Would you like to override ce.mobileBidModifier ?y
      Enter a value for CE Property field "ce.mobileBidModifier" : 0.8

      Would you like to override ce.parentClientCustomerID ?y
      Enter a value for CE Property field "ce.parentClientCustomerID" : 7650377477

      Would you like to override bing.parentClientCustomerID ?y
      Enter a value for CE Property field "bing.parentClientCustomerID" : 5121009

      Would you like to override bing.language ?y
      Enter a value for CE Property field "bing.language" : English

      Would you like to override bing.mobileBidModifier ?y
      Enter a value for CE Property field "bing.mobileBidModifier" : -20

      Would you like to override bing.addressLine1 ?y
      Enter a value for CE Property field "bing.addressLine1" : 11150 W Olympic

      Would you like to override bing.addressLine2 ?y
      Enter a value for CE Property field "bing.addressLine2" : Suite 600

      Would you like to override bing.city ?y
      Enter a value for CE Property field "bing.city" : Los Angeles

      Would you like to override bing.stateOrProvince ?y
      Enter a value for CE Property field "bing.stateOrProvince" : CA

      Would you like to override bing.postalCode ?y
      Enter a value for CE Property field "bing.postalCode" : 90064

      Would you like to override bing.countryCode ?y
      Enter a value for CE Property field "bing.countryCode" : US
      [amlops@aml-qa4-monman1 groovy]$
      [amlops@aml-qa4-monman1 groovy]$ groovy setupResellerPropertyOverrides.groovy -dh aml-qa4-front1 -dl 8080 -u readwrite -rs b8a7d340-30e0-4369-97d0-8f901d238f86
      DEBUG - Base path: http://aml-qa4-front1:8080/distribution/rest/
      Enter the password for readwrite:

      Would you like to override any Content Editor properties for this reseller?y

      Would you like to override ce.orderID ?y
      Enter a value for CE Property field "ce.orderID" : 3491813825

      Would you like to override ce.defaultBudget ?y
      Enter a value for CE Property field "ce.defaultBudget" : 9000000

      Would you like to override ce.mobileBidModifier ?y
      Enter a value for CE Property field "ce.mobileBidModifier" : 0.8

      Would you like to override ce.parentClientCustomerID ?y
      Enter a value for CE Property field "ce.parentClientCustomerID" : 7650377477

      Would you like to override bing.parentClientCustomerID ?y
      Enter a value for CE Property field "bing.parentClientCustomerID" : 5121009

      Would you like to override bing.language ?y
      Enter a value for CE Property field "bing.language" : English

      Would you like to override bing.mobileBidModifier ?y
      Enter a value for CE Property field "bing.mobileBidModifier" : -20

      Would you like to override bing.addressLine1 ?y
      Enter a value for CE Property field "bing.addressLine1" : 11150 W Olympic

      Would you like to override bing.addressLine2 ?y
      Enter a value for CE Property field "bing.addressLine2" : Suite 600

      Would you like to override bing.city ?y
      Enter a value for CE Property field "bing.city" : Los Angeles

      Would you like to override bing.stateOrProvince ?y
      Enter a value for CE Property field "bing.stateOrProvince" : CA

      Would you like to override bing.postalCode ?y
      Enter a value for CE Property field "bing.postalCode" : 90064

      Would you like to override bing.countryCode ?y
      Enter a value for CE Property field "bing.countryCode" : US

      4.Deploy the order through Reseller UI

      Actual Result:

      Order gets Error out and listener shows Null pointer exception!

      Snippet of listener log: (Complete log attached)

      rom class path resource [bing/bing-datasource-overrides.properties]: class path resource [bing/bing-datasource-overrides.properties] cannot be opened because it does not exist
      2015-11-03 07:51:42,741 [pool-3-thread-7] INFO o.s.b.f.s.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@595b443e: defining beans bing-datasource-property-configurer,bing-target-datasource,bing-datasource,bing-transaction-manager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,bing-campaign-structure-dao,bing-error-dao,bing-campaign-service-component,bing-client-factory,getBingCampaignList; root of factory hierarchy
      2015-11-03 07:51:42.767 (3) [pool-3-thread-7]: JDBC Driver Version: 5.1 (com.mysql.jdbc.Driver)
      2015-11-03 07:51:42.768 (2) [pool-3-thread-7]: Error: CampID: 4475_GT Info: Error during add campaigns request.
      2015-11-03 07:51:42.768 (2) [pool-3-thread-7]: Error: CampID: 4475_GM Info: Error during add campaigns request.
      2015-11-03 07:51:42.769 (1) [pool-3-thread-7]: Exception [Error during add campaigns request. ]:java.lang.NullPointerException
      at com.thesearchagency.searchengines.bing.BingApiUtils.<init>(BingApiUtils.java:68)
      at com.thesearchagency.searchengines.bing.BingAccountDeployer.<init>(BingAccountDeployer.java:126)
      at com.thesearchagency.admaxlistener.deployer.MultiplexAccountDeployer.createDeployers(MultiplexAccountDeployer.java:143)
      at com.thesearchagency.admaxlistener.deployer.MultiplexAccountDeployer.getDeployers(MultiplexAccountDeployer.java:116)
      at com.thesearchagency.admaxlistener.deployer.MultiplexAccountDeployer.getAccountCreatorFactory(MultiplexAccountDeployer.java:440)
      at com.thesearchagency.admaxlistener.worker.SearchEngineUserWorker.createSEUsers(SearchEngineUserWorker.java:210)
      at com.thesearchagency.admaxlistener.worker.SearchEngineUserWorker.manageSearchEngineUsersByDistribut

        Attachments

          Activity

            People

            • Assignee:
              atul.sanagar Atul Sanagar (Inactive)
              Reporter:
              atul.sanagar Atul Sanagar (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: