Re: [jackson-user] RFE: Make MAX_ERROR_TOKEN_LENGTH configurable

2023-06-06 Thread Tatu Saloranta
Thank you sharing this, it makes sense (wrt newly added functionality in location, content source). -+ Tatu +- On Tue, Jun 6, 2023 at 6:03 AM Gili Tzabari wrote: > > For what it's worth, I worked around the problem this way: > > Throwable throwable = result.getThrowable(); > if (throwable

Re: [jackson-user] NoSuchMethodError: com.fasterxml.jackson.core.JsonParser.getReadCapabilities()

2023-06-06 Thread Ted Yu
Thanks for taking a look. The jar is produced with `maven-shade-plugin`. Do you have suggestion on how I can trace down the origin of 2.6.7 databind in such scenario ? Cheers On Tuesday, June 6, 2023 at 11:55:07 AM UTC-7 Tatu Saloranta wrote: > Version 2.6 is not supported (and hasn't for a

Re: [jackson-user] NoSuchMethodError: com.fasterxml.jackson.core.JsonParser.getReadCapabilities()

2023-06-06 Thread Tatu Saloranta
On Tue, Jun 6, 2023 at 12:04 PM Ted Yu wrote: > > Thanks for taking a look. > > The jar is produced with `maven-shade-plugin`. Do you have suggestion on how > I can trace down the origin of 2.6.7 databind in such scenario ? Something in Maven (etc) build would have dependency. But I am not sure

[jackson-user] NoSuchMethodError: com.fasterxml.jackson.core.JsonParser.getReadCapabilities()

2023-06-06 Thread Ted Yu
Hi, We encounter the error shown at the end. Looking at META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml in the fat jar: com.fasterxml.jackson.core jackson-databind 2.6.7.1 jackson-databind But I don't see 2.6.7 in any pom.xml in our repository. I checked

Re: [jackson-user] NoSuchMethodError: com.fasterxml.jackson.core.JsonParser.getReadCapabilities()

2023-06-06 Thread Tatu Saloranta
Version 2.6 is not supported (and hasn't for a while), so I am not sure how much we can help here with specific details. But exception message does suggest a version discrepancy: not between 2.6.7.1 and 2.6.7 (those are compatible being patch/micro-path within same minor release), but by

[jackson-user] Re: NoSuchMethodError: com.fasterxml.jackson.core.JsonParser.getReadCapabilities()

2023-06-06 Thread Ted Yu
One interesting observation: there is no 2.6.7 directory on local computer: ls -lt /Users/zhihongyu/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.6. 2.6.5/ 2.6.6/ This seems to imply that 2.6.7 databind may have come from another fat jar. On Tuesday, June 6, 2023 at 11:52:19 AM

Re: [jackson-user] RFE: Make MAX_ERROR_TOKEN_LENGTH configurable

2023-06-06 Thread Gili Tzabari
For what it's worth, I worked around the problem this way: Throwable throwable = result.getThrowable(); if (throwableinstanceof JsonProcessingException jpe) { // Jackson truncates the JSON if it's too long. Let's log the full content. Object rawContent =