Details
- 
    Type:Bug 
- 
    Status: Resolved
- 
    Priority:Major 
- 
    Resolution: Fixed
- 
    Affects Version/s: unspecified
- 
    Fix Version/s: None
- 
    Component/s: Yahoo
- 
    Labels:None
- 
    Environment:Operating System: Windows XP 
 Platform: PC
- 
        Bugzilla Id:3621
Description
--------------------------------------------------
Project: Yahoo API.
Component Used: ./seupdate.sh
Build:tsa-build-bidmgr-2010-03-10-p10-r25179
--------------------------------------------------
 On making modification to adgroups,keywords,ads and executing the SE Updater
with the argument '--groups --listings' throws exceptions that says "2010-03-11
06:03:17.265 (2) [P1T2]: Exception [syncing listings, returning 
]:com.thesearchagency.searchengines.SearchEngineCommandException:
java.lang.NullPointerException..."
Steps to reproduce:
1. Log into Yahoo Online Marketing using the valid credentials. (Logs into
Cellular Safety Comission account in this case.)
2. Copy an existing Adgroup to another campaign (TestCamp1-Adgroup5 moved from
TestCamp1 to Pradeep-testing2 ) ,with the "Pause Ad Group" field to be "No" ,
deselect the 'content' match type , select SS Type as 'Standard'.
3. Execute the SE Updater with the following command and observe:
./seupdate.sh -d3 --seuser 445 --groups --listings
Expected Result:
  The script should execute successfully without any exception and show that 1
group has been added to the campaign 'Pradeep-testing2'.
Actual Result:
  The script executed and the modfication was done successfully but the
following exception was thrown
  ---------------------------------------------------------
2010-03-11 06:03:17.265 (2) [P1T2]: Exception [syncing listings, returning 
]:com.thesearchagency.searchengines.SearchEngineCommandException:
java.lang.NullPointerException
	at
com.thesearchagency.searchengines.yahoo.YahooAPISearchEngine$ListingChunk.getListings(YahooAPISearchEngine.java:3224)
	at
com.thesearchagency.searchengines.SearchEngineUpdater$SearchEngineAccountWorker.syncListings(SearchEngineUpdater.java:1635)
	at
com.thesearchagency.searchengines.SearchEngineUpdater$SearchEngineAccountWorker.run(SearchEngineUpdater.java:1576)
	at com.carldunham.jst.concurrency.ThreadPool$WorkerThread.run(ThreadPool.java:248)
Caused by: java.lang.NullPointerException
	at
com.thesearchagency.searchengines.yahoo.YahooAPISearchEngine$ListingChunk.getListings(YahooAPISearchEngine.java:2970)
	... 3 more
  ---------------------------------------------------------
> Attaching the full report that was obtained.