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

Admax process is throwing java.lang.StringIndexOutOfBoundsException

    Details

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

      Aml24

    • Sprint:
      Sprint 21

      Description

      Admax process wrapper script is throwing java.lang.StringIndexOutOfBoundsException when we run script without passing any distribution. We come across this issue in YJ sandbox server since there are no bing accounts or realm added. ABU continues execution of rest distributions.

      Snippet of the log

      [TSAApp@aml24-core1 bidmgr]$ ./admax-process.sh -d3
      Temp file is: admax-process-29521
      =================== Staging google with [--date 2016-03-10 --admax -d3]
      Temp file is: admax-process-29554
      =================== Staging bing with [--date 2016-03-10 -rt admax -d3]
      All staging data processes (3) started
      Temp file is: admax-process-29603
      Checking timeout for 29521 ... duration is 0
      =================== Staging yahoojapan with [--date 2016-03-10 -rt admax -d3]
      Checking timeout for 29554 ... duration is 0
      Checking timeout for 29603 ... duration is 0
      2016-03-11 12:21:40.984 (3) [main]: Debug Level set to 3
      2016-03-11 12:21:40.986 (3) [main]: Licensing environment detected, loading configuration.
      2016-03-11 12:21:40.987 (3) [main]: Loaded property: distribution-service-url=http://aml24-front1:8081/distribution
      2016-03-11 12:21:40.987 (3) [main]: Loaded property: distribution-service-username=readwrite
      2016-03-11 12:21:40.988 (3) [main]: Loaded property: distribution-service-password=jeyebr5thuc6DUC
      2016-03-11 12:21:40.988 (3) [main]: Loaded property: sapi-auth-url=http://aml24-front1:8080/sapi/rest/security/tokens
      2016-03-11 12:21:40.988 (3) [main]: Loaded property: sapi-merchant-service-url=http://aml24-front1:8080/sapi/rest/merchants
      2016-03-11 12:21:40.988 (3) [main]: Loaded property: sapi-reseller-service-url=http://aml24-front1:8080/sapi/rest/resellers
      2016-03-11 12:21:40.988 (3) [main]: Loaded property: sapi-username=admin+tsa@thesearchagency.com
      2016-03-11 12:21:40.988 (3) [main]: Loaded property: sapi-password=admin
      2016-03-11 12:21:40.988 (3) [main]: Loaded property: sapi-realm=thesearchagency
      2016-03-11 12:21:40.988 (3) [main]: Loaded property: tsa.google.mcc.isReseller=true
      2016-03-11 12:21:40.990 (3) [main]: Loaded property: tsa.google.mcc.userAgent=AdMaxLocal AdWords Software YJ API Sandbox
      2016-03-11 12:21:40.990 (3) [main]: Loaded property: tsa.timezone=UTC
      2016-03-11 12:21:40.994 (3) [main]: Debug Level set to 3
      2016-03-11 12:21:41.096 (3) [main]: Debug Level set to 3
      2016-03-11 12:21:41.105 (3) [main]: =============== Starting Google MCC AdMax Report ================
      2016-03-11 12:21:41.105 (3) [main]: ----------------Google MCC AdMax Report starting
      2016-03-11 12:21:41.305 (3) [main]: Debug Level set to 3
      2016-03-11 12:21:41.305 (3) [main]: No search engine user ID provided. Running script for all Bing search engine users in the database.
      2016-03-11 12:21:41.319 (3) [main]: DatabasePool with a limit of 7 created
      2016-03-11 12:21:41.533 (3) [main]: Debug Level set to 3
      2016-03-11 12:21:41.671 (3) [main]: JDBC Driver Version: 5.1 (com.mysql.jdbc.Driver)
      2016-03-11 12:21:41.672 (3) [main]: Debug Level set to 3
      2016-03-11 12:21:41.672 (3) [main]: No search engine user ID provided. Running script for all search engine users in the database.
      2016-03-11 12:21:41.680 (3) [main]: DatabasePool with a limit of 7 created
      2016-03-11 12:21:41.723 (3) [main]: ------------Google MCC AdMax Report done
      2016-03-11 12:21:41.723 (3) [main]: =============== Completed Google MCC AdMax Report ================
      2016-03-11 12:21:41.724 (3) [main]: Google MCC AdMax Report: 0.619s
      2016-03-11 12:21:41.731 (3) [main]: by key:
      2016-03-11 12:21:41.731 (3) [main]: db: 0.007s
      2016-03-11 12:21:41.731 (3) [main]: other: 0.612s
      2016-03-11 12:21:41.980 (3) [main]: JDBC Driver Version: 5.1 (com.mysql.jdbc.Driver)
      2016-03-11 12:21:41.996 (3) [main]: LicensingFileRefresher: modification detected on 1456984327000 for licensing.properties
      2016-03-11 12:21:41.997 (3) [main]: Licensing environment detected, loading configuration.
      2016-03-11 12:21:41.997 (3) [main]: Loaded property: distribution-service-url=http://aml24-front1:8081/distribution
      2016-03-11 12:21:41.998 (3) [main]: Loaded property: distribution-service-username=readwrite
      2016-03-11 12:21:41.998 (3) [main]: Loaded property: distribution-service-password=jeyebr5thuc6DUC
      2016-03-11 12:21:41.998 (3) [main]: Loaded property: sapi-auth-url=http://aml24-front1:8080/sapi/rest/security/tokens
      2016-03-11 12:21:41.998 (3) [main]: Loaded property: sapi-merchant-service-url=http://aml24-front1:8080/sapi/rest/merchants
      2016-03-11 12:21:41.998 (3) [main]: Loaded property: sapi-reseller-service-url=http://aml24-front1:8080/sapi/rest/resellers
      2016-03-11 12:21:41.998 (3) [main]: Loaded property: sapi-username=admin+tsa@thesearchagency.com
      2016-03-11 12:21:41.998 (3) [main]: Loaded property: sapi-password=admin
      2016-03-11 12:21:41.999 (3) [main]: Loaded property: sapi-realm=thesearchagency
      2016-03-11 12:21:41.999 (3) [main]: Loaded property: tsa.google.mcc.isReseller=true
      2016-03-11 12:21:41.999 (3) [main]: Loaded property: tsa.google.mcc.userAgent=AdMaxLocal AdWords Software YJ API Sandbox
      2016-03-11 12:21:41.999 (3) [main]: Loaded property: tsa.timezone=UTC
      2016-03-11 12:21:42.150 (3) [main]: JDBC Driver Version: 5.1 (com.mysql.jdbc.Driver)
      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.bing.reporting.BingReport.getUserIdsString(BingReport.java:316)
      at com.thesearchagency.searchengines.bing.reporting.BingReport.init(BingReport.java:225)
      at com.thesearchagency.searchengines.bing.reporting.BingReport.main(BingReport.java:87)
      2016-03-11 12:21:42.170 (3) [main]: LicensingFileRefresher: modification detected on 1456984327000 for licensing.properties
      2016-03-11 12:21:42.171 (3) [main]: Licensing environment detected, loading configuration.

        Attachments

          Activity

            People

            • Assignee:
              atul.sanagar Atul Sanagar (Inactive)
              Reporter:
              anil.kumar Anil Kumar Halmadgi
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: