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

SGS: siteGeneration throws a NPE and site is not created

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.1.1
    • Fix Version/s: 1.2.0
    • Labels:
      None
    • Environment:

      SMB Server: optus-qa-smb1 (50.57.178.209)

      SMB Services Build: optus-ear-1.1.1-SNAPSHOT-p113-t20120229-133111-CI.ear

      Description

      Steps:

      1. Deployed the latest 1.1.1 build from pulse. (p 113)

      2. Deployed an already existing site "customer0"

      Observation:

      Obtained a NPE during site deployment. (Please find the complete log attached)

      06:49:06,850 INFO [SocialMediaAndPixelCP] Entering process(..)

      06:49:06,851 DEBUG [JdbcTemplate] Executing prepared SQL query

      06:49:06,851 DEBUG [JdbcTemplate] Executing prepared SQL statement [select * from accounts where description = ? ]

      06:49:06,873 DEBUG [JdbcTemplate] Executing prepared SQL query

      06:49:06,873 DEBUG [JdbcTemplate] Executing prepared SQL statement [select * from sites where accountID = ? ]

      06:49:06,877 DEBUG [JdbcTemplate] Executing prepared SQL query

      06:49:06,877 DEBUG [JdbcTemplate] Executing prepared SQL statement [select `tsacommon`.`accounts`.`databaseInstance` from `tsacommon`.`accounts` where `tsacommon`.`accounts`.`description` = ?]

      06:49:06,880 DEBUG [JdbcTemplate] Executing prepared SQL query

      06:49:06,880 DEBUG [JdbcTemplate] Executing prepared SQL statement [select * from `tsacommon`.`databaseInstances` where `tsacommon`.`databaseInstances`.`name` = ?]

      06:49:06,904 INFO [DatabaseInstancePersistenceManager] Database URL: jdbc:mysql://acctdb-01-write:3307/st-tracker?useUnicode=true&characterEncoding=UTF-8

      06:49:06,907 DEBUG [JdbcTemplate] Executing prepared SQL query

      06:49:06,907 DEBUG [JdbcTemplate] Executing prepared SQL statement [select * from waypoints where siteID = ? ]

      06:49:06,930 WARN [SocialMediaAndPixelCP] FB_LIKE

      06:49:06,930 WARN [SocialMediaAndPixelCP]

      06:49:06,931 ERROR [SiteServiceBD] Process during context processing step : class com.thesearchagency.smb.service.site.component.contextprocessing.SocialMediaAndPixelCP

      java.lang.NullPointerException

      at com.thesearchagency.smb.service.site.component.contextprocessing.SocialMediaAndPixelCP.getConversionPixelCode(SocialMediaAndPixelCP.java:158)

      at com.thesearchagency.smb.service.site.component.contextprocessing.SocialMediaAndPixelCP.addSocialLikeCode(SocialMediaAndPixelCP.java:77)

      at com.thesearchagency.smb.service.site.component.contextprocessing.SocialMediaAndPixelCP.addSocialButtonCode(SocialMediaAndPixelCP.java:69)

      at com.thesearchagency.smb.service.site.component.contextprocessing.SocialMediaAndPixelCP.process(SocialMediaAndPixelCP.java:47)

      Note:

      We did not get any such NPE with the older build p102.

        Attachments

          Activity

            People

            • Assignee:
              jason.stedman Jason Stedman (Inactive)
              Reporter:
              gurpreet.singh Gurpreet Singh
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: