title: java.lang.NoSuchMethodError: reactor.core.publisher.Flux.toIterable(I)Ljava/lang/Iterable" in Azure Data Lake Storage (ADLS Gen2)
body: <p>I am writing a java program to connect to Azure Data Lake Storage (ADLS Gen2). But when I try to iterate the file-system list of storage account I get &quot;java.lang.NoSuchMethodError: reactor.core.publisher.Flux.toIterable(I)Ljava/lang/Iterable&quot; error.</p>
  <p>Stack trace:</p>
  <pre><code>HTTP Status 500 - Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: reactor.core.publisher.Flux.toIterable(I)Ljava/lang/Iterable;&lt;/h1&gt;&lt;HR size=&quot;1&quot; noshade=&quot;noshade&quot;&gt;&lt;p&gt;&lt;b&gt;type&lt;/b&gt; Exception report&lt;/p&gt;&lt;p&gt;&lt;b&gt;message&lt;/b&gt; &lt;u&gt;Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: reactor.core.publisher.Flux.toIterable(I)Ljava/lang/Iterable;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;description&lt;/b&gt; &lt;u&gt;The server encountered an internal error that prevented it from fulfilling this request.&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;exception&lt;/b&gt; &lt;pre&gt;org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: reactor.core.publisher.Flux.toIterable(I)Ljava/lang/Iterable; org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1055) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) javax.servlet.http.HttpServlet.service(HttpServlet.java:650) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) &lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;root cause&lt;/b&gt; &lt;pre&gt;java.lang.NoSuchMethodError: reactor.core.publisher.Flux.toIterable(I)Ljava/lang/Iterable; com.azure.core.util.IterableStream.iterator(IterableStream.java:85) 
  </code></pre>
  <p>Code Sample:</p>
  <pre><code>    ClientSecretCredential servicePrincipalCreds  = new ClientSecretCredentialBuilder()
                      .clientId(clientID)
                      .clientSecret(clientSecret)
                      .tenantId(tenantID)
                      .build();
                      
      DataLakeServiceClient dataLakeServiceClient = new DataLakeServiceClientBuilder()
                      .endpoint(&quot;https://&quot;+accountName+&quot;.dfs.core.windows.net&quot;)
                      .credential(servicePrincipalCreds)
                      .httpClient(new OkHttpAsyncHttpClientBuilder().build())
                      .buildClient();
      
      PagedIterable&lt;FileSystemItem&gt; pageItr = dataLakeServiceClient.listFileSystems();
      Iterator&lt;FileSystemItem&gt; itr = pageItr.iterator(); // Here I get error
              while(itr.hasNext()){
                  FileSystemItem fileSystemItem = itr.next();
                  if(fileSystemItem.getName().equals(fileSystemName)){
                      System.out.println(&quot;FileSystem Exist:: &quot;+fileSystemName);
                      break;
                  }
              }
  </code></pre>
  <p>Below is pom.xml</p>
  <pre><code>        &lt;dependencies&gt;
         &lt;dependency&gt;
            &lt;groupId&gt;com.azure&lt;/groupId&gt;
            &lt;artifactId&gt;azure-storage-file-datalake&lt;/artifactId&gt;
            &lt;version&gt;12.2.0-beta.1&lt;/version&gt;
            &lt;exclusions&gt;
               &lt;exclusion&gt;
                  &lt;groupId&gt;com.azure&lt;/groupId&gt;
                  &lt;artifactId&gt;azure-core-http-netty&lt;/artifactId&gt;
               &lt;/exclusion&gt;
            &lt;/exclusions&gt;
         &lt;/dependency&gt;
         &lt;dependency&gt;
            &lt;groupId&gt;com.azure&lt;/groupId&gt;
            &lt;artifactId&gt;azure-identity&lt;/artifactId&gt;
            &lt;version&gt;1.0.8&lt;/version&gt;
         &lt;/dependency&gt;
         &lt;dependency&gt;
            &lt;groupId&gt;com.azure&lt;/groupId&gt;
            &lt;artifactId&gt;azure-core-http-okhttp&lt;/artifactId&gt;
            &lt;version&gt;1.2.4&lt;/version&gt;
         &lt;/dependency&gt;
         &lt;dependency&gt;
            &lt;groupId&gt;com.azure&lt;/groupId&gt;
            &lt;artifactId&gt;azure-core&lt;/artifactId&gt;
            &lt;version&gt;1.6.0&lt;/version&gt;
         &lt;/dependency&gt;
         &lt;dependency&gt;
            &lt;groupId&gt;com.azure&lt;/groupId&gt;
            &lt;artifactId&gt;azure-storage-blob&lt;/artifactId&gt;
            &lt;version&gt;12.8.0-beta.1&lt;/version&gt;
            &lt;exclusions&gt;
               &lt;exclusion&gt;
                  &lt;groupId&gt;com.azure&lt;/groupId&gt;
                  &lt;artifactId&gt;azure-core-http-netty&lt;/artifactId&gt;
               &lt;/exclusion&gt;
            &lt;/exclusions&gt;
         &lt;/dependency&gt;
         &lt;dependency&gt;
            &lt;groupId&gt;com.azure&lt;/groupId&gt;
            &lt;artifactId&gt;azure-storage-common&lt;/artifactId&gt;
            &lt;version&gt;12.8.0-beta.1&lt;/version&gt;
            &lt;exclusions&gt;
               &lt;exclusion&gt;
                  &lt;groupId&gt;com.azure&lt;/groupId&gt;
                  &lt;artifactId&gt;azure-core-http-netty&lt;/artifactId&gt;
               &lt;/exclusion&gt;
            &lt;/exclusions&gt;
         &lt;/dependency&gt;
         &lt;dependency&gt;
            &lt;groupId&gt;com.azure&lt;/groupId&gt;
            &lt;artifactId&gt;azure-storage-internal-avro&lt;/artifactId&gt;
            &lt;version&gt;12.0.0-beta.1&lt;/version&gt;
         &lt;/dependency&gt;
      &lt;/dependencies&gt;
  </code></pre>
  <p>Though the reactor-core dependency comes with above dependencies. Still I tried adding it explicitly but it didn't resolve the issue.</p>
  <p>Any help will be highly appreciated. Thanks in advance.</p>