Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.35k stars 1.99k forks source link

Videos bigger than 256MB are not uploading to Blob Storage using BlobAsyncClient #39080

Closed pushpDang closed 8 months ago

pushpDang commented 8 months ago

Query/Question I am trying to upload large videos (>256MB) to Blob Storage using BlobAsyncClient, it is failing. We have the Input Stream of the video which I am trying to upload to Blob Storage.

Below is the code snippet I am using to upload videos:

           long blockSize = 4  * com.azure.storage.common.implementation.Constants.MB;
           int maxConcurrency = 3;
           ParallelTransferOptions parallelTransferOptions = new ParallelTransferOptions().setBlockSizeLong(blockSize)
                     .setMaxConcurrency(maxConcurrency)
                     .setProgressReceiver(bytesTransferred ->log.debug("Upload progress: "+ (bytesTransferred/(1024*1024))));
           String filePath = "File-Name";
           OutputStream stream = new BufferedOutputStream(new FileOutputStream(filePath));
           int bufferSize = 1024;
           byte[] buffer = new byte[bufferSize];
           int len = 0;
           while ((len = inputStream.read(buffer)) != -1) {//this inputStream is of the videos I am trying to upload
                stream.write(buffer, 0, len);
           }
           if (stream != null)
                stream.close();
           BlobHttpHeaders headers = new BlobHttpHeaders()
                     .setContentLanguage("en-US")
                     .setContentType(mimeType);
            BlobServiceAsyncClient client = new BlobServiceClientBuilder().connectionString(connectStr).buildAsyncClient();
            BlobContainerAsyncClient containerClient = client.getBlobContainerAsyncClient(containerName);
            BlobAsyncClient blobClient = containerClient.getBlobAsyncClient(blobClientPath);
           blobClient.uploadFromFile(path, parallelTransferOptions, headers, null, AccessTier.HOT,
                     null)
                     .doOnSuccess(response-> log.debug("Inside DoonSuccess"))
                     .doOnError(response-> log.debug("Inside Doonerror"))
                     .doFinally(response-> log.debug("Inside Doonfinally"))
                     .subscribe(response-> log.debug("Upload completed successfully"));

For example: When I try to upload a video of size 373.2MB, I can see that the ProgressReceiver of ParallelTransferOptions, prints till "Upload progress: 373", then it suddenly fails. Please find attached error that i get when it fails. bloberror.txt

I have few observations:

  1. after going through other people's issues on Github, I can also see that the large videos does not have contentMD5 in them in BlobStorage, can this be the reason for this?
  2. When I run this exact same code from the public static void main class, this runs successfully. But when I run this code in my local application server(AEM 6.5.19), it fails. Application server heap size is 2GB.
  3. I have also run this same code on my Dev environment where heap size is 8GB. With this same code, the videos around 350MB are failing there also.

Why is this not a Bug or a feature Request? This is not a bug because I can see on internet that other people are able to upload it. Setup (please complete the following information if applicable):

joshfree commented 8 months ago

@ibrahimrabab @alzimmermsft could you please take a look?

pushpDang commented 8 months ago

