dev@jersey.java.net

Re: [Jersey] Leading Spaces in JAXB

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 03 Aug 2009 09:26:05 +0200

On Aug 3, 2009, at 9:14 AM, Minjal Shah wrote:

> Hi,
>
> I have observed that jersey/JAXB handles trailing spaces and spaces
> in between the tags in the xml body, but throws a BAD REQUEST when
> the xml body has leading spaces.
>
> Is this supposed to be the default behavior?
> Is there a way I can override this?
>

Can you send me an example of the latter as i am not totally sure what
you mean?

I suspect the wrapped exception in the bad request is originating from
the XML parser because the XML document is not well formed, but i
would need to see the stack trace to confirm that or not.

Paul.