-
Notifications
You must be signed in to change notification settings - Fork 6
exceeds the maximum length #20
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
Comments
Where is this exception thrown? Can you please report the exception stack trace and a code snippet to reproduce it? |
Hi @rashtao
Consider that tech.sharelock.arango.client.dao.GenericDAO.saveVertex(GenericDAO.java:298) is my code where I save a Document that contains in 'details' attribute. The field 'details' contains a string text very large text. That code is below
Thanks |
Thanks for clarifying, this exception is not related to While this will be fixed in a future version of the driver, you can in the meantime work around it with either:
StreamReadConstraints.overrideDefaultStreamReadConstraints(
StreamReadConstraints
.builder()
.maxStringLength(Integer.MAX_VALUE) // your limit here
.build()
); Note that (2) is potentially unsafe, because it will affect all Jackson instances in your application, i.e. also used for decoding web requests. |
Hi @rashtao
So you suggest to change after that i will add
is that correct? Thanks |
@rashtao |
|
You can change Note that you do not need to do both, either switching to VPACK or invoking |
Thanks Gianluca |
Hi,
i'm using v4.10 version of jackson dataformat velocypack.
In ArangoDB i need sometimes to save some text and i have the follow error:
com.fasterxml.jackson.databind.JsonMappingException: String length (20049662) exceeds the maximum length (20000000).
How I can solve it? I know that jackson can increase the maximum length of textual values by using the setMaxTextLength method of the StreamReadConstraints class but I don't have access to it (or ObjectMapper mapper = new ObjectMapper();
mapper.reader().with(StreamReadConstraints.builder().setMaxTextLength(30000000).build())).
Is there something that I can use or set ot increase that value?
Thanks
Gianluca Valentini
The text was updated successfully, but these errors were encountered: