Skip to content

ObjectDetails & ObjectFullDetails size parameter changed to Long#21

Merged
xiaodongliang merged 1 commit intoAutodesk-Forge:masterfrom
MichelSimaan:master
Feb 4, 2019
Merged

ObjectDetails & ObjectFullDetails size parameter changed to Long#21
xiaodongliang merged 1 commit intoAutodesk-Forge:masterfrom
MichelSimaan:master

Conversation

@MichelSimaan
Copy link

encountered an exception while uploading 4GB+ file using uploadChunk.

com.sun.jersey.api.client.ClientHandlerException: com.fasterxml.jackson.databind.JsonMappingException: Numeric value (4053603613) out of range of int
at [Source: (sun.net.www.protocol.http.HttpURLConnection$HttpInputStream); line: 5, column: 22]
at [Source: (sun.net.www.protocol.http.HttpURLConnection$HttpInputStream); line: 5, column: 12] (through reference chain: com.autodesk.client.model.ObjectDetails["size"])
at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:644)
at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:604)
at com.autodesk.client.ApiClient.invokeAPI(ApiClient.java:562)
at com.autodesk.client.api.ObjectsApi.uploadChunk(ObjectsApi.java:628)

Changed the size parameter "size" type to Long to solve it.

@xiaodongliang xiaodongliang merged commit 722a19e into Autodesk-Forge:master Feb 4, 2019
@xiaodongliang
Copy link
Collaborator

@MichaelSimaan , thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants