[BUG] availabilityZones() function for class ApplicationGatewayImpl class throw an exception #43607
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-triage
Workflow: This is a new issue that needs to be triaged to the appropriate team.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
calling the function: applicationGateway.availabilityZones() when application gateway has availability zones returns this error:
class com.azure.resourcemanager.resources.fluentcore.arm.AvailabilityZoneId cannot be cast to class java.lang.Comparable (com.azure.resourcemanager.resources.fluentcore.arm.AvailabilityZoneId is in unnamed module of loader 'app'; java.lang.Comparable is in module java.base of loader 'bootstrap').
The reason for this exception is that you try to add elements to tree set that do not implement Comparable interface
Exception or Stack Trace
Add the exception log and stack trace if available
To Reproduce
Steps to reproduce the behavior:
Code Snippet
Add the code snippet that causes the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):
If you suspect a dependency version mismatch (e.g. you see
NoClassDefFoundError
,NoSuchMethodError
or similar), please check out Troubleshoot dependency version conflict article first. If it doesn't provide solution for the problem, please provide:mvn dependency:tree -Dverbose
)Additional context
Add any other context about the problem here.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: