Thanks.
I was able to solve the issue by removing
the cxf-rt-rs-extension-providers.jar file from the classpath. It seems
that if JsonProvider class is in classpath then jax-rs containers will use
that as MessageBodyReader/Writer which means jettison will be used. By
removing that from the cla
Hi,
Thanks for the reply. I tried removing the findAndRegisterModules call but
even then it didn't work.
What do you meant by "re-configure mapper in some other way". Could you
please provide some more details?
My guess is that JacksonJsonProvider is not getting used at all. How do you
I know
>
> Part that I do not yet understand is this: when encountering already
> serialized Object,
> how is that handled? Would you serialize it using Object Id generated
> (using whatever mechanism),
> but that just wasn't included in originally serialized full object?
> Or replaced with somethin
HI Mates - I am getting the below intermittent errors using Jackson api to
serialize and to deserialize, When I give one or 2 messages in JSON Array I
don't see this error but getting when JSON messages are more than 2:
com.fasterxml.jackson.core.JsonParseException: Unexpected end-of-input
wi
On Fri, Feb 17, 2017 at 12:59 PM, David Hayek wrote:
> Tatu
>
> I am using Object Ids to avoid duplication for objects that we can't modify
> and can't identify in advance that would have circular references. Without
> the Object Id, for example, printing an object such as the
> DefaultMutableTree
Tatu
I am using Object Ids to avoid duplication for objects that we can't modify
and can't identify in advance that would have circular references. Without
the Object Id, for example, printing an object such as the
*DefaultMutableTreeNode
*would always result in the following exception:
com.f
On Fri, Feb 17, 2017 at 7:57 AM, David Hayek wrote:
> Tatu
>
> Thanks for your quick reply. For some background on what I'm trying to do, I
> want to log the objects that are passed as method arguments, either during
> trace logging or when an exception occurs. Right now we have very little
> insi
Usually my first guess is that configured `ObjectMapper` is not being
used at all.
So if you can re-configure mapper in some other way (like default to
indenting or something) maybe you can eliminated the possibility that
this mapper is not being used?
Another small thing is that `findAndRegisterM
Hi,
I want to use custom serializer and deserializer for java.util.Calendar
data type. I have the following code but it seems that the serializer and
deserializer are not getting included.
JacksonJsonProvider jsonProvider = new JacksonJsonProvider();
ObjectMapper mapper = new Obje
Hello,
I declare a custom object mapper with a DateSerializer with a custom format
like this :
public class CustomObjectMapper extends ObjectMapper
{
public CustomObjectMapper()
{
configure();
}
private void configure()
{
super.configure(SerializationFeature.
Hi,
I am trying to use jackson as jackson-jaxrs-providers. I want to provide
the custom serializer and deserializer for java.util.Calendar data type. I
have the following code. I have omitted few lines for the sack of brevity.
JAXRSServerFactoryBean factory = new
JAXRSServerFac
Tatu
Thanks for your quick reply. For some background on what I'm trying to do,
I want to log the objects that are passed as method arguments, either
during trace logging or when an exception occurs. Right now we have very
little insight from trace logging, other than method flow, or what happe
12 matches
Mail list logo