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

YJ staging script throws error when no SEU Ids are available for a distribution

    Details

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

      bidmgr #1153

    • Sprint:
      Sprint 20

      Description

      Following error is seen on running admax-staging-process.sh or admax-process.sh scripts when there are no SEU Ids for a particular distribution.

      [TSAApp@aml-qa4-core1 bidmgr]$ ./admax-staging-process.sh admax-process- yahoojapan -T 2016-03-09 -z Asia/Calcutta,Asia/Dhaka
      Temp file is: admax-process-19178
      =================== Staging yahoojapan with [--date 2016-03-09 -rt admax -z Asia/Calcutta,Asia/Dhaka]
      2016-03-10 14:55:58.911 (3) [main]: Debug Level set to 3
      2016-03-10 14:55:58.995 (3) [main]: No search engine user ID provided. Running script for all search engine users in the database.
      2016-03-10 14:55:59.001 (3) [main]: DatabasePool with a limit of 7 created
      2016-03-10 14:55:59.323 (3) [main]: JDBC Driver Version: 5.1 (com.mysql.jdbc.Driver)
      2016-03-10 14:55:59.336 (3) [main]: LicensingFileRefresher: modification detected on 1450252197000 for licensing.properties
      2016-03-10 14:55:59.336 (3) [main]: Licensing environment detected, loading configuration.
      2016-03-10 14:55:59.337 (3) [main]: Loaded property: distribution-service-url=http://aml-qa4-front1:8080/distribution
      2016-03-10 14:55:59.337 (3) [main]: Loaded property: distribution-service-username=readwrite
      2016-03-10 14:55:59.337 (3) [main]: Loaded property: distribution-service-password=readwrite
      2016-03-10 14:55:59.337 (3) [main]: Loaded property: sapi-auth-url=http://aml-qa4-front1:8080/sapi/rest/security/tokens
      2016-03-10 14:55:59.337 (3) [main]: Loaded property: sapi-merchant-service-url=http://aml-qa4-front1:8080/sapi/rest/merchants
      2016-03-10 14:55:59.337 (3) [main]: Loaded property: sapi-reseller-service-url=http://aml-qa4-front1:8080/sapi/rest/resellers
      2016-03-10 14:55:59.338 (3) [main]: Loaded property: sapi-username=admin+tsa@thesearchagency.com
      2016-03-10 14:55:59.338 (3) [main]: Loaded property: sapi-password=admin
      2016-03-10 14:55:59.338 (3) [main]: Loaded property: sapi-realm=thesearchagency
      2016-03-10 14:55:59.338 (3) [main]: Loaded property: tsa.google.mcc.developerToken=ojCnjZaM6RD1h0yt_DOJZg
      2016-03-10 14:55:59.338 (3) [main]: Loaded property: tsa.google.mcc.isReseller=true
      2016-03-10 14:55:59.338 (3) [main]: Loaded property: tsa.google.mcc.userAgent=AdMaxLocal AdWords Software TSA QA
      2016-03-10 14:55:59.338 (3) [main]: Loaded property: tsa.timezone=UTC
      Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -2
      at java.lang.String.substring(String.java:1937)
      at com.thesearchagency.searchengines.yahoojapan.reporting.YahooJapanReport.getUserIdsString(YahooJapanReport.java:338)
      at com.thesearchagency.searchengines.yahoojapan.reporting.YahooJapanReport.init(YahooJapanReport.java:237)
      at com.thesearchagency.searchengines.yahoojapan.reporting.YahooJapanReport.main(YahooJapanReport.java:91)[TSAApp@aml-qa4-core1 bidmgr]$ ./admax-staging-process.sh admax-process- yahoojapan -T 2016-03-09 -z Asia/Calcutta,Asia/Dhaka
      Temp file is: admax-process-19178
      =================== Staging yahoojapan with [--date 2016-03-09 -rt admax -z Asia/Calcutta,Asia/Dhaka]
      2016-03-10 14:55:58.911 (3) [main]: Debug Level set to 3
      2016-03-10 14:55:58.995 (3) [main]: No search engine user ID provided. Running script for all search engine users in the database.
      2016-03-10 14:55:59.001 (3) [main]: DatabasePool with a limit of 7 created
      2016-03-10 14:55:59.323 (3) [main]: JDBC Driver Version: 5.1 (com.mysql.jdbc.Driver)
      2016-03-10 14:55:59.336 (3) [main]: LicensingFileRefresher: modification detected on 1450252197000 for licensing.properties
      2016-03-10 14:55:59.336 (3) [main]: Licensing environment detected, loading configuration.
      2016-03-10 14:55:59.337 (3) [main]: Loaded property: distribution-service-url=http://aml-qa4-front1:8080/distribution
      2016-03-10 14:55:59.337 (3) [main]: Loaded property: distribution-service-username=readwrite
      2016-03-10 14:55:59.337 (3) [main]: Loaded property: distribution-service-password=readwrite
      2016-03-10 14:55:59.337 (3) [main]: Loaded property: sapi-auth-url=http://aml-qa4-front1:8080/sapi/rest/security/tokens
      2016-03-10 14:55:59.337 (3) [main]: Loaded property: sapi-merchant-service-url=http://aml-qa4-front1:8080/sapi/rest/merchants
      2016-03-10 14:55:59.337 (3) [main]: Loaded property: sapi-reseller-service-url=http://aml-qa4-front1:8080/sapi/rest/resellers
      2016-03-10 14:55:59.338 (3) [main]: Loaded property: sapi-username=admin+tsa@thesearchagency.com
      2016-03-10 14:55:59.338 (3) [main]: Loaded property: sapi-password=admin
      2016-03-10 14:55:59.338 (3) [main]: Loaded property: sapi-realm=thesearchagency
      2016-03-10 14:55:59.338 (3) [main]: Loaded property: tsa.google.mcc.developerToken=ojCnjZaM6RD1h0yt_DOJZg
      2016-03-10 14:55:59.338 (3) [main]: Loaded property: tsa.google.mcc.isReseller=true
      2016-03-10 14:55:59.338 (3) [main]: Loaded property: tsa.google.mcc.userAgent=AdMaxLocal AdWords Software TSA QA
      2016-03-10 14:55:59.338 (3) [main]: Loaded property: tsa.timezone=UTC
      Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -2
      at java.lang.String.substring(String.java:1937)
      at com.thesearchagency.searchengines.yahoojapan.reporting.YahooJapanReport.getUserIdsString(YahooJapanReport.java:338)
      at com.thesearchagency.searchengines.yahoojapan.reporting.YahooJapanReport.init(YahooJapanReport.java:237)
      at com.thesearchagency.searchengines.yahoojapan.reporting.YahooJapanReport.main(YahooJapanReport.java:91)

        Attachments

          Activity

            People

            • Assignee:
              varshini.padmanabhan Varshini Padmanabhan (Inactive)
              Reporter:
              varshini.padmanabhan Varshini Padmanabhan (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: