Uploaded image for project: 'AdMax'
  1. AdMax
  2. ADMAX-2895

TimeZone:While running Admax script, java.lang.NullPointerException occurs. {sometimes}

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: Daily Data Availability Phase 2
    • Component/s: None
    • Labels:
      None
    • Environment:

      Trunk builds UI:84, services :979 and BidMgr:89

      Description

      While running Admax script, java.lang.NullPointerException occurs.

      {sometimes}

      1.bidmgr$ ./admax.sh -d3 --timezoneid 1 2>&1|tee /tmp/admax_timezone_1.log ==== Detailed log attached ===

      ....

      2011-11-10 04:14:15.876 INFO [BusApplicationContext]: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@2c641e9a: display name [org.apache.cxf.bus.spring.BusApplicationContext@2c641e9a]; startup date [Thu Nov 10 04:14:15 PST 2011]; root of context hierarchy

      Nov 10, 2011 4:14:16 AM org.apache.cxf.bus.spring.BusApplicationContext getConfigResources

      .

      .

      2011-11-10 04:14:32.501 (3) [P1T1]: CR change threshold: Account#12 using tier 3 threshold value of 0.5

      2011-11-10 04:14:32.508 (3) [P2T1]: Found 0 active test(s) for account 429

      2011-11-10 04:14:32.508 (3) [P2T1]: Settings load OK

      2011-11-10 04:14:32.508 (3) [P2T1]: Schema 'bidBonusIIEnabled' doesn't exist

      2011-11-10 04:14:32.508 (3) [P2T1]: BidBonus II disabled for account 429

      2011-11-10 04:14:32.509 (3) [P2T1]: Schema 'bidBonusMultiplier' doesn't exist

      2011-11-10 04:14:32.510 (2) [P2T1]: Exception handling account #429:java.lang.NullPointerException

      at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:991)

      at java.lang.Double.valueOf(Double.java:447)

      at com.thesearchagency.admax.algorithms.bidbonus.AdMaxBidBonus.<init>(AdMaxBidBonus.java:54)

      at com.thesearchagency.admax.algorithms.bidbonus.AdMaxBidBonusI.<init>(AdMaxBidBonusI.java:29)

      at com.thesearchagency.admax.algorithms.AdMaxAlgorithm.init(AdMaxAlgorithm.java:120)

      at com.thesearchagency.admax.AdMaxSummarizer$AccountWorker.run(AdMaxSummarizer.java:502)

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)

      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)

      at java.util.concurrent.FutureTask.run(FutureTask.java:123)

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

      at java.lang.Thread.run(Thread.java:595)

      2011-11-10 04:14:32.511 (3) [P2T1]: Completed Account #429: O&O - Schools&Reunions

      2011-11-10 04:14:32.521 (3) [P1T1]: Skipping Account #12: no distributions are available

      2011-11-10 04:14:32.521 (3) [P1T1]: Completed Account #12: United Online - ISP (Juno/NetZero)

      2011-11-10 04:14:32.646 (3) [P1T5]: Found 0 active test(s) for account 580

      2011-11-10 04:14:32.646 (3) [P1T5]: Settings load OK

      2../admax.sh -d3 --timezoneid 2 2>&1| tee /tmp/admax_timezone_2.log===detailed log attached===

      2011-11-10 04:05:07.763 (3) [main]: =============== Starting AdMax Summarizer ================

      2011-11-10 04:05:07.764 (3) [main]: ----------------AdMax Summarizer starting

      2011-11-10 04:05:08.348 (3) [main]: Instantiating a DateUtil object for time zone America/Denver

      2011-11-10 04:05:08.366 (3) [P1T1]: Starting Account #450: Spark - JDate.co.uk

      2011-11-10 04:05:08.372 (3) [P1T1]: DatabasePool with a limit of 20 created

      2011-11-10 04:05:08.499 (3) [P1T1]: DatabasePool with a limit of 20 created

      2011-11-10 04:05:08.798 (3) [P1T1]: Found 0 active test(s) for account 450

      2011-11-10 04:05:08.799 (3) [P1T1]: Settings load OK

      2011-11-10 04:05:08.802 (3) [P1T1]: BidBonus II disabled for account 450

      2011-11-10 04:05:08.805 (3) [P1T1]: CR change threshold: Account#450 using tier 1 threshold value of 0.2

      2011-11-10 04:05:08.870 (3) [P1T1]: Skipping Account #450: no distributions are available

      2011-11-10 04:05:08.871 (3) [P1T1]: Completed Account #450: Spark - JDate.co.uk

      2011-11-10 04:05:08.872 (3) [main]: ------------AdMax Summarizer done

      2011-11-10 04:05:08.874 (3) [main]: =============== Completed AdMax Summarizer ================

      2011-11-10 04:05:08.876 (3) [main]: AdMax Summarizer: 1.112s

      2011-11-10 04:05:08.876 (3) [main]: by key:

      2011-11-10 04:05:08.877 (3) [main]: db: 0.209s

      2011-11-10 04:05:08.878 (3) [main]: by thread:

      2011-11-10 04:05:08.879 (3) [main]: main: 0.152s

      2011-11-10 04:05:08.880 (3) [main]: P1T1: 0.057s

      is this related to invalid data?

        Attachments

        1. admax_timezone_1.log
          103 kB
          Atul Sanagar
        2. admax_timezone_2.log
          97 kB
          Atul Sanagar

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: