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

Order stuck in Processing state in case long Primary destination URL

    Details

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

      Description

      Order stuck in Processing state in case long Primary destination URL which is deployed through API

      Steps

      1. Create a Merchant
      2. Deploy an order with long primary destination url (2048 charcters)

      Expected Behavior

      Order should be deployed successfully .

      Actual Behavior

      Order stuck in processing , exceptions observed in jboss.

      1:35:24,293 DEBUG [JdbcTemplate] Executing prepared SQL statement [insert into mms_common.campaigns (accountID, advertID, businessFunctionID, locationID, customerDisplayURL, customerDestinationURL, localeName, distribution) select a.id, ?, ?, ?, ?, ?, ?, ? from mms_common.accounts a where a.bpID = ? on duplicate key update customerDisplayURL = ?, customerDestinationURL = ?]
      11:35:24,296 WARN [AdMaxDeploymentServiceImpl] Error while processing Campaigns... 9525fcbc-70f0-4051-87b1-bfe979f7b511_10004_1_867
      org.springframework.dao.DataIntegrityViolationException: PreparedStatementCallback; SQL [insert into mms_common.campaigns (accountID, advertID, businessFunctionID, locationID, customerDisplayURL, customerDestinationURL, localeName, distribution) select a.id, ?, ?, ?, ?, ?, ?, ? from mms_common.accounts a where a.bpID = ? on duplicate key update customerDisplayURL = ?, customerDestinationURL = ?]; Data truncation: Data too long for column 'customerDestinationURL' at row 1; nested exception is com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'customerDestinationURL' at row 1
      at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:101)
      at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
      at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
      at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
      at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:602)
      at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:811)
      at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:867)

      Note :
      Realm - qa2(orange)
      Kindly find the attached jboss log.

        Attachments

        1. long_primaryDestinationUrl.txt
          19 kB
          Sanjay Kumar Biswal
        2. soap_long_url.txt
          3 kB
          Sanjay Kumar Biswal

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sanjaykumar.biswal Sanjay Kumar Biswal
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: