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

GoogleMCC- Once auth token has expired, getting exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.3.0
    • Component/s: Data Summarization
    • Labels:
      None
    • Environment:

      optus-qa-qgency1

      bidmgr -> tsa-build-bidmgr-2012-06-27-p572-re98feacca032f73f661b4b54929737adda166815

      Description

      Testing case: GMcc retrieves a new version of auth token once the existing one has expired

      Before test:
      mysql> select * from googleAuthToken
      -> ;
      -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      seUserID authToken date

      -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      0 DQAAALYAAACa_J0yCMkiTucZsP1Mn9MCJ93lb3wEOELW_bceCHP5g6Uwl3Sz5IrtShhDiM74iOHmuSHp-M7-E24QlxsfRBqYN0JvZ3MXCEg-VxrgVtMecamGfRGsfwgOXBT2l0lkSzMUCxLY69KbYWMI28M2oRzvyV9mkj623Ty-fkMdb54JWqSZQF4w1quellXAaHYQs5VTfFEso2lwP4FXgC4wFvlagd90Wq8FCSikbaLGV6PKTRJy1gM6j0To3cQt38E9kSo 2012-06-26

      -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      Step 1: update sesystem.googleAuthToken set date=2012-06-01;
      mysql> select * from googleAuthToken;
      -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      seUserID authToken date

      -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      0 DQAAALYAAACa_J0yCMkiTucZsP1Mn9MCJ93lb3wEOELW_bceCHP5g6Uwl3Sz5IrtShhDiM74iOHmuSHp-M7-E24QlxsfRBqYN0JvZ3MXCEg-VxrgVtMecamGfRGsfwgOXBT2l0lkSzMUCxLY69KbYWMI28M2oRzvyV9mkj623Ty-fkMdb54JWqSZQF4w1quellXAaHYQs5VTfFEso2lwP4FXgC4wFvlagd90Wq8FCSikbaLGV6PKTRJy1gM6j0To3cQt38E9kSo 0000-00-00

      -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      Step 2: run ./googlemcc.sh --force -d3 -U57236 2>/tmp/jelliott_googlemcc_628_3
      Step 3: check db – Still Date = 0000-00-00
      Check log:
      2012-06-28 22:48:31.628 (2) [P1T1]: Exception [afterExecute: exception thrown from thread in threadpool]:java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError
      at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
      at java.util.concurrent.FutureTask.get(FutureTask.java:83)
      at com.carldunham.jst.concurrency.ThreadPool$CachedFixedThreadPool.afterExecute(ThreadPool.java:252)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:888)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.ExceptionInInitializerError
      at com.thesearchagency.searchengines.google.GoogleAPISearchEngine.createAPI(GoogleAPISearchEngine.java:244)
      at com.thesearchagency.searchengines.google.GoogleAPISearchEngine.createAPI(GoogleAPISearchEngine.java:195)
      at com.thesearchagency.searchengines.google.GoogleAPISearchEngine.init(GoogleAPISearchEngine.java:281)
      at com.thesearchagency.searchengines.google.GoogleMCCReport$SearchEngineUserWorker.run(GoogleMCCReport.java:509)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      ... 2 more
      Caused by: java.lang.NullPointerException
      at com.thesearchagency.searchengines.google.GoogleAdWordsAPI.loadAuthToken(GoogleAdWordsAPI.java:5310)
      at com.thesearchagency.searchengines.google.GoogleAdWordsAPI.<clinit>(GoogleAdWordsAPI.java:6115)
      ... 10 more

      I was expecting the db to update with todays date, and no errors in the log.

        Attachments

          Activity

            People

            • Assignee:
              therouxj Jeff Theroux
              Reporter:
              jelliott Jen Clarke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: