Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.34k stars 1.98k forks source link

[BUG] Fake test issue: with com.azure.core.util.serializer.JacksonAdapter.getXmlMapper #37501

Closed JimSuplizio closed 11 months ago

JimSuplizio commented 11 months ago

Describe the bug This is not a real issue and will be closed. I'm copying text from a real issue to get a payload where the AI Label service to give me label suggestions. java.lang.ExceptionInInitializerError at com.azure.core.util.serializer.JacksonAdapter.getXmlMapper

Exception or Stack Trace 17:48:58.315 I Rejecting re-init on previously-failed class java.lang.Class<com.azure.core.util.serializer.JacksonAdapter$GlobalXmlMapper>: java.lang.ExceptionInInitializerError: (Throwable with no stack trace) 17:48:58.316 W [reactor-http-nio-1] WARN reactor.core.Exceptions - throwIfFatal detected a jvm fatal exception, which is thrown and logged below: 17:48:58.316 W java.lang.NoClassDefFoundError: com.azure.core.util.serializer.JacksonAdapter$GlobalXmlMapper

To Reproduce Steps to reproduce the behavior:

Code Snippet try { val fileURL = java.lang.String.format("https://%s.file.core.usgovcloudapi.net", ACCOUNT_NAME) val fileClient = ShareFileClientBuilder() .connectionString(CONNECTION_STRING) .endpoint(fileURL) .shareName(SHARE_NAME) .resourcePath(fileName) .buildFileClient() fileClient.uploadFromFile(copyAssetFileToLocalStorage("test.json")) } catch (e: Exception) { e.printStackTrace() }

Expected behavior The file should be uploaded to azure storage without any exception.

Setup (please complete the following information):

JimSuplizio commented 11 months ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

JimSuplizio commented 11 months ago

@JimSuplizio @alzimmermsft

JimSuplizio commented 11 months ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

JimSuplizio commented 11 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @JimSuplizio.

JimSuplizio commented 11 months ago

Removing all the labels, so this doesn't show up any queries, and closing it out.

JimSuplizio commented 11 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @JimSuplizio.

JimSuplizio commented 11 months ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

JimSuplizio commented 11 months ago

@alzimmermsft @JimSuplizio

JimSuplizio commented 11 months ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.