@alzimmermsft I have few more observations:

  1. I can see that all the put blocks request are successful. I have enabled logs on the Logs Analytics Workspace. I can see that the putblock requests are successful but I dont see any PutBlockList in the logs.
  2. I debugged the azure-sdk code and saw that the putblocklist request is not triggered, due to this error: image
  3. I feel this is some issue due to dependency mismanagement. This is my dependency tree:

    +- org.osgi:osgi.core:jar:6.0.0:provided [INFO] +- org.osgi:osgi.cmpn:jar:6.0.0:provided [INFO] +- org.osgi:osgi.annotation:jar:6.0.1:provided [INFO] +- org.slf4j:slf4j-api:jar:1.7.36:compile [INFO] +- org.slf4j:slf4j-simple:jar:1.7.36:compile [INFO] +- javax.jcr:jcr:jar:2.0:provided [INFO] +- com.google.code.gson:gson:jar:2.3:provided [INFO] +- org.apache.felix:org.apache.felix.http.servlet-api:jar:1.1.2:provided [INFO] | - org.apache.tomcat:tomcat-servlet-api:jar:8.0.9:provided [INFO] +- com.adobe.aem:uber-jar:jar:apis:6.5.0:provided [INFO] +- org.apache.sling:org.apache.sling.models.api:jar:1.0.0:provided [INFO] +- org.apache.poi:poi-ooxml:jar:4.1.2:provided [INFO] | +- org.apache.poi:poi:jar:4.1.2:provided [INFO] | | +- commons-codec:commons-codec:jar:1.13:compile [INFO] | | +- org.apache.commons:commons-collections4:jar:4.4:compile [INFO] | | +- org.apache.commons:commons-math3:jar:3.6.1:provided [INFO] | | - com.zaxxer:SparseBitSet:jar:1.2:provided [INFO] | +- org.apache.poi:poi-ooxml-schemas:jar:4.1.2:provided [INFO] | | - org.apache.xmlbeans:xmlbeans:jar:3.1.0:provided [INFO] | +- org.apache.commons:commons-compress:jar:1.19:provided [INFO] | - com.github.virtuald:curvesapi:jar:1.06:provided [INFO] +- com.adobe.granite.bundles:json:jar:20090211_1:provided [INFO] +- com.adobe.cq.media:cq-media-articles:jar:5.6.4:provided [INFO] | - org.markdownj:markdownj:jar:0.3.0-1.0.2b4:provided [INFO] +- com.adobe.cq:core.wcm.components.core:jar:2.22.12:compile [INFO] | - org.apache.sling:org.apache.sling.servlets.annotations:jar:1.2.6:compile [INFO] +- commons-io:commons-io:jar:2.5:provided [INFO] +- commons-lang:commons-lang:jar:2.6:provided [INFO] +- com.atlassian.commonmark:commonmark:jar:0.14.0:compile [INFO] +- com.atlassian.commonmark:commonmark-ext-gfm-tables:jar:0.14.0:compile [INFO] +- com.atlassian.commonmark:commonmark-ext-yaml-front-matter:jar:0.14.0:compile [INFO] +- org.jsoup:jsoup:jar:1.13.1:compile [INFO] +- org.projectlombok:lombok:jar:1.18.24:compile [INFO] +- com.kotcrab.remark:remark:jar:1.0.0:compile [INFO] | - org.apache.commons:commons-lang3:jar:3.4:compile [INFO] +- commons-cli:commons-cli:jar:1.4:compile [INFO] +- org.yaml:snakeyaml:jar:1.21:compile [INFO] +- junit:junit:jar:4.13.2:compile [INFO] | - org.hamcrest:hamcrest-core:jar:1.3:compile [INFO] +- org.powermock:powermock-module-junit4:jar:1.4.12:provided [INFO] | - org.powermock:powermock-module-junit4-common:jar:1.4.12:provided [INFO] | +- org.powermock:powermock-core:jar:1.4.12:provided [INFO] | - org.powermock:powermock-reflect:jar:1.4.12:provided [INFO] +- org.powermock:powermock-api-mockito:jar:1.4.12:provided [INFO] | +- org.mockito:mockito-all:jar:1.9.0:provided [INFO] | - org.powermock:powermock-api-support:jar:1.4.12:provided [INFO] +- org.javassist:javassist:jar:3.16.1-GA:provided [INFO] +- org.reflections:reflections:jar:0.10.2:compile [INFO] | - com.google.code.findbugs:jsr305:jar:3.0.2:compile [INFO] +- io.wcm:io.wcm.testing.aem-mock.junit4:jar:5.0.0:compile [INFO] | +- io.wcm:io.wcm.testing.aem-mock.core:jar:5.0.0:compile [INFO] | | +- org.apache.sling:org.apache.sling.api:jar:2.22.0:compile [INFO] | | | - org.jetbrains:annotations:jar:16.0.2:compile [INFO] | | +- org.apache.jackrabbit:jackrabbit-jcr-commons:jar:2.20.1:compile [INFO] | | +- org.apache.sling:org.apache.sling.commons.osgi:jar:2.4.0:compile [INFO] | | +- org.apache.sling:org.apache.sling.resourceresolver:jar:1.7.0:compile [INFO] | | +- org.apache.sling:org.apache.sling.serviceusermapper:jar:1.4.4:compile [INFO] | | +- org.apache.sling:org.apache.sling.jcr.api:jar:2.4.0:compile [INFO] | | +- org.apache.sling:org.apache.sling.jcr.resource:jar:3.0.18:compile [INFO] | | +- org.apache.sling:org.apache.sling.commons.mime:jar:2.2.2:compile [INFO] | | +- org.apache.sling:org.apache.sling.commons.json:jar:2.0.20:compile [INFO] | | +- org.apache.sling:org.apache.sling.commons.classloader:jar:1.4.2:compile [INFO] | | +- org.apache.sling:org.apache.sling.settings:jar:1.3.10:compile [INFO] | | +- org.apache.sling:org.apache.sling.i18n:jar:2.5.14:compile [INFO] | | +- org.apache.sling:org.apache.sling.models.impl:jar:1.4.14:compile [INFO] | | +- org.apache.sling:org.apache.sling.testing.jcr-mock:jar:1.6.0:compile [INFO] | | | - org.apache.jackrabbit:oak-jackrabbit-api:jar:1.22.5:compile [INFO] | | +- org.apache.sling:org.apache.sling.testing.osgi-mock.core:jar:3.3.0:compile [INFO] | | | +- org.osgi:org.osgi.framework:jar:1.9.0:compile [INFO] | | | +- org.osgi:org.osgi.service.component:jar:1.4.0:compile [INFO] | | | +- org.osgi:org.osgi.service.cm:jar:1.6.0:compile [INFO] | | | +- org.osgi:org.osgi.service.event:jar:1.4.0:compile [INFO] | | | - org.osgi:org.osgi.service.log:jar:1.3.0:compile [INFO] | | +- org.apache.sling:org.apache.sling.testing.sling-mock.core:jar:3.3.0:compile [INFO] | | | +- org.apache.sling:org.apache.sling.resourcebuilder:jar:1.0.4:compile [INFO] | | | +- org.osgi:org.osgi.resource:jar:1.0.0:compile [INFO] | | | +- org.osgi:org.osgi.util.converter:jar:1.0.0:compile [INFO] | | | +- org.osgi:org.osgi.util.function:jar:1.1.0:compile [INFO] | | | +- org.osgi:org.osgi.util.tracker:jar:1.5.2:compile [INFO] | | | +- org.apache.sling:org.apache.sling.scripting.api:jar:2.2.0:compile [INFO] | | | +- org.apache.sling:org.apache.sling.scripting.core:jar:2.3.2:compile [INFO] | | | | - org.apache.felix:org.apache.felix.utils:jar:1.9.0:compile [INFO] | | | +- org.apache.johnzon:johnzon-core:jar:1.1.1:compile [INFO] | | | +- org.apache.sling:org.apache.sling.adapter:jar:2.1.10:compile [INFO] | | | +- org.apache.sling:org.apache.sling.featureflags:jar:1.2.2:compile [INFO] | | | +- org.apache.jackrabbit:oak-jcr:jar:1.22.5:compile [INFO] | | | | +- org.apache.jackrabbit:oak-api:jar:1.22.5:compile [INFO] | | | | +- org.apache.jackrabbit:oak-core-spi:jar:1.22.5:compile [INFO] | | | | +- org.apache.jackrabbit:oak-store-spi:jar:1.22.5:compile [INFO] | | | | +- org.apache.jackrabbit:oak-query-spi:jar:1.22.5:compile [INFO] | | | | +- org.apache.jackrabbit:oak-security-spi:jar:1.22.5:compile [INFO] | | | | | - org.osgi:org.osgi.service.component.annotations:jar:1.3.0:compile [INFO] | | | | +- org.apache.jackrabbit:oak-core:jar:1.22.5:compile [INFO] | | | | | - org.apache.jackrabbit:oak-blob-plugins:jar:1.22.5:compile [INFO] | | | | | +- org.apache.jackrabbit:jackrabbit-data:jar:2.20.1:compile [INFO] | | | | | - org.apache.jackrabbit:oak-blob:jar:1.22.5:compile [INFO] | | | | +- org.apache.jackrabbit:oak-commons:jar:1.22.5:compile [INFO] | | | | - com.google.guava:guava:jar:15.0:compile [INFO] | | | +- commons-collections:commons-collections:jar:3.2.2:compile [INFO] | | | +- org.apache.sling:org.apache.sling.contentparser.api:jar:2.0.0:compile [INFO] | | | +- org.apache.sling:org.apache.sling.contentparser.json:jar:2.0.0:compile [INFO] | | | +- org.apache.sling:org.apache.sling.contentparser.xml-jcr:jar:2.0.0:compile [INFO] | | | +- org.apache.sling:org.apache.sling.fsresource:jar:2.2.0:compile [INFO] | | | +- org.apache.geronimo.specs:geronimo-atinject_1.0_spec:jar:1.0:compile [INFO] | | | - org.apache.geronimo.specs:geronimo-json_1.1_spec:jar:1.0:compile [INFO] | | +- org.apache.sling:org.apache.sling.testing.resourceresolver-mock:jar:1.3.0:compile [INFO] | | +- org.apache.sling:org.apache.sling.servlet-helpers:jar:1.4.2:compile [INFO] | | +- org.apache.jackrabbit.vault:org.apache.jackrabbit.vault:jar:3.2.8:compile [INFO] | | +- org.apache.commons:commons-imaging:jar:1.0-alpha1:compile [INFO] | | +- javax.servlet:javax.servlet-api:jar:3.1.0:compile [INFO] | | +- javax.servlet.jsp:jsp-api:jar:2.1:compile [INFO] | | +- com.day.commons:day-commons-gfx:jar:2.1.28:compile [INFO] | | | - com.day.commons:day-commons-any:jar:2.0.0:compile [INFO] | | | - com.day.commons:day-commons-text:jar:1.1.3:compile [INFO] | | +- org.apache.sling:org.apache.sling.testing.hamcrest:jar:1.0.2:compile [INFO] | | | - org.hamcrest:hamcrest-library:jar:1.3:compile [INFO] | | - org.apache.sling:org.apache.sling.xss:jar:2.2.6:compile [INFO] | +- org.apache.sling:org.apache.sling.testing.sling-mock.junit4:jar:3.3.0:compile [INFO] | +- org.apache.sling:org.apache.sling.testing.osgi-mock.junit4:jar:3.3.0:compile [INFO] | - io.wcm:io.wcm.testing.junit-commons:jar:1.0.4:compile [INFO] +- org.junit:junit-bom:pom:5.8.1:import [INFO] +- org.junit.jupiter:junit-jupiter:jar:5.7.1:test [INFO] | +- org.junit.jupiter:junit-jupiter-api:jar:5.7.1:test [INFO] | | +- org.apiguardian:apiguardian-api:jar:1.1.0:test [INFO] | | +- org.opentest4j:opentest4j:jar:1.2.0:test [INFO] | | - org.junit.platform:junit-platform-commons:jar:1.7.1:test [INFO] | +- org.junit.jupiter:junit-jupiter-params:jar:5.7.1:test [INFO] | - org.junit.jupiter:junit-jupiter-engine:jar:5.7.1:test [INFO] | - org.junit.platform:junit-platform-engine:jar:1.7.1:test [INFO] +- org.mockito:mockito-core:jar:4.2.0:test [INFO] | +- net.bytebuddy:byte-buddy:jar:1.12.4:test [INFO] | +- net.bytebuddy:byte-buddy-agent:jar:1.12.4:test [INFO] | - org.objenesis:objenesis:jar:3.2:provided [INFO] +- org.mockito:mockito-inline:jar:4.2.0:test [INFO] +- org.mockito:mockito-junit-jupiter:jar:4.2.0:test [INFO] +- io.wcm:io.wcm.testing.aem-mock.junit5:jar:4.1.0:test [INFO] +- junit-addons:junit-addons:jar:1.4:test [INFO] | +- xerces:xercesImpl:jar:2.6.2:test [INFO] | - xerces:xmlParserAPIs:jar:2.6.2:test [INFO] +- com.azure:azure-core:jar:1.37.0:compile [INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.13.5:compile [INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.13.5:compile [INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.13.5:compile [INFO] | - io.projectreactor:reactor-core:jar:3.4.27:compile [INFO] | - org.reactivestreams:reactive-streams:jar:1.0.4:compile [INFO] +- com.azure:azure-storage-blob:jar:12.21.1:compile [INFO] | +- com.azure:azure-storage-common:jar:12.20.1:compile [INFO] | - com.azure:azure-storage-internal-avro:jar:12.6.1:compile [INFO] +- com.azure:azure-core-http-netty:jar:1.13.1:compile [INFO] | +- io.netty:netty-handler:jar:4.1.89.Final:compile [INFO] | | +- io.netty:netty-common:jar:4.1.89.Final:compile [INFO] | | +- io.netty:netty-resolver:jar:4.1.89.Final:compile [INFO] | | - io.netty:netty-transport:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-handler-proxy:jar:4.1.89.Final:compile [INFO] | | - io.netty:netty-codec-socks:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-buffer:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-codec:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-codec-http:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-codec-http2:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-transport-native-unix-common:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.89.Final:compile [INFO] | | - io.netty:netty-transport-classes-epoll:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-transport-native-kqueue:jar:osx-x86_64:4.1.89.Final:compile [INFO] | | - io.netty:netty-transport-classes-kqueue:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-tcnative-boringssl-static:jar:2.0.56.Final:compile [INFO] | | +- io.netty:netty-tcnative-classes:jar:2.0.56.Final:compile [INFO] | | +- io.netty:netty-tcnative-boringssl-static:jar:linux-x86_64:2.0.56.Final:compile [INFO] | | +- io.netty:netty-tcnative-boringssl-static:jar:linux-aarch_64:2.0.56.Final:compile [INFO] | | +- io.netty:netty-tcnative-boringssl-static:jar:osx-x86_64:2.0.56.Final:compile [INFO] | | +- io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64:2.0.56.Final:compile [INFO] | | - io.netty:netty-tcnative-boringssl-static:jar:windows-x86_64:2.0.56.Final:compile [INFO] | - io.projectreactor.netty:reactor-netty-http:jar:1.0.28:compile [INFO] | +- io.netty:netty-resolver-dns:jar:4.1.89.Final:compile [INFO] | | - io.netty:netty-codec-dns:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-resolver-dns-native-macos:jar:osx-x86_64:4.1.89.Final:compile [INFO] | | - io.netty:netty-resolver-dns-classes-macos:jar:4.1.89.Final:compile [INFO] | - io.projectreactor.netty:reactor-netty-core:jar:1.0.28:compile [INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.13.5:compile [INFO] +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.13.5:compile [INFO] | +- org.codehaus.woodstox:stax2-api:jar:4.2.1:compile [INFO] | - com.fasterxml.woodstox:woodstox-core:jar:6.4.0:compile [INFO] +- com.azure:azure-security-keyvault-secrets:jar:4.6.0:compile [INFO] +- com.azure:azure-identity:jar:1.8.1:compile [INFO] | +- com.microsoft.azure:msal4j-persistence-extension:jar:1.1.0:compile [INFO] | | - net.java.dev.jna:jna:jar:5.5.0:compile [INFO] | - net.java.dev.jna:jna-platform:jar:5.6.0:compile [INFO] +- com.azure:azure-security-keyvault-keys:jar:4.6.0:compile [INFO] +- com.microsoft.azure:msal4j:jar:1.13.9:compile [INFO] | - net.minidev:json-smart:jar:2.4.10:compile [INFO] | - net.minidev:accessors-smart:jar:2.4.9:compile [INFO] | - org.ow2.asm:asm:jar:9.3:compile [INFO] +- com.nimbusds:oauth2-oidc-sdk:jar:10.11:runtime [INFO] | +- com.github.stephenc.jcip:jcip-annotations:jar:1.0-1:runtime [INFO] | +- com.nimbusds:content-type:jar:2.2:runtime [INFO] | +- com.nimbusds:lang-tag:jar:1.7:runtime [INFO] | - com.nimbusds:nimbus-jose-jwt:jar:9.30.2:runtime [INFO] +- org.apache.pdfbox:pdfbox:jar:2.0.24:compile [INFO] | - commons-logging:commons-logging:jar:1.2:compile [INFO] - org.apache.pdfbox:fontbox:jar:2.0.24:compile

Any help is much appreciated here.

alzimmermsft commented 8 months ago

@pushpDang the issue may be more closely related to the bloberror.txt included in the initial description, where it states the inability to create JacksonAdapter$GlobalXmlMapper (java.lang.NoClassDefFoundError: Could not initialize class com.azure.core.util.serializer.JacksonAdapter$GlobalXmlMapper).

Which would be a good explanation for why putting blocks would succeed but putting the block list fails. Putting blocks doesn't require the XML mapper where the block list does. I know in azure-core:1.39.0 there were some fixes for how reflection was used in this space which may resolve this issue. This should be a small upgrade to azure-sdk-bom:1.2.13.

pushpDang commented 8 months ago

@alzimmermsft Thanks for your response. I updated the azure-sdk-bom to 1.2.13. Still I am getting the same error, like in the bloberror.txt. Below is the updated mvn dependency tree:

+- org.osgi:osgi.core:jar:6.0.0:provided [INFO] +- org.osgi:osgi.cmpn:jar:6.0.0:provided [INFO] +- org.osgi:osgi.annotation:jar:6.0.1:provided [INFO] +- org.slf4j:slf4j-api:jar:1.7.36:compile [INFO] +- org.slf4j:slf4j-simple:jar:1.7.36:compile [INFO] +- javax.jcr:jcr:jar:2.0:provided [INFO] +- com.google.code.gson:gson:jar:2.3:provided [INFO] +- org.apache.felix:org.apache.felix.http.servlet-api:jar:1.1.2:provided [INFO] | - org.apache.tomcat:tomcat-servlet-api:jar:8.0.9:provided [INFO] +- com.adobe.aem:uber-jar:jar:apis:6.5.0:provided [INFO] +- org.apache.sling:org.apache.sling.models.api:jar:1.0.0:provided [INFO] +- org.apache.poi:poi-ooxml:jar:4.1.2:provided [INFO] | +- org.apache.poi:poi:jar:4.1.2:provided [INFO] | | +- commons-codec:commons-codec:jar:1.13:compile [INFO] | | +- org.apache.commons:commons-collections4:jar:4.4:compile [INFO] | | +- org.apache.commons:commons-math3:jar:3.6.1:provided [INFO] | | - com.zaxxer:SparseBitSet:jar:1.2:provided [INFO] | +- org.apache.poi:poi-ooxml-schemas:jar:4.1.2:provided [INFO] | | - org.apache.xmlbeans:xmlbeans:jar:3.1.0:provided [INFO] | +- org.apache.commons:commons-compress:jar:1.19:provided [INFO] | - com.github.virtuald:curvesapi:jar:1.06:provided [INFO] +- com.adobe.granite.bundles:json:jar:20090211_1:provided [INFO] +- com.adobe.cq.media:cq-media-articles:jar:5.6.4:provided [INFO] | - org.markdownj:markdownj:jar:0.3.0-1.0.2b4:provided [INFO] +- com.adobe.cq:core.wcm.components.core:jar:2.22.12:compile [INFO] | - org.apache.sling:org.apache.sling.servlets.annotations:jar:1.2.6:compile [INFO] +- commons-io:commons-io:jar:2.5:provided [INFO] +- commons-lang:commons-lang:jar:2.6:provided [INFO] +- com.atlassian.commonmark:commonmark:jar:0.14.0:compile [INFO] +- com.atlassian.commonmark:commonmark-ext-gfm-tables:jar:0.14.0:compile [INFO] +- com.atlassian.commonmark:commonmark-ext-yaml-front-matter:jar:0.14.0:compile [INFO] +- org.jsoup:jsoup:jar:1.13.1:compile [INFO] +- org.projectlombok:lombok:jar:1.18.24:compile [INFO] +- com.kotcrab.remark:remark:jar:1.0.0:compile [INFO] | - org.apache.commons:commons-lang3:jar:3.4:compile [INFO] +- commons-cli:commons-cli:jar:1.4:compile [INFO] +- org.yaml:snakeyaml:jar:1.21:compile [INFO] +- junit:junit:jar:4.13.2:compile [INFO] | - org.hamcrest:hamcrest-core:jar:1.3:compile [INFO] +- org.powermock:powermock-module-junit4:jar:1.4.12:provided [INFO] | - org.powermock:powermock-module-junit4-common:jar:1.4.12:provided [INFO] | +- org.powermock:powermock-core:jar:1.4.12:provided [INFO] | - org.powermock:powermock-reflect:jar:1.4.12:provided [INFO] +- org.powermock:powermock-api-mockito:jar:1.4.12:provided [INFO] | +- org.mockito:mockito-all:jar:1.9.0:provided [INFO] | - org.powermock:powermock-api-support:jar:1.4.12:provided [INFO] +- org.javassist:javassist:jar:3.16.1-GA:provided [INFO] +- org.reflections:reflections:jar:0.10.2:compile [INFO] | - com.google.code.findbugs:jsr305:jar:3.0.2:compile [INFO] +- io.wcm:io.wcm.testing.aem-mock.junit4:jar:5.0.0:compile [INFO] | +- io.wcm:io.wcm.testing.aem-mock.core:jar:5.0.0:compile [INFO] | | +- org.apache.sling:org.apache.sling.api:jar:2.22.0:compile [INFO] | | | - org.jetbrains:annotations:jar:16.0.2:compile [INFO] | | +- org.apache.jackrabbit:jackrabbit-jcr-commons:jar:2.20.1:compile [INFO] | | +- org.apache.sling:org.apache.sling.commons.osgi:jar:2.4.0:compile [INFO] | | +- org.apache.sling:org.apache.sling.resourceresolver:jar:1.7.0:compile [INFO] | | +- org.apache.sling:org.apache.sling.serviceusermapper:jar:1.4.4:compile [INFO] | | +- org.apache.sling:org.apache.sling.jcr.api:jar:2.4.0:compile [INFO] | | +- org.apache.sling:org.apache.sling.jcr.resource:jar:3.0.18:compile [INFO] | | +- org.apache.sling:org.apache.sling.commons.mime:jar:2.2.2:compile [INFO] | | +- org.apache.sling:org.apache.sling.commons.json:jar:2.0.20:compile [INFO] | | +- org.apache.sling:org.apache.sling.commons.classloader:jar:1.4.2:compile [INFO] | | +- org.apache.sling:org.apache.sling.settings:jar:1.3.10:compile [INFO] | | +- org.apache.sling:org.apache.sling.i18n:jar:2.5.14:compile [INFO] | | +- org.apache.sling:org.apache.sling.models.impl:jar:1.4.14:compile [INFO] | | +- org.apache.sling:org.apache.sling.testing.jcr-mock:jar:1.6.0:compile [INFO] | | | - org.apache.jackrabbit:oak-jackrabbit-api:jar:1.22.5:compile [INFO] | | +- org.apache.sling:org.apache.sling.testing.osgi-mock.core:jar:3.3.0:compile [INFO] | | | +- org.osgi:org.osgi.framework:jar:1.9.0:compile [INFO] | | | +- org.osgi:org.osgi.service.component:jar:1.4.0:compile [INFO] | | | +- org.osgi:org.osgi.service.cm:jar:1.6.0:compile [INFO] | | | +- org.osgi:org.osgi.service.event:jar:1.4.0:compile [INFO] | | | - org.osgi:org.osgi.service.log:jar:1.3.0:compile [INFO] | | +- org.apache.sling:org.apache.sling.testing.sling-mock.core:jar:3.3.0:compile [INFO] | | | +- org.apache.sling:org.apache.sling.resourcebuilder:jar:1.0.4:compile [INFO] | | | +- org.osgi:org.osgi.resource:jar:1.0.0:compile [INFO] | | | +- org.osgi:org.osgi.util.converter:jar:1.0.0:compile [INFO] | | | +- org.osgi:org.osgi.util.function:jar:1.1.0:compile [INFO] | | | +- org.osgi:org.osgi.util.tracker:jar:1.5.2:compile [INFO] | | | +- org.apache.sling:org.apache.sling.scripting.api:jar:2.2.0:compile [INFO] | | | +- org.apache.sling:org.apache.sling.scripting.core:jar:2.3.2:compile [INFO] | | | | - org.apache.felix:org.apache.felix.utils:jar:1.9.0:compile [INFO] | | | +- org.apache.johnzon:johnzon-core:jar:1.1.1:compile [INFO] | | | +- org.apache.sling:org.apache.sling.adapter:jar:2.1.10:compile [INFO] | | | +- org.apache.sling:org.apache.sling.featureflags:jar:1.2.2:compile [INFO] | | | +- org.apache.jackrabbit:oak-jcr:jar:1.22.5:compile [INFO] | | | | +- org.apache.jackrabbit:oak-api:jar:1.22.5:compile [INFO] | | | | +- org.apache.jackrabbit:oak-core-spi:jar:1.22.5:compile [INFO] | | | | +- org.apache.jackrabbit:oak-store-spi:jar:1.22.5:compile [INFO] | | | | +- org.apache.jackrabbit:oak-query-spi:jar:1.22.5:compile [INFO] | | | | +- org.apache.jackrabbit:oak-security-spi:jar:1.22.5:compile [INFO] | | | | | - org.osgi:org.osgi.service.component.annotations:jar:1.3.0:compile [INFO] | | | | +- org.apache.jackrabbit:oak-core:jar:1.22.5:compile [INFO] | | | | | - org.apache.jackrabbit:oak-blob-plugins:jar:1.22.5:compile [INFO] | | | | | +- org.apache.jackrabbit:jackrabbit-data:jar:2.20.1:compile [INFO] | | | | | - org.apache.jackrabbit:oak-blob:jar:1.22.5:compile [INFO] | | | | +- org.apache.jackrabbit:oak-commons:jar:1.22.5:compile [INFO] | | | | - com.google.guava:guava:jar:15.0:compile [INFO] | | | +- commons-collections:commons-collections:jar:3.2.2:compile [INFO] | | | +- org.apache.sling:org.apache.sling.contentparser.api:jar:2.0.0:compile [INFO] | | | +- org.apache.sling:org.apache.sling.contentparser.json:jar:2.0.0:compile [INFO] | | | +- org.apache.sling:org.apache.sling.contentparser.xml-jcr:jar:2.0.0:compile [INFO] | | | +- org.apache.sling:org.apache.sling.fsresource:jar:2.2.0:compile [INFO] | | | +- org.apache.geronimo.specs:geronimo-atinject_1.0_spec:jar:1.0:compile [INFO] | | | - org.apache.geronimo.specs:geronimo-json_1.1_spec:jar:1.0:compile [INFO] | | +- org.apache.sling:org.apache.sling.testing.resourceresolver-mock:jar:1.3.0:compile [INFO] | | +- org.apache.sling:org.apache.sling.servlet-helpers:jar:1.4.2:compile [INFO] | | +- org.apache.jackrabbit.vault:org.apache.jackrabbit.vault:jar:3.2.8:compile [INFO] | | +- org.apache.commons:commons-imaging:jar:1.0-alpha1:compile [INFO] | | +- javax.servlet:javax.servlet-api:jar:3.1.0:compile [INFO] | | +- javax.servlet.jsp:jsp-api:jar:2.1:compile [INFO] | | +- com.day.commons:day-commons-gfx:jar:2.1.28:compile [INFO] | | | - com.day.commons:day-commons-any:jar:2.0.0:compile [INFO] | | | - com.day.commons:day-commons-text:jar:1.1.3:compile [INFO] | | +- org.apache.sling:org.apache.sling.testing.hamcrest:jar:1.0.2:compile [INFO] | | | - org.hamcrest:hamcrest-library:jar:1.3:compile [INFO] | | - org.apache.sling:org.apache.sling.xss:jar:2.2.6:compile [INFO] | +- org.apache.sling:org.apache.sling.testing.sling-mock.junit4:jar:3.3.0:compile [INFO] | +- org.apache.sling:org.apache.sling.testing.osgi-mock.junit4:jar:3.3.0:compile [INFO] | - io.wcm:io.wcm.testing.junit-commons:jar:1.0.4:compile [INFO] +- org.junit:junit-bom:pom:5.8.1:import [INFO] +- org.junit.jupiter:junit-jupiter:jar:5.7.1:test [INFO] | +- org.junit.jupiter:junit-jupiter-api:jar:5.7.1:test [INFO] | | +- org.apiguardian:apiguardian-api:jar:1.1.0:test [INFO] | | +- org.opentest4j:opentest4j:jar:1.2.0:test [INFO] | | - org.junit.platform:junit-platform-commons:jar:1.7.1:test [INFO] | +- org.junit.jupiter:junit-jupiter-params:jar:5.7.1:test [INFO] | - org.junit.jupiter:junit-jupiter-engine:jar:5.7.1:test [INFO] | - org.junit.platform:junit-platform-engine:jar:1.7.1:test [INFO] +- org.mockito:mockito-core:jar:4.2.0:test [INFO] | +- net.bytebuddy:byte-buddy:jar:1.12.4:test [INFO] | +- net.bytebuddy:byte-buddy-agent:jar:1.12.4:test [INFO] | - org.objenesis:objenesis:jar:3.2:provided [INFO] +- org.mockito:mockito-inline:jar:4.2.0:test [INFO] +- org.mockito:mockito-junit-jupiter:jar:4.2.0:test [INFO] +- io.wcm:io.wcm.testing.aem-mock.junit5:jar:4.1.0:test [INFO] +- junit-addons:junit-addons:jar:1.4:test [INFO] | +- xerces:xercesImpl:jar:2.6.2:test [INFO] | - xerces:xmlParserAPIs:jar:2.6.2:test [INFO] +- com.azure:azure-core:jar:1.39.0:compile [INFO] | +- com.azure:azure-json:jar:1.0.1:compile [INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.13.5:compile [INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.13.5:compile [INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.13.5:compile [INFO] | - io.projectreactor:reactor-core:jar:3.4.27:compile [INFO] | - org.reactivestreams:reactive-streams:jar:1.0.4:compile [INFO] +- com.azure:azure-storage-blob:jar:12.22.2:compile [INFO] | +- com.azure:azure-storage-common:jar:12.21.1:compile [INFO] | - com.azure:azure-storage-internal-avro:jar:12.7.1:compile [INFO] +- com.azure:azure-core-http-netty:jar:1.13.3:compile [INFO] | +- io.netty:netty-handler:jar:4.1.89.Final:compile [INFO] | | +- io.netty:netty-common:jar:4.1.89.Final:compile [INFO] | | +- io.netty:netty-resolver:jar:4.1.89.Final:compile [INFO] | | - io.netty:netty-transport:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-handler-proxy:jar:4.1.89.Final:compile [INFO] | | - io.netty:netty-codec-socks:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-buffer:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-codec:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-codec-http:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-codec-http2:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-transport-native-unix-common:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.89.Final:compile [INFO] | | - io.netty:netty-transport-classes-epoll:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-transport-native-kqueue:jar:osx-x86_64:4.1.89.Final:compile [INFO] | | - io.netty:netty-transport-classes-kqueue:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-tcnative-boringssl-static:jar:2.0.56.Final:compile [INFO] | | +- io.netty:netty-tcnative-classes:jar:2.0.56.Final:compile [INFO] | | +- io.netty:netty-tcnative-boringssl-static:jar:linux-x86_64:2.0.56.Final:compile [INFO] | | +- io.netty:netty-tcnative-boringssl-static:jar:linux-aarch_64:2.0.56.Final:compile [INFO] | | +- io.netty:netty-tcnative-boringssl-static:jar:osx-x86_64:2.0.56.Final:compile [INFO] | | +- io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64:2.0.56.Final:compile [INFO] | | - io.netty:netty-tcnative-boringssl-static:jar:windows-x86_64:2.0.56.Final:compile [INFO] | - io.projectreactor.netty:reactor-netty-http:jar:1.0.28:compile [INFO] | +- io.netty:netty-resolver-dns:jar:4.1.89.Final:compile [INFO] | | - io.netty:netty-codec-dns:jar:4.1.89.Final:compile [INFO] | +- io.netty:netty-resolver-dns-native-macos:jar:osx-x86_64:4.1.89.Final:compile [INFO] | | - io.netty:netty-resolver-dns-classes-macos:jar:4.1.89.Final:compile [INFO] | - io.projectreactor.netty:reactor-netty-core:jar:1.0.28:compile [INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.13.5:compile [INFO] +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.13.5:compile [INFO] | +- org.codehaus.woodstox:stax2-api:jar:4.2.1:compile [INFO] | - com.fasterxml.woodstox:woodstox-core:jar:6.4.0:compile [INFO] +- com.azure:azure-security-keyvault-secrets:jar:4.6.2:compile [INFO] +- com.azure:azure-identity:jar:1.9.0:compile [INFO] | +- com.microsoft.azure:msal4j-persistence-extension:jar:1.2.0:compile [INFO] | | - net.java.dev.jna:jna:jar:5.13.0:compile [INFO] | - net.java.dev.jna:jna-platform:jar:5.6.0:compile [INFO] +- com.azure:azure-security-keyvault-keys:jar:4.6.2:compile [INFO] +- com.microsoft.azure:msal4j:jar:1.13.9:compile [INFO] | - net.minidev:json-smart:jar:2.4.10:compile [INFO] | - net.minidev:accessors-smart:jar:2.4.9:compile [INFO] | - org.ow2.asm:asm:jar:9.3:compile [INFO] +- com.nimbusds:oauth2-oidc-sdk:jar:10.11:runtime [INFO] | +- com.github.stephenc.jcip:jcip-annotations:jar:1.0-1:runtime [INFO] | +- com.nimbusds:content-type:jar:2.2:runtime [INFO] | +- com.nimbusds:lang-tag:jar:1.7:runtime [INFO] | - com.nimbusds:nimbus-jose-jwt:jar:9.30.2:runtime [INFO] +- org.apache.pdfbox:pdfbox:jar:2.0.24:compile [INFO] | - commons-logging:commons-logging:jar:1.2:compile [INFO] - org.apache.pdfbox:fontbox:jar:2.0.24:compile

Can you please suggest what can I do next?

pushpDang commented 8 months ago

I have also tried with the latest version azure-sdk-bom:1.2.21, still same error.

pushpDang commented 8 months ago

After optimizing the dependencies, I am finally able to proceed further. Now I am getting this error:

06.03.2024 22:27:25.969 ERROR [reactor-http-nio-6] reactor.core.publisher.Operators Operator called default onErrorDropped reactor.core.Exceptions$ErrorCallbackNotImplemented: javax.xml.stream.FactoryConfigurationError: Provider for javax.xml.stream.XMLInputFactory cannot be found Caused by: javax.xml.stream.FactoryConfigurationError: Provider for javax.xml.stream.XMLInputFactory cannot be found at java.xml/javax.xml.stream.FactoryFinder.find(FactoryFinder.java:320) at java.xml/javax.xml.stream.XMLInputFactory.newFactory(XMLInputFactory.java:323) at com.fasterxml.jackson.dataformat.xml.XmlFactory.(XmlFactory.java:115) [com.placeholder.project.core:1.0.0] at com.fasterxml.jackson.dataformat.xml.XmlFactory.(XmlFactory.java:101) [com.placeholder.project.core:1.0.0] at com.fasterxml.jackson.dataformat.xml.XmlFactory.(XmlFactory.java:85) [com.placeholder.project.core:1.0.0] at com.fasterxml.jackson.dataformat.xml.XmlMapper.(XmlMapper.java:127) [com.placeholder.project.core:1.0.0] at com.fasterxml.jackson.dataformat.xml.XmlMapper.builder(XmlMapper.java:218) [com.placeholder.project.core:1.0.0] at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) at com.azure.core.implementation.MethodHandleReflectiveInvoker.invokeStatic(MethodHandleReflectiveInvoker.java:26) [com.placeholder.project.core:1.0.0] at com.azure.core.implementation.jackson.XmlMapperFactory.createXmlMapper(XmlMapperFactory.java:99) [com.placeholder.project.core:1.0.0] at com.azure.core.implementation.jackson.ObjectMapperFactory.createXmlMapper(ObjectMapperFactory.java:66) [com.placeholder.project.core:1.0.0] at com.azure.core.implementation.jackson.ObjectMapperShim.createXmlMapper(ObjectMapperShim.java:81) [com.placeholder.project.core:1.0.0] at com.azure.core.util.serializer.JacksonAdapter$GlobalXmlMapper.(JacksonAdapter.java:60) [com.placeholder.project.core:1.0.0] at com.azure.core.util.serializer.JacksonAdapter.getXmlMapper(JacksonAdapter.java:463) [com.placeholder.project.core:1.0.0] at com.azure.core.util.serializer.JacksonAdapter.lambda$serializeToBytes$3(JacksonAdapter.java:204) [com.placeholder.project.core:1.0.0] at com.azure.core.util.serializer.JacksonAdapter.useAccessHelper(JacksonAdapter.java:484) [com.placeholder.project.core:1.0.0] at com.azure.core.util.serializer.JacksonAdapter.serializeToBytes(JacksonAdapter.java:200) [com.placeholder.project.core:1.0.0] at com.azure.core.implementation.http.rest.AsyncRestProxy.updateRequest(AsyncRestProxy.java:327) [com.placeholder.project.core:1.0.0] at com.azure.core.implementation.http.rest.RestProxyBase.configRequest(RestProxyBase.java:348) [com.placeholder.project.core:1.0.0] at com.azure.core.implementation.http.rest.RestProxyBase.createHttpRequest(RestProxyBase.java:295) [com.placeholder.project.core:1.0.0] at com.azure.core.implementation.http.rest.RestProxyBase.invoke(RestProxyBase.java:107) [com.placeholder.project.core:1.0.0] at com.azure.core.http.rest.RestProxy.invoke(RestProxy.java:88) [com.placeholder.project.core:1.0.0] at com.sun.proxy.$Proxy316.commitBlockList(Unknown Source) at com.azure.storage.blob.implementation.BlockBlobsImpl.commitBlockListWithResponseAsync(BlockBlobsImpl.java:5207) [com.placeholder.project.core:1.0.0] at com.azure.storage.blob.specialized.BlockBlobAsyncClient.commitBlockListWithResponse(BlockBlobAsyncClient.java:1152) [com.placeholder.project.core:1.0.0] at com.azure.storage.blob.specialized.BlockBlobAsyncClient.lambda$commitBlockListWithResponse$13(BlockBlobAsyncClient.java:1137) [com.placeholder.project.core:1.0.0] at com.azure.core.util.FluxUtil.lambda$withContext$9(FluxUtil.java:408) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoDeferContextual.subscribe(MonoDeferContextual.java:47) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:53) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:240) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.onComplete(MonoIgnoreThen.java:203) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxFlatMap$FlatMapMain.checkTerminated(FluxFlatMap.java:847) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxFlatMap$FlatMapMain.drainLoop(FluxFlatMap.java:609) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxFlatMap$FlatMapMain.innerComplete(FluxFlatMap.java:895) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxFlatMap$FlatMapInner.onComplete(FluxFlatMap.java:998) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onComplete(FluxContextWrite.java:126) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxMapFuseable$MapFuseableConditionalSubscriber.onComplete(FluxMapFuseable.java:350) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1840) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoFlatMap$FlatMapInner.onNext(MonoFlatMap.java:249) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.complete(MonoIgnoreThen.java:292) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.onNext(MonoIgnoreThen.java:187) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:236) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.onComplete(MonoIgnoreThen.java:203) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoIgnoreElements$IgnoreElementsSubscriber.onComplete(MonoIgnoreElements.java:89) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1840) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxCallable.subscribe(FluxCallable.java:49) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.Mono.subscribe(Mono.java:4490) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:263) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoIgnoreThen.subscribe(MonoIgnoreThen.java:51) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1839) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:151) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:129) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxHide$SuppressFuseableSubscriber.onNext(FluxHide.java:137) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:129) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxHide$SuppressFuseableSubscriber.onNext(FluxHide.java:137) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext(FluxOnErrorResume.java:79) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1839) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:151) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:129) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1839) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:151) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext(FluxOnErrorResume.java:79) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1839) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:151) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.Operators$MonoInnerProducerBase.complete(Operators.java:2666) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoSingle$SingleSubscriber.onComplete(MonoSingle.java:180) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onComplete(FluxContextWrite.java:126) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoFlatMapMany$FlatMapManyInner.onComplete(MonoFlatMapMany.java:260) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onComplete(FluxContextWrite.java:126) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoUsing$MonoUsingSubscriber.onNext(MonoUsing.java:232) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:122) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:74) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2400) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set(Operators.java:2196) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe(Operators.java:2070) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.Mono.subscribe(Mono.java:4490) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete(FluxSwitchIfEmpty.java:82) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxHandle$HandleSubscriber.onComplete(FluxHandle.java:220) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxMap$MapConditionalSubscriber.onComplete(FluxMap.java:275) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxDoFinally$DoFinallySubscriber.onComplete(FluxDoFinally.java:128) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxHandleFuseable$HandleFuseableSubscriber.onNext(FluxHandleFuseable.java:208) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onNext(FluxContextWrite.java:107) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1839) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.MonoCollectList$MonoCollectListSubscriber.onComplete(MonoCollectList.java:129) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxPeek$PeekSubscriber.onComplete(FluxPeek.java:260) [com.placeholder.project.core:1.0.0] at reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:144) [com.placeholder.project.core:1.0.0] at reactor.netty.channel.FluxReceive.onInboundComplete(FluxReceive.java:415) [com.placeholder.project.core:1.0.0] at reactor.netty.channel.ChannelOperations.onInboundComplete(ChannelOperations.java:439) [com.placeholder.project.core:1.0.0] at reactor.netty.channel.ChannelOperations.terminate(ChannelOperations.java:493) [com.placeholder.project.core:1.0.0] at reactor.netty.http.client.HttpClientOperations.onInboundNext(HttpClientOperations.java:776) [com.placeholder.project.core:1.0.0] at reactor.netty.channel.ChannelOperationsHandler.channelRead(ChannelOperationsHandler.java:114) [com.placeholder.project.core:1.0.0] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) [com.placeholder.project.core:1.0.0] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) [com.placeholder.project.core:1.0.0] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) [com.placeholder.project.core:1.0.0] at com.azure.core.http.netty.implementation.AzureSdkHandler.channelRead(AzureSdkHandler.java:222) [com.placeholder.project.core:1.0.0] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) [com.placeholder.project.core:1.0.0] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) [com.placeholder.project.core:1.0.0] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) [com.placeholder.project.core:1.0.0] at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:436) [com.placeholder.project.core:1.0.0] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346) [com.placeholder.project.core:1.0.0] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318) [com.placeholder.project.core:1.0.0] at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251) [com.placeholder.project.core:1.0.0] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) [com.placeholder.project.core:1.0.0] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) [com.placeholder.project.core:1.0.0] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) [com.placeholder.project.core:1.0.0] at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1475) [com.placeholder.project.core:1.0.0] at io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1338) [com.placeholder.project.core:1.0.0] at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1387) [com.placeholder.project.core:1.0.0] at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:529) [com.placeholder.project.core:1.0.0] at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:468) [com.placeholder.project.core:1.0.0] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290) [com.placeholder.project.core:1.0.0] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) [com.placeholder.project.core:1.0.0] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) [com.placeholder.project.core:1.0.0] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) [com.placeholder.project.core:1.0.0] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [com.placeholder.project.core:1.0.0] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) [com.placeholder.project.core:1.0.0] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) [com.placeholder.project.core:1.0.0] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [com.placeholder.project.core:1.0.0] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) [com.placeholder.project.core:1.0.0] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788) [com.placeholder.project.core:1.0.0] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) [com.placeholder.project.core:1.0.0] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) [com.placeholder.project.core:1.0.0] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) [com.placeholder.project.core:1.0.0] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) [com.placeholder.project.core:1.0.0] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [com.placeholder.project.core:1.0.0] at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [com.placeholder.project.core:1.0.0]

