Uploaded image for project: 'SMB - Optus'
  1. SMB - Optus
  2. OPTUS-61

OPTUS_SGS: SGS is throwing null pointer exception, once we upload a logo and resend SGS request

    Details

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

      Description

      SGS is throwing null pointer exception, once we upload a logo and resend SGS request (Templateid – 12)

      • Login to SSUI
      • Navigate to Settings>Change Template: Click on the template( template 12) and SUBMIT.
      • Send SGS request and observe jboss log on Smb1 ==

      SGS request and detailed log attached

      15:47:14,408 INFO [ImageContentCP] Using customized logo image in site generation.
      15:47:14,416 ERROR [SiteServiceBD] Process during context processing step : class com.thesearchagency.smb.service.site.component.contextprocessing.content.ImageContentCP
      java.lang.IllegalArgumentException: Width (0) and height (0) must be > 0
      at java.awt.image.SampleModel.<init>(SampleModel.java:108)
      at java.awt.image.ComponentSampleModel.<init>(ComponentSampleModel.java:128)
      at java.awt.image.PixelInterleavedSampleModel.<init>(PixelInterleavedSampleModel.java:69)
      at java.awt.image.Raster.createInterleavedRaster(Raster.java:638)
      at java.awt.image.Raster.createInterleavedRaster(Raster.java:265)
      at java.awt.image.BufferedImage.<init>(BufferedImage.java:365)
      at com.thesearchagency.smb.service.site.component.contextprocessing.content.ImageContentCP.resizeLogo(ImageContentCP.java:129)
      at com.thesearchagency.smb.service.site.component.contextprocessing.content.ImageContentCP.addLogoToAllPages(ImageContentCP.java:110)
      at com.thesearchagency.smb.service.site.component.contextprocessing.content.ImageContentCP.process(ImageContentCP.java:61)
      at com.thesearchagency.smb.service.site.component.SiteServiceBD.generateSite(SiteServiceBD.java:194)
      at com.thesearchagency.smb.service.site.mdb.SiteServiceRequestMDB.onMessage(SiteServiceRequestMDB.java:54)

      It is observed that Null pointer exception occurs for some of the templates, for template id – 1,2 etc .. SGS deploys successfully

        Attachments

          Activity

            People

            • Assignee:
              jason.stedman Jason Stedman (Inactive)
              Reporter:
              atul.sanagar Atul Sanagar (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: