Details
-
Type: Bug
-
Status: Closed
-
Priority: Trivial
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Content
-
Labels:None
-
Environment:
optus-qa-smb1 50.57.178.209
optus-qa-agency1 50.57.178.216
optus-qa-mysql1 50.57.144.182
optus-qa-pixel1 50.57.125.69
Description
Even though the images are imported successfully, the error is thrown while uploading. To confirm if the images were really uploaded.Following query was executed.
mysql> select * from 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 |
gsingh@optus-qa-smb1 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/crclient/contentrepository-client-1.2.0-SNAPSHOT-p460-t20120117-174324-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:326)
at com.thesearchagency.core.smb.contentrepository.client.CRClient.run(CRClient.java:161)
at com.thesearchagency.core.smb.contentrepository.client.CRClient.main(CRClient.java:228)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.simontuffs.onejar.Boot.run(Boot.java:306)
at com.simontuffs.onejar.Boot.main(Boot.java:159)