Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[intelliJ][Linux]Error message pops up when list clusters. #2392

Closed
v-jiche opened this issue Nov 21, 2018 · 3 comments
Closed

[intelliJ][Linux]Error message pops up when list clusters. #2392

v-jiche opened this issue Nov 21, 2018 · 3 comments

Comments

@v-jiche
Copy link

v-jiche commented Nov 21, 2018

Build:
artifacts/azure-toolkit-for-intellij-183.4284.118.PR.2528.11-21-2018.zip

Repro Steps:

  1. Open Azure Explorer.
  2. Choose HDInsight.

Result:
HDInsight shows blank. The error detail pops up.
image
image
image

java.util.NoSuchElementException: An error occurred while enumerating the result, check the original exception for details.
at com.microsoft.azure.storage.core.LazySegmentedIterator.hasNext(LazySegmentedIterator.java:113)
at java.util.Iterator.forEachRemaining(Iterator.java:115)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at com.microsoft.azure.hdinsight.serverexplore.hdinsightnode.StorageAccountNode.refreshItems(StorageAccountNode.java:106)
at com.microsoft.tooling.msservices.serviceexplorer.RefreshableNode.refreshItems(RefreshableNode.java:96)
at com.microsoft.tooling.msservices.serviceexplorer.RefreshableNode$2.run(RefreshableNode.java:148)
at com.microsoft.intellij.helpers.IDEHelperImpl$2$1.run(IDEHelperImpl.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:727)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:582)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:87)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:403)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.microsoft.azure.storage.StorageException: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
at com.microsoft.azure.storage.StorageException.translateException(StorageException.java:89)
at com.microsoft.azure.storage.core.StorageRequest.materializeException(StorageRequest.java:315)
at com.microsoft.azure.storage.core.ExecutionEngine.executeWithRetry(ExecutionEngine.java:175)
at com.microsoft.azure.storage.core.LazySegmentedIterator.hasNext(LazySegmentedIterator.java:109)
... 25 more

@wezhang wezhang added this to the v3.16.0 milestone Nov 21, 2018
@wezhang wezhang modified the milestones: v3.16.0, v3.17.0 Dec 12, 2018
@v-jiche v-jiche changed the title [intelliJ][Linux 3]Error message pops up when list clusters. [intelliJ 3][Linux]Error message pops up when list clusters. Dec 12, 2018
@wezhang wezhang assigned t-rufang and unassigned wezhang Dec 26, 2018
@wezhang
Copy link
Member

wezhang commented Dec 27, 2018

We can catch it here:

            getBlobContainers(connectionString).forEach(blobContainer -> {
                addChildNode(new BlobContainerNode(this, blobStorageAccount, blobContainer, !StringHelper.isNullOrWhiteSpace(defaultContainer) && defaultContainer.equals(blobContainer.getName())));
            });

And throw the root cause exception.

@t-rufang t-rufang changed the title [intelliJ 3][Linux]Error message pops up when list clusters. [intelliJ][Linux]Error message pops up when list clusters. Dec 27, 2018
@t-rufang
Copy link
Contributor

Fixed in #2575

@t-rufang t-rufang added the fixed label Dec 28, 2018
@t-rufang t-rufang assigned v-jiche and unassigned t-rufang Dec 28, 2018
@v-jiche
Copy link
Author

v-jiche commented Dec 28, 2018

Verified, Fixed.
Build: azure-toolkit-for-intellij-2018.3.develop.929.12-28-2018

@v-jiche v-jiche closed this as completed Dec 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants