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

Error while managing External Campaign jobs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Rushmore
    • Fix Version/s: Rushmore
    • Component/s: Campaign Service
    • Labels:
      None
    • Environment:

      Bidmgr RC build
      bidmgr-distribution-2.8.0-RC1-bin.tar.gz

      Description

      Listener log error on managing externalCampaignJobItem

      Steps
      1) Created an order with call extension and deployed.

      2) update pointRadiusModifiers
      update mms_common.pointRadiusModifiers set advertID=7400 and multiplier=2.5 where id=2;
      3) Tail listener log

      4) Update the Jobs for the campaigns
      INSERT INTO clients.externalCampaignJobItem (externalCampaignID, externalCampaignJobTypeID, createTime) values ('7400_GT', 6, now());
      INSERT INTO clients.externalCampaignJobItem (externalCampaignID, externalCampaignJobTypeID, createTime) values ('7400_GM', 6, now());

      Listener log error:

      2015-04-15 13:40:24.398 (3) [pool-4-thread-1]: Created new job: ID: 22 jobTypeID 6 tryCount: 1 isFailed: false isFinished: false
      2015-04-15 13:40:24.398 (3) [pool-4-thread-1]: Executing job: ID: 22 jobTypeID 6 tryCount: 1 isFailed: false isFinished: false
      2015-04-15 13:40:24.419 (3) [pool-4-thread-1]: JDBC Driver Version: 5.1 (com.mysql.jdbc.Driver)
      2015-04-15 13:40:24.423 (3) [pool-4-thread-1]: Queue worker close() called.
      2015-04-15 13:40:24.423 (1) [pool-4-thread-1]: Exception [Error while managing jobs.]:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'c join externalCampaignJobItem j on (c.id = j.externalCampaignID) left join tsac' at line 1
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
      at com.mysql.jdbc.Util.getInstance(Util.java:386)
      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1054)
      at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4120)
      at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4052)
      at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2503)
      at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2664)
      at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2815)
      at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2155)
      at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2322)
      at com.thesearchagency.admaxlistener.dao.ExternalCampaignJobDAO.getExternalCampaigns(ExternalCampaignJobDAO.java:212)
      at com.thesearchagency.admaxlistener.task.ExternalCampaignTask.buildCampaignIDMaps(ExternalCampaignTask.java:302)
      at com.thesearchagency.admaxlistener.task.ExternalCampaignTaskDeploy.executeJob(ExternalCampaignTaskDeploy.java:120)
      at com.thesearchagency.admaxlistener.task.ExternalCampaignTask.manageJobs(ExternalCampaignTask.java:427)
      at com.thesearchagency.admaxlistener.task.ExternalCampaignTask.run(ExternalCampaignTask.java:217)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      2015-04-15 13:40:50.387 (3) [Thread-9]: Heartbeat #41 (1429105250381) received in 0.006s

        Attachments

        1. RadiusBoosting.png
          95 kB
          Atul Sanagar
        2. RadiusBoostingState.png
          147 kB
          Atul Sanagar

          Activity

            People

            • Assignee:
              atul.sanagar Atul Sanagar (Inactive)
              Reporter:
              varshini.padmanabhan Varshini Padmanabhan (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: