Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-13181

Azure Blob and ADLS processors throw NoSuchMethodError when Service Principal is used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.26.0
    • 1.27.0
    • None
    • None

    Description

      I spent some time testing nifi 1.26 and found this error, when tried to use blobstorage related processors, like ListAzureBlobStorage_v12 .

      2024-05-08 09:09:06,416 WARN reactor.core.Exceptions: throwIfFatal detected a jvm fatal exception, which is thrown and logged below:
      java.lang.NoSuchMethodError: com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder.logPii(Z)Lcom/microsoft/aad/msal4j/AbstractApplicationBase$Builder;
          at com.azure.identity.implementation.IdentityClientBase.getConfidentialClient(IdentityClientBase.java:233)
          at com.azure.identity.implementation.IdentityClient.lambda$getConfidentialClientApplication$4(IdentityClient.java:130)
          at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:45)
          at reactor.core.publisher.MonoCacheTime.subscribeOrReturn(MonoCacheTime.java:143)
          at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:57)
          at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:53)
          at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)
          at reactor.core.publisher.MonoUsing.subscribe(MonoUsing.java:102)
          at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:53)
          at reactor.core.publisher.MonoFromFluxOperator.subscribe(MonoFromFluxOperator.java:81)
          at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:53)
          at reactor.core.publisher.Mono.subscribe(Mono.java:4491)
          at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:263)
          at reactor.core.publisher.MonoIgnoreThen.subscribe(MonoIgnoreThen.java:51)
          at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)
          at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:53)
          at reactor.core.publisher.Mono.subscribe(Mono.java:4491)
          at reactor.core.publisher.FluxFlatMap.trySubscribeScalarMap(FluxFlatMap.java:203)
          at reactor.core.publisher.MonoFlatMap.subscribeOrReturn(MonoFlatMap.java:53)
          at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:57)
          at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:53)
          at reactor.core.publisher.Mono.subscribe(Mono.java:4491)
          at reactor.core.publisher.FluxFlatMap.trySubscribeScalarMap(FluxFlatMap.java:203)
          at reactor.core.publisher.MonoFlatMap.subscribeOrReturn(MonoFlatMap.java:53)
          at reactor.core.publisher.Flux.subscribe(Flux.java:8628)
          at reactor.core.publisher.Flux.blockLast(Flux.java:2760)
          at com.azure.core.util.paging.ContinuablePagedByIteratorBase.requestPage(ContinuablePagedByIteratorBase.java:102)
          at com.azure.core.util.paging.ContinuablePagedByItemIterable$ContinuablePagedByItemIterator.<init>(ContinuablePagedByItemIterable.java:75)
          at com.azure.core.util.paging.ContinuablePagedByItemIterable.iterator(ContinuablePagedByItemIterable.java:55)
          at com.azure.core.util.paging.ContinuablePagedIterable.iterator(ContinuablePagedIterable.java:141)
          at org.apache.nifi.processors.azure.storage.ListAzureBlobStorage_v12.performListing(ListAzureBlobStorage_v12.java:230)
          at org.apache.nifi.processor.util.list.AbstractListProcessor.lambda$listByTrackingEntities$11(AbstractListProcessor.java:1126)
          at org.apache.nifi.processor.util.list.ListedEntityTracker.trackEntities(ListedEntityTracker.java:272)
          at org.apache.nifi.processor.util.list.AbstractListProcessor.listByTrackingEntities(AbstractListProcessor.java:1124)
          at org.apache.nifi.processor.util.list.AbstractListProcessor.onTrigger(AbstractListProcessor.java:529)
          at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
          at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1361)
          at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:247)
          at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:102)
          at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:834) 

      Attachments

        Issue Links

          Activity

            People

              turcsanyip Peter Turcsanyi
              taz1988 Zoltán Kornél Török
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h