alzimmermsft commented 8 months ago

Had a working session offline for this issue.

Further investigation found that an uber JAR was being used for the Java application, reviewing its contents it was missing META-INF/services. This meant there were no services defined for javax.xml.stream.XmlInputFactory or javax.xml.stream.XmlOutputFactory which are needed by Jackson Dataformat XML's XmlMapper to create a default instance of XmlFactory. At this time, and likely to continue, the Azure SDKs don't expose a way to set the instance creator for these, meaning if the classpath can't find an implementation the exceptions above are thrown.

This issue was fixed by modifying the uber JAR to include these services (using the default used by Jackson Dataformat XML which is Woodstox).

Further information, the Azure SDKs for Java will continue to not expose the setters for XmlMapper as XML usage is niche and can be configured by defining the classpath services for XmlInputFactory and XmlOutputFactory. And we're working on further reducing our reliance on Jackson Dataformat XML which will allow for direct usage of XmlInputFactory and XmlOutputFactory and the configurations on the classpath.

github-actions[bot] commented 8 months ago

Hi @pushpDang. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.

pushpDang commented 8 months ago

Thanks a lot @alzimmermsft for your help.

github-actions[bot] commented 8 months ago

Hi @pushpDang, since you haven’t asked that we /unresolve the issue, we’ll close this out. If you believe further discussion is needed, please add a comment /unresolve to reopen the issue.