Closed yugandhar02 closed 2 years ago
edit pom to add this dep mentioned here https://docs.microsoft.com/en-us/java/api/overview/azure/storage-blob-readme?view=azure-java-stable.
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-storage-blob</artifactId>
<version>12.14.1</version>
</dependency>
After adding direct dependency as suggested by @ankumalh I am getting below error. I have re-checked configuration and seems to be correct
java.lang.IllegalArgumentException: Invalid connection string.
at com.azure.storage.common.implementation.connectionstring.StorageConnectionString.create(StorageConnectionString.java:115)
at com.azure.storage.blob.BlobContainerClientBuilder.connectionString(BlobContainerClientBuilder.java:293)
at sample.EncodingWithMESCustomPreset.createInputAsset(EncodingWithMESCustomPreset.java:362)
at sample.EncodingWithMESCustomPreset.runEncodingWithMESCustomPreset(EncodingWithMESCustomPreset.java:111)
at sample.EncodingWithMESCustomPreset.main(EncodingWithMESCustomPreset.java:70)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
I can see it was authenticated correctly and transform was created successfully but was unable to upload asset because of above error
This was fixed in the latest sample. I think you are seeing issues because, you are using Track 1 AMS sdk and track 2 storage SDK and they are not compatible. see the current code, which uses both Track 2 SDKs.
Minimal steps to reproduce
Any log messages given by the failure
Expected/desired behavior
OS and Version?
Versions
Mention any other details that might be useful
After adding
it compiles successfully but on executing "mvn exec:java" gets below error