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

Optus: Exception while uploading images

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.1.0-RC1
    • Fix Version/s: None
    • Component/s: Content
    • Labels:
      None
    • Environment:

      QA Env:optus-qa-jboss7

      Script Used:./crclient.sh

      Script Location:/home/gsingh/git/optus-content/import_scripts

      Build:p296

      Description

      I was trying to upload content to repository. Though the upload looked successful as the images were being shown in content repository, I got an exception during the upload. Wanted to share it with you and ensure that everything is okay. Here are the steps I followed.

      [gsingh@optus-qa-jboss7 import_scripts]$ ./crclient.sh -t image -i ../images/building_and_construction-1000006/ -f ../images/building_and_construction-1000006/images-building_and_construction-1000006.csv

      Boot: Warning: Unable to locate main/main.jar in the JAR file /home/gsingh/gsingh_scripts/contentrepository-client-0.0.1-SNAPSHOT-p215-t20111013-094407-CI.one-jar.jar

      -t

      image

      -i

      ../images/building_and_construction-1000006/

      -f

      ../images/building_and_construction-1000006/images-building_and_construction-1000006.csv

      Checking for type:

      Type = image

      Exporting : false

      The Type = image

      Success: BCID: BAID: 2000084 File: chisel.jpg : Imported image ID #1

      Success: BCID: BAID: 2000084 File: hammer.jpg : Imported image ID #3

      ../images/building_and_construction-1000006/images-building_and_construction-1000006.csv: error: failed to load

      java.lang.ArrayIndexOutOfBoundsException: 1

      at com.thesearchagency.core.smb.contentrepository.client.CRClient.importImageContent(CRClient.java:310)

      at com.thesearchagency.core.smb.contentrepository.client.CRClient.run(CRClient.java:147)

      When I checked in the DB, the images were show in content_repository.

      mysql> select * from content_repository.images;

      -----------------------------------------------------------------------------------------

      id businessTypeID businessFunctionID locationID entityID filename description status useCount

      -----------------------------------------------------------------------------------------

      1 0 2000084 0 0 chisel.jpg   1 0
      3 0 2000084 0 0 hammer.jpg   1 0

      -----------------------------------------------------------------------------------------

      2 rows in set (0.00 sec)

        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: