Skip to content
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

POST/PUT breaks for Byte, Short and BigInteger types #630

Closed
andrus opened this issue Jun 14, 2023 · 0 comments
Closed

POST/PUT breaks for Byte, Short and BigInteger types #630

andrus opened this issue Jun 14, 2023 · 0 comments
Labels
Milestone

Comments

@andrus
Copy link
Contributor

andrus commented Jun 14, 2023

We are missing converters for Byte, Short and BigInteger types, so when Java objects have properties of those types, exceptions are thrown.

io.agrest.jaxrs2.provider.JaxrsAgExceptionMapper - 500 Internal Server Error (Exception processing Agrest 
request) [cause: class java.lang.Integer cannot be cast to class java.lang.Byte (java.lang.Integer and 
java.lang.Byte are in module java.base of loader 'bootstrap')]
io.agrest.jaxrs2.provider.JaxrsAgExceptionMapper - 500 Internal Server Error (Exception processing Agrest 
request) [cause: class java.lang.Integer cannot be cast to class java.lang.Short (java.lang.Integer and 
java.lang.Short are in module java.base of loader 'bootstrap')]
io.agrest.jaxrs2.provider.JaxrsAgExceptionMapper - 500 Internal Server Error (Exception processing Agrest 
request) [cause: Failed to instantiate type: java.math.BigInteger]
@andrus andrus added the bug label Jun 14, 2023
@andrus andrus added this to the 5.0.M17 milestone Jun 14, 2023
@andrus andrus closed this as completed Jun 14, 2023
@andrus andrus changed the title POST/PUT breaks for Short and BigInteger types POST/PUT breaks for Byte, Short and BigInteger types Jun 14, 2023
andrus added a commit that referenced this issue Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant