-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG] Updating AzureStorageBlob to 12.14.2 from 12.4.0 Causes ClosedChannelException #25631
Comments
@rdfedor Thanks for opening this issue. You are correct that the recommendation is to upgrade your dependencies. The NoClassDef exception is a result of mismatched dependencies, and it is likely that the new behavior you were seeing is likely a symptom of the same. It looks like you are on latest of azure-core (1.22), but we are on 3.4.9 now of reactor-core. It looks like your version of reactor-netty is fine. Could you try 12.14.2 again with these other updated versions, specifically reactor-core? It is also possible that something with Spring is not playing nice. We can look into that if bringing these other packages up to date doesn't resolve the issue. |
@rickle-msft I've updated all the libraries, including azure to 12.14.2, and ran into the same issue ClosedChannel Exception,
|
@rdfedor Thank you for the update. How frequently do you hit this issue? Is it on every listing request? |
@rickle-msft it's consistent on every hit. I found this, https://stackoverflow.com/questions/70176728/basic-blob-download-fails-using-com-azure-storage-blob-package-with-java-nio-cha/70192990 but I'm trying to figure out how to implement it in a Kotlin project and the issue is unfortunately preventing us from upgrading from 12.4.0. |
this seems to be a spring boot related, we will get back to you. |
@amishra-dev @rickle-msft So I was able to resolve the issue by in the build.gradle file expanding the azure-storage-blob declaration to exclude a few libraries like this,
then adding the following above it,
|
Hi @rdfedor. 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 “ |
Hi @rdfedor, since you haven’t asked that we “ |
I'm working on a Gradel project that uses spring-boot-starter-web:2.5.6 w/ azure-storage-blob:12.4.0.
Have a class which implements the azure-storage-blob library by pulling a list of items available in storage,
I received a notice from Azure asking me to upgrade our lib in a project to 12.14.2 which I did but then I started seeing exceptions about a class not being found. A little bit of digging found the following ticket #20392 discussing the issue.
I applied the suggested fix which by adding the following snippet to my pom.xml,
Since the project uses Gradle there's no pom.xml but I was able to add this which seemed to resolve the issue,
Once that was updated, the original error and behavior was replaced with a new one where each time I made a request to the end point, it would just spin spin spin then fail w/ a 500 error saying ClosedChannelException. Reverting the library back to 12.4.0 fixes the issue. When adding a breakpoint to
listBlobsByHierarchy
and looking into the return value, it showed iterable was null.Stack Trace Logs
Dependency Output
The text was updated successfully, but these errors were encountered: