cancel
Showing results for 
Search instead for 
Did you mean: 

Image conversion for images uploaded through hot folder

romitchhabra
Participant
0 Kudos
1,499

I am using SAP Commerce Cloud ccv2 2011. I can create media through the back-office and upload an image in it and convert it into different formats by clicking on the "Convert Missing Media" button in a media container in the back office. But when I try to convert a media created through the hot folder, it is giving me an error.

I tried using windowsAzureBlobStorageStrategy as well as cloudAzureBlobStorageStrategy and the error differs for both the strategies.

I am working with CatalogUnawareMedia but the error is same for Media (catalog specific) as well.

The configuration used is -

cloud.hotfolder.default.images.root.url=http:https://<account-name>.blob.core.windows.net/${azure.hotfolder.storage.container.name}/master/productimages/images
cloud.hotfolder.default.images.media.folder.qualifier=productasset
media.folder.productasset.storage.strategy=windowsAzureBlobStorageStrategy
media.folder.productasset.public.base.url=https://<account-name>.blob.core.windows.net/${azure.hotfolder.storage.container.name}
media.folder.productasset.containerAddress=hybris
media.globalSettings.windowsAzureBlobStorageStrategy.local.cache=true
media.globalSettings.windowsAzureBlobStorageStrategy.containerAddress=hybris
media.folder.productasset.url.strategy=windowsAzureBlobURLStrategy,localMediaWebURLStrategy
media.default.secured=false

With this configuration, the following error comes

de.hybris.platform.media.exceptions.ExternalStorageServiceException: Azure specific configuration not found [key: connection was empty"  "class": "de.hybris.platform.cloud.storage.service.impl.DefaultAzureStorageService",
  "method": "getConnectionString",
  "file": "DefaultAzureStorageService.java",
  "line": 72,
  "exact": false,
  "location": "cloudstorageserver.jar",
  "version": "?"
},
{
  "class": "de.hybris.platform.cloud.storage.service.impl.DefaultAzureStorageService",
  "method": "getCloudBlobClient",
  "file": "DefaultAzureStorageService.java",
  "line": 64,
  "exact": false,
  "location": "cloudstorageserver.jar",
  "version": "?"
},
{
  "class": "de.hybris.platform.cloud.storage.service.impl.DefaultAzureStorageService",
  "method": "getContainerForMediaFolder",
  "file": "DefaultAzureStorageService.java",
  "line": 162,
  "exact": false,
  "location": "cloudstorageserver.jar",
  "version": "?"
},...

When I change the strategy to cloudAzureBlobStorageStrategy instead of windowsAzureBlobStorageStrategy, the error changes to following -

java.lang.IllegalArgumentException: The argument must not be null. Argument name: blobName.[{"class":"com.microsoft.azure.storage.core.Utility","method":"assertNotNull","file":"Utility.java","line":368,"exact":false,"location":"azure-storage-8.1.0.jar","version":"?"},{"class":"com.microsoft.azure.storage.core.Utility","method":"assertNotNullOrEmpty","file":"Utility.java","line":383,"exact":false,"location":"azure-storage-8.1.0.jar","version":"?"},...

Detailed error log is attached for reference.error-with-cloudazureblobstoragestrategy.txterror-with-windowsazureblobstoragestrategy.txt

View Entire Topic
shauryagupta
Advisor
Advisor
0 Kudos

Did you find a solution for this ? I am getting similar error.

Thanks