Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.
This repository was archived by the owner on Jun 15, 2026. It is now read-only.

Received a 'NotSerializableException' when some error occurs using the Azure Java SDK #194

Description

@itmustbesid

Our application detects and rethrows this exception while processing some requests using the Azure Java SDK. Narrowing it down reveals that some classes in autorest-clientruntime-for-java should be marked "Serializable".

org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [https://127.0.0.2:8443/dt-remote-invoker/remoting/RemotingService]; nested exception is java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.microsoft.azure.CloudError

We created a local build and the exception was gone. I have a forked repo containing the fix, which patches the CloudError class and some others.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions